27 #ifndef LLVM_CLANG_TOOLING_COMMONOPTIONSPARSER_H 28 #define LLVM_CLANG_TOOLING_COMMONOPTIONSPARSER_H 32 #include "llvm/Support/CommandLine.h" 33 #include "llvm/Support/Error.h" 78 const char *Overview =
nullptr)
92 llvm::cl::NumOccurrencesFlag OccurrencesFlag,
93 const char *Overview =
nullptr);
98 create(
int &argc,
const char **argv, llvm::cl::OptionCategory &Category,
99 llvm::cl::NumOccurrencesFlag OccurrencesFlag,
100 const char *Overview =
nullptr);
104 return *Compilations;
109 return SourcePathList;
122 llvm::cl::OptionCategory &Category,
123 llvm::cl::NumOccurrencesFlag OccurrencesFlag,
124 const char *Overview);
126 std::unique_ptr<CompilationDatabase> Compilations;
127 std::vector<std::string> SourcePathList;
134 std::unique_ptr<CompilationDatabase> Compilations)
135 : Compilations(
std::move(Compilations)) {}
139 std::vector<CompileCommand>
140 getCompileCommands(StringRef FilePath)
const override;
142 std::vector<std::string> getAllFiles()
const override;
144 std::vector<CompileCommand> getAllCompileCommands()
const override;
147 std::unique_ptr<CompilationDatabase> Compilations;
148 std::vector<ArgumentsAdjuster> Adjusters;
150 std::vector<CompileCommand>
151 adjustCommands(std::vector<CompileCommand> Commands)
const;
157 #endif // LLVM_TOOLS_CLANG_INCLUDE_CLANG_TOOLING_COMMONOPTIONSPARSER_H DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
Dataflow Directional Tag Classes.