Home
last modified time | relevance | path

Searched refs:CompileCommand (Results 1 – 25 of 58) sorted by relevance

123

/external/clang/tools/libclang/
DCXCompilationDatabase.cpp41 std::vector<CompileCommand> CCmd;
43 AllocatedCXCompileCommands(std::vector<CompileCommand> Cmd) in AllocatedCXCompileCommands()
52 std::vector<CompileCommand> CCmd(db->getCompileCommands(CompleteFileName)); in clang_CompilationDatabase_getCompileCommands()
63 std::vector<CompileCommand> CCmd(db->getAllCompileCommands()); in clang_CompilationDatabase_getAllCompileCommands()
110 CompileCommand *cmd = static_cast<CompileCommand *>(CCmd); in clang_CompileCommand_getDirectory()
120 CompileCommand *cmd = static_cast<CompileCommand *>(CCmd); in clang_CompileCommand_getFilename()
130 return static_cast<CompileCommand *>(CCmd)->CommandLine.size(); in clang_CompileCommand_getNumArgs()
139 CompileCommand *Cmd = static_cast<CompileCommand *>(CCmd); in clang_CompileCommand_getArg()
153 return static_cast<CompileCommand *>(CCmd)->MappedSources.size(); in clang_CompileCommand_getNumMappedSources()
162 CompileCommand *Cmd = static_cast<CompileCommand *>(CCmd); in clang_CompileCommand_getMappedSourcePath()
[all …]
/external/llvm-project/clang/tools/libclang/
DCXCompilationDatabase.cpp39 std::vector<CompileCommand> CCmd;
41 AllocatedCXCompileCommands(std::vector<CompileCommand> Cmd) in AllocatedCXCompileCommands()
50 std::vector<CompileCommand> CCmd(db->getCompileCommands(CompleteFileName)); in clang_CompilationDatabase_getCompileCommands()
61 std::vector<CompileCommand> CCmd(db->getAllCompileCommands()); in clang_CompilationDatabase_getAllCompileCommands()
108 CompileCommand *cmd = static_cast<CompileCommand *>(CCmd); in clang_CompileCommand_getDirectory()
118 CompileCommand *cmd = static_cast<CompileCommand *>(CCmd); in clang_CompileCommand_getFilename()
128 return static_cast<CompileCommand *>(CCmd)->CommandLine.size(); in clang_CompileCommand_getNumArgs()
137 CompileCommand *Cmd = static_cast<CompileCommand *>(CCmd); in clang_CompileCommand_getArg()
/external/llvm-project/clang/include/clang/Tooling/
DCompilationDatabase.h44 struct CompileCommand { struct
45 CompileCommand() = default;
46 CompileCommand(Twine Directory, Twine Filename, in CompileCommand() function
68 friend bool operator==(const CompileCommand &LHS, const CompileCommand &RHS) { argument
74 friend bool operator!=(const CompileCommand &LHS, const CompileCommand &RHS) {
129 virtual std::vector<CompileCommand> getCompileCommands(
147 virtual std::vector<CompileCommand> getAllCompileCommands() const;
206 std::vector<CompileCommand>
212 std::vector<CompileCommand> CompileCommands;
DCommonOptionsParser.h138 std::vector<CompileCommand>
143 std::vector<CompileCommand> getAllCompileCommands() const override;
149 std::vector<CompileCommand>
150 adjustCommands(std::vector<CompileCommand> Commands) const;
DJSONCompilationDatabase.h83 std::vector<CompileCommand>
93 std::vector<CompileCommand> getAllCompileCommands() const override;
122 std::vector<CompileCommand> &Commands) const;
/external/clang/include/clang/Tooling/
DCompilationDatabase.h43 struct CompileCommand { struct
44 CompileCommand() {} in CompileCommand() argument
45 CompileCommand(Twine Directory, Twine Filename, in CompileCommand() argument
119 virtual std::vector<CompileCommand> getCompileCommands(
131 virtual std::vector<CompileCommand> getAllCompileCommands() const = 0;
199 std::vector<CompileCommand>
211 std::vector<CompileCommand> getAllCompileCommands() const override;
216 std::vector<CompileCommand> CompileCommands;
DJSONCompilationDatabase.h78 std::vector<CompileCommand>
88 std::vector<CompileCommand> getAllCompileCommands() const override;
114 std::vector<CompileCommand> &Commands) const;
/external/llvm-project/clang-tools-extra/clangd/
DGlobalCompilationDatabase.h40 virtual llvm::Optional<tooling::CompileCommand>
51 virtual tooling::CompileCommand getFallbackCommand(PathRef File) const;
76 llvm::Optional<tooling::CompileCommand>
131 llvm::Optional<tooling::CompileCommand>
133 tooling::CompileCommand getFallbackCommand(PathRef File) const override;
141 llvm::Optional<tooling::CompileCommand> CompilationCommand);
145 llvm::StringMap<tooling::CompileCommand> Commands; /* GUARDED_BY(Mut) */
DPreamble.cpp59 bool compileCommandsAreEqual(const tooling::CompileCommand &LHS, in compileCommandsAreEqual()
60 const tooling::CompileCommand &RHS) { in compileCommandsAreEqual()
230 scanPreamble(llvm::StringRef Contents, const tooling::CompileCommand &Cmd) { in scanPreamble()
242 PI.CompileCommand = Cmd; in scanPreamble()
310 : Version(Inputs.Version), CompileCommand(Inputs.CompileCommand), in PreambleData()
342 auto VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in buildPreamble()
378 auto VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in isPreambleCompatible()
379 return compileCommandsAreEqual(Inputs.CompileCommand, in isPreambleCompatible()
380 Preamble.CompileCommand) && in isPreambleCompatible()
415 Baseline.Preamble.getContents().str(), Modified.CompileCommand); in create()
[all …]
DGlobalCompilationDatabase.cpp46 tooling::CompileCommand
56 tooling::CompileCommand Cmd(llvm::sys::path::parent_path(File), in getFallbackCommand()
178 llvm::Optional<tooling::CompileCommand>
358 llvm::Optional<tooling::CompileCommand>
360 llvm::Optional<tooling::CompileCommand> Cmd; in getCompileCommand()
376 tooling::CompileCommand OverlayCDB::getFallbackCommand(PathRef File) const { in getFallbackCommand()
388 PathRef File, llvm::Optional<tooling::CompileCommand> Cmd) { in setCompileCommand()
DCompiler.h47 tooling::CompileCommand CompileCommand; member
DPreamble.h58 tooling::CompileCommand CompileCommand; member
/external/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp60 static std::vector<CompileCommand> getAllCompileCommands(StringRef JSONDatabase, in getAllCompileCommands()
66 return std::vector<CompileCommand>(); in getAllCompileCommands()
104 std::vector<CompileCommand> Commands = getAllCompileCommands( in TEST()
142 static CompileCommand findCompileArgsInJsonDatabase(StringRef FileName, in findCompileArgsInJsonDatabase()
148 return CompileCommand(); in findCompileArgsInJsonDatabase()
149 std::vector<CompileCommand> Commands = Database->getCompileCommands(FileName); in findCompileArgsInJsonDatabase()
152 return CompileCommand(); in findCompileArgsInJsonDatabase()
163 CompileCommand FoundCommand = findCompileArgsInJsonDatabase( in TEST()
253 CompileCommand NotFound = findCompileArgsInJsonDatabase( in TEST()
264 CompileCommand FoundCommand = findCompileArgsInJsonDatabase( in TEST()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp68 static std::vector<CompileCommand>
76 return std::vector<CompileCommand>(); in getAllCompileCommands()
125 std::vector<CompileCommand> Commands = getAllCompileCommands( in TEST()
174 static CompileCommand findCompileArgsInJsonDatabase(StringRef FileName, in findCompileArgsInJsonDatabase()
181 return CompileCommand(); in findCompileArgsInJsonDatabase()
184 std::vector<CompileCommand> Commands = Database->getCompileCommands(FileName); in findCompileArgsInJsonDatabase()
187 return CompileCommand(); in findCompileArgsInJsonDatabase()
198 CompileCommand FoundCommand = findCompileArgsInJsonDatabase( in TEST()
297 CompileCommand NotFound = findCompileArgsInJsonDatabase( in TEST()
308 CompileCommand FoundCommand = findCompileArgsInJsonDatabase( in TEST()
[all …]
/external/llvm-project/clang/lib/Tooling/
DGuessTargetAndModeCompilationDatabase.cpp28 std::vector<CompileCommand> getAllCompileCommands() const override { in getAllCompileCommands()
32 std::vector<CompileCommand>
38 std::vector<CompileCommand>
39 addTargetAndMode(std::vector<CompileCommand> Cmds) const { in addTargetAndMode()
DExpandResponseFilesCompilationDatabase.cpp40 std::vector<CompileCommand>
45 std::vector<CompileCommand> getAllCompileCommands() const override { in getAllCompileCommands()
50 std::vector<CompileCommand> expand(std::vector<CompileCommand> Cmds) const { in expand()
DCommonOptionsParser.cpp60 std::vector<CompileCommand> ArgumentsAdjustingCompilations::getCompileCommands( in getCompileCommands()
70 std::vector<CompileCommand>
75 std::vector<CompileCommand> ArgumentsAdjustingCompilations::adjustCommands( in adjustCommands()
76 std::vector<CompileCommand> Commands) const { in adjustCommands()
77 for (CompileCommand &Command : Commands) in adjustCommands()
DTooling.cpp497 std::vector<CompileCommand> CompileCommandsForFile = in run()
504 for (CompileCommand &CompileCommand : CompileCommandsForFile) { in run()
513 CompileCommand.Directory)) in run()
515 Twine(CompileCommand.Directory) + "\"!"); in run()
520 if (SeenWorkingDirectories.insert(CompileCommand.Directory).second) in run()
527 std::vector<std::string> CommandLine = CompileCommand.CommandLine; in run()
529 CommandLine = ArgsAdjuster(CommandLine, CompileCommand.Filename); in run()
DJSONCompilationDatabase.cpp228 std::vector<CompileCommand>
241 std::vector<CompileCommand> Commands; in getCompileCommands()
254 std::vector<CompileCommand>
256 std::vector<CompileCommand> Commands; in getAllCompileCommands()
318 std::vector<CompileCommand> &Commands) const { in getCommands()
/external/clang/lib/Tooling/
DCommonOptionsParser.cpp68 std::vector<CompileCommand>
77 std::vector<CompileCommand> getAllCompileCommands() const override { in getAllCompileCommands()
85 std::vector<CompileCommand>
86 adjustCommands(std::vector<CompileCommand> Commands) const { in adjustCommands()
87 for (CompileCommand &Command : Commands) in adjustCommands()
DJSONCompilationDatabase.cpp172 std::vector<CompileCommand>
181 return std::vector<CompileCommand>(); in getCompileCommands()
185 return std::vector<CompileCommand>(); in getCompileCommands()
186 std::vector<CompileCommand> Commands; in getCompileCommands()
206 std::vector<CompileCommand>
208 std::vector<CompileCommand> Commands; in getAllCompileCommands()
228 std::vector<CompileCommand> &Commands) const { in getCommands()
DTooling.cpp390 std::vector<CompileCommand> CompileCommandsForFile = in run()
401 for (CompileCommand &CompileCommand : CompileCommandsForFile) { in run()
410 CompileCommand.Directory)) in run()
412 Twine(CompileCommand.Directory) + "\n!"); in run()
417 if (SeenWorkingDirectories.insert(CompileCommand.Directory).second) in run()
424 std::vector<std::string> CommandLine = CompileCommand.CommandLine; in run()
426 CommandLine = ArgsAdjuster(CommandLine, CompileCommand.Filename); in run()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DGlobalCompilationDatabaseTests.cpp58 static tooling::CompileCommand cmd(llvm::StringRef File, llvm::StringRef Arg) { in cmd()
59 return tooling::CompileCommand( in cmd()
66 llvm::Optional<tooling::CompileCommand>
73 tooling::CompileCommand
131 Inner.setCompileCommand("A.cpp", tooling::CompileCommand()); in TEST_F()
132 Outer.setCompileCommand("B.cpp", tooling::CompileCommand()); in TEST_F()
153 tooling::CompileCommand BarCommand; in TEST_F()
288 .getValueOr(tooling::CompileCommand()) in TEST()
308 DB.setCompileCommand(Root.str(), tooling::CompileCommand()); in TEST()
328 DB.setCompileCommand(File, tooling::CompileCommand()); in TEST_F()
DBackgroundIndexTests.cpp103 tooling::CompileCommand Cmd; in TEST_F()
116 std::vector<tooling::CompileCommand> Cmds; in TEST_F()
122 tooling::CompileCommand Cmd; in TEST_F()
196 tooling::CompileCommand Cmd; in TEST_F()
253 tooling::CompileCommand Cmd; in TEST_F()
277 tooling::CompileCommand Cmd; in TEST_F()
309 tooling::CompileCommand Cmd; in TEST_F()
379 tooling::CompileCommand Cmd; in TEST_F()
428 tooling::CompileCommand Cmd; in TEST_F()
502 tooling::CompileCommand Cmd; in TEST_F()
[all …]
DTestTU.cpp39 auto &Argv = Inputs.CompileCommand.CommandLine; in inputs()
49 Inputs.CompileCommand.CommandLine.push_back("-fno-ms-compatibility"); in inputs()
55 Inputs.CompileCommand.Filename = FullFilename; in inputs()
56 Inputs.CompileCommand.Directory = testRoot(); in inputs()

123