Skip to content

Commit 8a52d62

Browse files
committed
remove --adoc test option
1 parent af1a9cf commit 8a52d62

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

source/Options.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ llvm::cl::opt<bool> badOption(
5151
llvm::cl::init(true),
5252
llvm::cl::cat(Category));
5353

54-
llvm::cl::opt<bool> adocOption(
55-
"adoc",
56-
llvm::cl::desc("Write the corresponding Asciidoc (adoc) file for each input test file"),
57-
llvm::cl::init(false),
58-
llvm::cl::cat(Category));
59-
6054
// Generate options
6155

6256
llvm::cl::opt<std::string> FormatType(

source/Options.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ extern llvm::cl::opt<Action> ToolAction;
3131

3232
// Test options
3333
extern llvm::cl::opt<bool> badOption;
34-
extern llvm::cl::opt<bool> adocOption;
3534

3635
// Generate options
3736
extern llvm::cl::opt<std::string> FormatType;

source/TestAction.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,6 @@ handleFile(
310310
}
311311
}
312312

313-
// Write Asciidoc if requested
314-
if(adocOption.getValue())
315-
{
316-
path::replace_extension(outputPath, adocGen_->fileExtension());
317-
if(R_.error(
318-
adocGen_->buildOne(outputPath.str(), *corpus, R_),
319-
"write '", outputPath, "'"))
320-
return llvm::Error::success(); // keep going
321-
}
322-
323313
return llvm::Error::success();
324314
}
325315

0 commit comments

Comments
 (0)