Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/include/clang/Tooling/
H A DCompilationDatabase.h44 struct CompileCommand { struct
45 CompileCommand() = default;
46 CompileCommand(const Twine &Directory, const 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;
207 std::vector<CompileCommand>
213 std::vector<CompileCommand> CompileCommands;
221 tooling::CompileCommand transferCompileCommand(tooling::CompileCommand,
H A DCommonOptionsParser.h126 std::vector<CompileCommand>
131 std::vector<CompileCommand> getAllCompileCommands() const override;
137 std::vector<CompileCommand>
138 adjustCommands(std::vector<CompileCommand> Commands) const;
H A DJSONCompilationDatabase.h83 std::vector<CompileCommand>
93 std::vector<CompileCommand> getAllCompileCommands() const override;
122 std::vector<CompileCommand> &Commands) const;
/llvm-project-15.0.7/clang/tools/libclang/
H A 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DGlobalCompilationDatabase.h39 virtual llvm::Optional<tooling::CompileCommand>
50 virtual tooling::CompileCommand getFallbackCommand(PathRef File) const;
73 llvm::Optional<tooling::CompileCommand>
78 tooling::CompileCommand getFallbackCommand(PathRef File) const override;
117 llvm::Optional<tooling::CompileCommand>
181 llvm::Optional<tooling::CompileCommand>
183 tooling::CompileCommand getFallbackCommand(PathRef File) const override;
188 llvm::Optional<tooling::CompileCommand> CompilationCommand);
192 llvm::StringMap<tooling::CompileCommand> Commands; /* GUARDED_BY(Mut) */
H A DPreamble.cpp58 bool compileCommandsAreEqual(const tooling::CompileCommand &LHS, in compileCommandsAreEqual()
59 const tooling::CompileCommand &RHS) { in compileCommandsAreEqual()
306 scanPreamble(llvm::StringRef Contents, const tooling::CompileCommand &Cmd) { in scanPreamble()
318 PI.CompileCommand = Cmd; in scanPreamble()
529 auto VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in buildPreamble()
561 Result->CompileCommand = Inputs.CompileCommand; in buildPreamble()
583 auto VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in isPreambleCompatible()
584 return compileCommandsAreEqual(Inputs.CompileCommand, in isPreambleCompatible()
585 Preamble.CompileCommand) && in isPreambleCompatible()
620 Baseline.Preamble.getContents().str(), Modified.CompileCommand); in create()
[all …]
H A DCompiler.h47 tooling::CompileCommand CompileCommand; member
H A DQueryDriverDatabase.cpp239 tooling::CompileCommand &
240 addSystemIncludes(tooling::CompileCommand &Cmd, in addSystemIncludes()
257 tooling::CompileCommand &setTarget(tooling::CompileCommand &Cmd, in setTarget()
326 llvm::Optional<tooling::CompileCommand>
H A DGlobalCompilationDatabase.cpp53 tooling::CompileCommand
63 tooling::CompileCommand Cmd(llvm::sys::path::parent_path(File), in getFallbackCommand()
357 llvm::Optional<tooling::CompileCommand>
747 llvm::Optional<tooling::CompileCommand>
749 llvm::Optional<tooling::CompileCommand> Cmd; in getCompileCommand()
765 tooling::CompileCommand OverlayCDB::getFallbackCommand(PathRef File) const { in getFallbackCommand()
776 PathRef File, llvm::Optional<tooling::CompileCommand> Cmd) { in setCompileCommand()
804 llvm::Optional<tooling::CompileCommand>
817 tooling::CompileCommand DelegatingCDB::getFallbackCommand(PathRef File) const { in getFallbackCommand()
H A DPreamble.h54 tooling::CompileCommand CompileCommand; member
H A DTUScheduler.cpp347 bool isReliable(const tooling::CompileCommand &Cmd) { in isReliable()
637 tooling::CompileCommand getCurrentCompileCommand() const;
838 FileInputs.CompileCommand = CDB.getFallbackCommand(FileName); in ASTWorker()
878 Inputs.CompileCommand = std::move(*Cmd); in update()
884 std::tie(Inputs.CompileCommand, Inputs.Contents); in update()
899 Inputs.CompileCommand.Directory, in update()
900 printArgv(Inputs.CompileCommand.CommandLine)); in update()
1024 auto &Command = FileInputs.CompileCommand; in crashDumpParseInputs()
1078 if (isReliable(LatestBuild->CompileCommand)) in build()
1163 std::tie(Inputs.CompileCommand, Inputs.Contents); in generateDiagnostics()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DCompilationDatabaseTest.cpp68 static std::vector<CompileCommand>
76 return std::vector<CompileCommand>(); in getAllCompileCommands()
181 return CompileCommand(); in findCompileArgsInJsonDatabase()
187 return CompileCommand(); in findCompileArgsInJsonDatabase()
403 CompileCommand FoundCommand = in TEST()
519 std::vector<CompileCommand> Result = in TEST()
598 std::vector<CompileCommand> Result = in TEST()
615 std::vector<CompileCommand> Result = in TEST()
632 std::vector<CompileCommand> Result = in TEST()
874 CompileCommand Cmd; in TEST()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/
H A 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()
H A 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()
H A 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()
H A DInterpolatingCompilationDatabase.cpp130 CompileCommand Cmd;
138 TransferableCommand(CompileCommand C) in TransferableCommand()
216 CompileCommand transferTo(StringRef Filename) && { in transferTo()
217 CompileCommand Result = std::move(Cmd); in transferTo()
508 std::vector<CompileCommand>
528 std::vector<CompileCommand> getAllCompileCommands() const override { in getAllCompileCommands()
544 tooling::CompileCommand transferCompileCommand(CompileCommand Cmd, in transferCompileCommand()
H A DJSONCompilationDatabase.cpp225 std::vector<CompileCommand>
238 std::vector<CompileCommand> Commands; in getCompileCommands()
251 std::vector<CompileCommand>
253 std::vector<CompileCommand> Commands; in getAllCompileCommands()
315 std::vector<CompileCommand> &Commands) const { in getCommands()
H A DTooling.cpp525 std::vector<CompileCommand> CompileCommandsForFile = in run()
532 for (CompileCommand &CompileCommand : CompileCommandsForFile) { in run()
541 CompileCommand.Directory)) in run()
543 Twine(CompileCommand.Directory) + "\"!"); in run()
548 if (SeenWorkingDirectories.insert(CompileCommand.Directory).second) in run()
555 std::vector<std::string> CommandLine = CompileCommand.CommandLine; in run()
557 CommandLine = ArgsAdjuster(CommandLine, CompileCommand.Filename); in run()
H A DCompilationDatabase.cpp132 std::vector<CompileCommand> CompilationDatabase::getAllCompileCommands() const { in getAllCompileCommands()
133 std::vector<CompileCommand> Result; in getAllCompileCommands()
381 std::vector<CompileCommand>
383 std::vector<CompileCommand> Result(CompileCommands); in getCompileCommands()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A 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()
303 .value_or(tooling::CompileCommand()) in TEST()
402 DB.setCompileCommand(Root.str(), tooling::CompileCommand()); in TEST()
422 DB.setCompileCommand(File, tooling::CompileCommand()); in TEST_F()
H A DTestTU.cpp42 auto &Argv = Inputs.CompileCommand.CommandLine; in inputs()
54 Inputs.CompileCommand.CommandLine.push_back("-fno-ms-compatibility"); in inputs()
62 Mangler.adjust(Inputs.CompileCommand.CommandLine, FullFilename); in inputs()
63 Inputs.CompileCommand.Filename = FullFilename; in inputs()
64 Inputs.CompileCommand.Directory = testRoot(); in inputs()
H A DBackgroundIndexTests.cpp104 tooling::CompileCommand Cmd; in TEST_F()
123 tooling::CompileCommand Cmd; in TEST_F()
197 tooling::CompileCommand Cmd; in TEST_F()
252 tooling::CompileCommand Cmd; in TEST_F()
282 tooling::CompileCommand Cmd; in TEST_F()
352 tooling::CompileCommand Cmd; in TEST_F()
401 tooling::CompileCommand Cmd; in TEST_F()
475 tooling::CompileCommand Cmd; in TEST_F()
536 tooling::CompileCommand Cmd; in TEST_F()
566 tooling::CompileCommand Cmd; in TEST_F()
[all …]
H A DStdLibTests.cpp65 OriginalInputs.CompileCommand.Filename = testPath("main.cc"); in TEST()
66 OriginalInputs.CompileCommand.CommandLine = {"clang++", testPath("main.cc"), in TEST()
69 OriginalInputs.CompileCommand.Directory = testRoot(); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSerialization.h49 llvm::Optional<tooling::CompileCommand> Cmd;
63 const tooling::CompileCommand *Cmd = nullptr;
H A DBackground.cpp66 llvm::SmallString<128> getAbsolutePath(const tooling::CompileCommand &Cmd) { in getAbsolutePath()
252 llvm::Error BackgroundIndex::index(tooling::CompileCommand Cmd) { in index()
273 Inputs.CompileCommand = std::move(Cmd); in index()
327 Index.Cmd = Inputs.CompileCommand; in index()
332 Inputs.CompileCommand.Filename, Index.Symbols->size(), in index()

12