26 #ifndef LLVM_CLANG_TOOLING_COMMONOPTIONSPARSER_H 27 #define LLVM_CLANG_TOOLING_COMMONOPTIONSPARSER_H 31 #include "llvm/Support/CommandLine.h" 32 #include "llvm/Support/Error.h" 77 const char *Overview =
nullptr)
91 llvm::cl::NumOccurrencesFlag OccurrencesFlag,
92 const char *Overview =
nullptr);
97 create(
int &argc,
const char **argv, llvm::cl::OptionCategory &Category,
98 llvm::cl::NumOccurrencesFlag OccurrencesFlag,
99 const char *Overview =
nullptr);
103 return *Compilations;
108 return SourcePathList;
121 llvm::cl::OptionCategory &Category,
122 llvm::cl::NumOccurrencesFlag OccurrencesFlag,
123 const char *Overview);
125 std::unique_ptr<CompilationDatabase> Compilations;
126 std::vector<std::string> SourcePathList;
133 std::unique_ptr<CompilationDatabase> Compilations)
134 : Compilations(
std::move(Compilations)) {}
138 std::vector<CompileCommand>
139 getCompileCommands(StringRef FilePath)
const override;
141 std::vector<std::string> getAllFiles()
const override;
143 std::vector<CompileCommand> getAllCompileCommands()
const override;
146 std::unique_ptr<CompilationDatabase> Compilations;
147 std::vector<ArgumentsAdjuster> Adjusters;
149 std::vector<CompileCommand>
150 adjustCommands(std::vector<CompileCommand> Commands)
const;
156 #endif // LLVM_TOOLS_CLANG_INCLUDE_CLANG_TOOLING_COMMONOPTIONSPARSER_H Specialize PointerLikeTypeTraits to allow LazyGenerationalUpdatePtr to be placed into a PointerUnion...
Dataflow Directional Tag Classes.