diff --git a/clang/tools/clang-diff/ClangDiff.cpp b/clang/tools/clang-diff/ClangDiff.cpp --- a/clang/tools/clang-diff/ClangDiff.cpp +++ b/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 PrintMatches("dump-matches", - cl::desc("Print the matched nodes."), - cl::init(false), cl::cat(ClangDiffCategory)); +static cl::opt PrintMatches("dump-matches", cl::desc("Print the matched nodes."), cl::init(false), cl::cat(ClangDiffCategory)); static cl::opt 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 SourcePath(cl::Positional, cl::desc(""), @@ -77,7 +75,10 @@ std::make_unique( std::move(Compilations)); AdjustingCompilations->appendArgumentsAdjuster( - getInsertArgumentAdjuster(ArgsBefore, ArgumentInsertPosition::BEGIN)); + + getInsertArgumentAdjuster(ArgsBefore , + + ArgumentInsertPosition::BEGIN)); AdjustingCompilations->appendArgumentsAdjuster( getInsertArgumentAdjuster(ArgsAfter, ArgumentInsertPosition::END)); Compilations = std::move(AdjustingCompilations); diff --git a/clang/tools/clang-fuzzer/ClangFuzzer.cpp b/clang/tools/clang-fuzzer/ClangFuzzer.cpp --- a/clang/tools/clang-fuzzer/ClangFuzzer.cpp +++ b/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 ; } diff --git a/clang/tools/clang-refactor/ClangRefactor.cpp b/clang/tools/clang-refactor/ClangRefactor.cpp --- a/clang/tools/clang-refactor/ClangRefactor.cpp +++ b/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 createCustomConsumer() override { @@ -104,6 +103,9 @@ return TestSelections.foreachRange(SM, Callback); } + void print(raw_ostream &OS) override { + TestSelections.dump(OS); + } private: TestSelectionRangesInFile TestSelections; };