Lines Matching +full:clang +full:- +full:tools +full:- +full:extra
1 //===--- CommonOptionsParser.cpp - common options for clang tools ---------===//
8 //===----------------------------------------------------------------------===//
11 // command-line options for clang tools, so that they can be run as separate
12 // command-line applications with a consistent common interface for handling
15 // It provides a common subset of command-line options, common algorithm
17 // for the basic command-line interface.
19 // It creates a CompilationDatabase and reads common command-line options.
21 // This class uses the Clang Tooling infrastructure, see
22 // http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html
25 //===----------------------------------------------------------------------===//
28 #include "clang/Tooling/ArgumentsAdjusters.h"
29 #include "clang/Tooling/CommonOptionsParser.h"
30 #include "clang/Tooling/Tooling.h"
32 using namespace clang::tooling;
37 "-p <build-path> is used to read a compile command database.\n"
40 "\tcompile_commands.json exists (use -DCMAKE_EXPORT_COMPILE_COMMANDS=ON\n"
44 "\thttp://clang.llvm.org/docs/HowToSetupToolingForLLVM.html for an\n"
45 "\texample of setting up Clang Tooling on a source tree.\n"
70 return adjustCommands(Compilations->getCompileCommands(FilePath)); in getCompileCommands()
74 return Compilations->getAllFiles(); in getAllFiles()
78 return adjustCommands(Compilations->getAllCompileCommands()); in getAllCompileCommands()
98 static cl::opt<bool> Help("h", cl::desc("Alias for -help"), cl::Hidden); in CommonOptionsParser()
108 "extra-arg", in CommonOptionsParser()
113 "extra-arg-before", in CommonOptionsParser()
146 AdjustingCompilations->appendArgumentsAdjuster( in CommonOptionsParser()
148 AdjustingCompilations->appendArgumentsAdjuster( in CommonOptionsParser()