[PATCH] D71197: llvm premerge: clang format test
Mikhail Goncharov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 11 03:44:44 PST 2019
goncharov updated this revision to Diff 233310.
goncharov added a comment.
trigger the build
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71197/new/
https://reviews.llvm.org/D71197
Files:
clang/tools/clang-check/ClangCheck.cpp
clang/tools/clang-diff/ClangDiff.cpp
clang/tools/clang-fuzzer/ClangFuzzer.cpp
clang/tools/clang-refactor/ClangRefactor.cpp
Index: clang/tools/clang-refactor/ClangRefactor.cpp
===================================================================
--- clang/tools/clang-refactor/ClangRefactor.cpp
+++ clang/tools/clang-refactor/ClangRefactor.cpp
@@ -90,7 +90,6 @@
TestSourceSelectionArgument(TestSelectionRangesInFile TestSelections)
: TestSelections(std::move(TestSelections)) {}
- void print(raw_ostream &OS) override { TestSelections.dump(OS); }
std::unique_ptr<ClangRefactorToolConsumerInterface>
createCustomConsumer() override {
@@ -104,6 +103,9 @@
return TestSelections.foreachRange(SM, Callback);
}
+ void print(raw_ostream &OS) override {
+ TestSelections.dump(OS);
+ }
private:
TestSelectionRangesInFile TestSelections;
};
Index: clang/tools/clang-fuzzer/ClangFuzzer.cpp
===================================================================
--- clang/tools/clang-fuzzer/ClangFuzzer.cpp
+++ clang/tools/clang-fuzzer/ClangFuzzer.cpp
@@ -15,11 +15,11 @@
#include "handle-cxx/handle_cxx.h"
using namespace clang_fuzzer;
-
-extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { return 0; }
-
extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
std::string s((const char *)data, size);
HandleCXX(s, "./test.cc", {"-O2"});
return 0;
}
+
+extern "C" int LLVMFuzzerInitialize( int *argc,
+ char ***argv) { return 0 ; }
Index: clang/tools/clang-diff/ClangDiff.cpp
===================================================================
--- clang/tools/clang-diff/ClangDiff.cpp
+++ clang/tools/clang-diff/ClangDiff.cpp
@@ -32,12 +32,10 @@
cl::desc("Print the internal representation of the AST as JSON."),
cl::init(false), cl::cat(ClangDiffCategory));
-static cl::opt<bool> PrintMatches("dump-matches",
- cl::desc("Print the matched nodes."),
- cl::init(false), cl::cat(ClangDiffCategory));
+static cl::opt<bool> PrintMatches("dump-matches", cl::desc("Print the matched nodes."), cl::init(false), cl::cat(ClangDiffCategory));
static cl::opt<bool> HtmlDiff("html",
- cl::desc("Output a side-by-side diff in HTML."),
+ cl::desc("Output a side-by-side diff in HTML."),
cl::init(false), cl::cat(ClangDiffCategory));
static cl::opt<std::string> SourcePath(cl::Positional, cl::desc("<source>"),
@@ -77,7 +75,10 @@
std::make_unique<ArgumentsAdjustingCompilations>(
std::move(Compilations));
AdjustingCompilations->appendArgumentsAdjuster(
- getInsertArgumentAdjuster(ArgsBefore, ArgumentInsertPosition::BEGIN));
+
+ getInsertArgumentAdjuster(ArgsBefore ,
+
+ ArgumentInsertPosition::BEGIN));
AdjustingCompilations->appendArgumentsAdjuster(
getInsertArgumentAdjuster(ArgsAfter, ArgumentInsertPosition::END));
Compilations = std::move(AdjustingCompilations);
Index: clang/tools/clang-check/ClangCheck.cpp
===================================================================
--- clang/tools/clang-check/ClangCheck.cpp
+++ clang/tools/clang-check/ClangCheck.cpp
@@ -52,7 +52,7 @@
);
static cl::OptionCategory ClangCheckCategory("clang-check options");
-static const opt::OptTable &Options = getDriverOptTable();
+static const opt::OptTable &Options = getDriverOptTable();
static cl::opt<bool>
ASTDump("ast-dump",
cl::desc(Options.getOptionHelpText(options::OPT_ast_dump)),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71197.233310.patch
Type: text/x-patch
Size: 3494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191211/8f4b2faa/attachment.bin>
More information about the cfe-commits
mailing list