|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/Tooling/CompilationDatabase.h 69 LHS.CommandLine == RHS.CommandLine && LHS.Output == RHS.Output &&
69 LHS.CommandLine == RHS.CommandLine && LHS.Output == RHS.Output &&
tools/clang/lib/Tooling/CommonOptionsParser.cpp 79 Command.CommandLine = Adjuster(Command.CommandLine, Command.Filename);
79 Command.CommandLine = Adjuster(Command.CommandLine, Command.Filename);
tools/clang/lib/Tooling/CompilationDatabase.cpp 390 Result[0].CommandLine.push_back(FilePath);
tools/clang/lib/Tooling/GuessTargetAndModeCompilationDatabase.cpp 41 if (Cmd.CommandLine.empty())
43 addTargetAndModeForProgramName(Cmd.CommandLine, Cmd.CommandLine.front());
43 addTargetAndModeForProgramName(Cmd.CommandLine, Cmd.CommandLine.front());
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp 135 ClangCLMode(checkIsCLMode(Cmd.CommandLine)) {
136 std::vector<std::string> OldArgs = std::move(Cmd.CommandLine);
137 Cmd.CommandLine.clear();
154 Cmd.CommandLine.emplace_back(OldArgs.front());
190 Cmd.CommandLine.insert(Cmd.CommandLine.end(),
190 Cmd.CommandLine.insert(Cmd.CommandLine.end(),
219 Result.CommandLine.push_back(Flag);
221 Result.CommandLine.push_back("-x");
222 Result.CommandLine.push_back(types::getTypeName(TargetType));
228 Result.CommandLine.emplace_back((
232 Result.CommandLine.push_back(Filename);
tools/clang/lib/Tooling/Tooling.cpp 528 std::vector<std::string> CommandLine = CompileCommand.CommandLine;
tools/clang/tools/extra/clangd/Compiler.cpp 47 for (const auto &S : Inputs.CompileCommand.CommandLine)
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.cpp 42 Cmd.CommandLine = ArgsAdjuster(Cmd.CommandLine, Cmd.Filename);
42 Cmd.CommandLine = ArgsAdjuster(Cmd.CommandLine, Cmd.Filename);
46 Cmd.CommandLine.push_back(("-resource-dir=" + ResourceDir).str());
297 Cmd.CommandLine.insert(Cmd.CommandLine.end(), FallbackFlags.begin(),
297 Cmd.CommandLine.insert(Cmd.CommandLine.end(), FallbackFlags.begin(),
tools/clang/tools/extra/clangd/Preamble.cpp 24 llvm::makeArrayRef(LHS.CommandLine).equals(RHS.CommandLine);
24 llvm::makeArrayRef(LHS.CommandLine).equals(RHS.CommandLine);
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp 153 Cmd.CommandLine.push_back("-isystem");
154 Cmd.CommandLine.push_back(Include.str());
217 if (!Cmd || Cmd->CommandLine.empty())
221 for (size_t I = 0, E = Cmd->CommandLine.size(); I < E; ++I) {
222 llvm::StringRef Arg = Cmd->CommandLine[I];
224 Lang = Cmd->CommandLine[I + 1];
238 llvm::SmallString<128> Driver(Cmd->CommandLine.front());
tools/clang/tools/extra/clangd/TUScheduler.cpp 407 llvm::join(Inputs.CompileCommand.CommandLine, " "));
tools/clang/tools/extra/clangd/index/Serialization.cpp 505 Result.Cmd->CommandLine.reserve(Cmd.CommandLine.size());
507 Result.Cmd->CommandLine.emplace_back(C);
568 InternedCmd.CommandLine.reserve(Data.Cmd->CommandLine.size());
571 for (llvm::StringRef C : Data.Cmd->CommandLine) {
tools/clang/tools/extra/clangd/unittests/BackgroundIndexTests.cpp 101 Cmd.CommandLine = {"clang++", "-DA=1", testPath("root/A.cc")};
141 Cmd.CommandLine = {"clang++", "-DA=1", testPath("root/A.cc")};
153 Cmd.CommandLine = {"clang++", Cmd.Filename};
198 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
267 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
316 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
390 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
451 Cmd.CommandLine = {"clang++", "../A.cc"};
457 Cmd.CommandLine = {"clang++", "./B.cc"};
489 Cmd.CommandLine = {"clang++", "../A.cc"};
545 Cmd.CommandLine = {"clang++", "../A.cc", "-fsyntax-only"};
555 EXPECT_EQ(CmdStored.CommandLine, Cmd.CommandLine);
555 EXPECT_EQ(CmdStored.CommandLine, Cmd.CommandLine);
561 Cmd.CommandLine = {"clang++", "../A.cc", "-Dfoo", "-fsyntax-only"};
569 EXPECT_EQ(CmdStored.CommandLine, Cmd.CommandLine);
569 EXPECT_EQ(CmdStored.CommandLine, Cmd.CommandLine);
tools/clang/tools/extra/clangd/unittests/FileIndexTests.cpp 265 PI.CompileCommand.CommandLine = {"clang", "-xc++", FooCpp};
tools/clang/tools/extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp 45 EXPECT_THAT(Cmd.CommandLine,
51 EXPECT_THAT(Cmd.CommandLine,
55 EXPECT_THAT(Cmd.CommandLine,
91 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine,
97 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine,
101 EXPECT_THAT(CDB.getCompileCommand(testPath("missing.cc"))->CommandLine,
107 EXPECT_THAT(CDB.getFallbackCommand(testPath("bar.cc")).CommandLine,
117 EXPECT_THAT(CDB.getCompileCommand(testPath("bar.cc"))->CommandLine,
120 EXPECT_THAT(CDB.getFallbackCommand(testPath("foo.cc")).CommandLine,
146 Cmd.CommandLine.pop_back();
149 Cmd.CommandLine.push_back("-MF");
150 Cmd.CommandLine.push_back("random-dependency");
153 Cmd.CommandLine.push_back("-Xclang");
154 Cmd.CommandLine.push_back("-load");
155 Cmd.CommandLine.push_back("-Xclang");
156 Cmd.CommandLine.push_back("random-plugin");
158 Cmd.CommandLine.push_back("-DA=5");
159 Cmd.CommandLine.push_back(Cmd.Filename);
163 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine,
tools/clang/tools/extra/clangd/unittests/ParsedASTTests.cpp 222 Inputs.CompileCommand.CommandLine = {"clang", "-fsome-unknown-flag",
228 Inputs.CompileCommand.CommandLine = {
tools/clang/tools/extra/clangd/unittests/SerializationTests.cpp 249 Cmd.CommandLine.push_back("cmd1");
250 Cmd.CommandLine.push_back("cmd2");
266 EXPECT_EQ(SerializedCmd.CommandLine, Cmd.CommandLine);
266 EXPECT_EQ(SerializedCmd.CommandLine, Cmd.CommandLine);
tools/clang/tools/extra/clangd/unittests/TestTU.cpp 54 Inputs.CompileCommand.CommandLine = {Cmd.begin(), Cmd.end()};
tools/clang/tools/libclang/CXCompilationDatabase.cpp 128 return static_cast<CompileCommand *>(CCmd)->CommandLine.size();
139 if (Arg >= Cmd->CommandLine.size())
142 return cxstring::createRef(Cmd->CommandLine[Arg].c_str());
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp 142 ASSERT_EQ(1u, Commands[0].CommandLine.size());
143 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage;
147 ASSERT_EQ(1u, Commands[1].CommandLine.size());
148 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage;
166 ASSERT_EQ(1u, Commands[0].CommandLine.size());
167 EXPECT_EQ(Command2, Commands[0].CommandLine[0]) << ErrorMessage;
170 ASSERT_EQ(1u, Commands[1].CommandLine.size());
171 EXPECT_EQ(Command1, Commands[1].CommandLine[0]) << ErrorMessage;
204 EXPECT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage;
205 EXPECT_EQ(Arguments, FoundCommand.CommandLine[0]) << ErrorMessage;
288 EXPECT_TRUE(NotFound.CommandLine.empty()) << ErrorMessage;
304 ASSERT_EQ(4u, FoundCommand.CommandLine.size()) << ErrorMessage;
306 FoundCommand.CommandLine[0]) << ErrorMessage;
307 EXPECT_EQ("and", FoundCommand.CommandLine[1]) << ErrorMessage;
308 EXPECT_EQ("some", FoundCommand.CommandLine[2]) << ErrorMessage;
309 EXPECT_EQ("arguments", FoundCommand.CommandLine[3]) << ErrorMessage;
318 EXPECT_TRUE(NotFound.CommandLine.empty()) << ErrorMessage;
332 ASSERT_EQ(2u, FoundCommand.CommandLine.size());
334 FoundCommand.CommandLine[0]) << ErrorMessage;
335 EXPECT_EQ("and an argument", FoundCommand.CommandLine[1]) << ErrorMessage;
369 ASSERT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage;
370 EXPECT_EQ("command4", FoundCommand.CommandLine[0]) << ErrorMessage;
393 EXPECT_EQ(Case.second, llvm::join(FoundCommand.CommandLine, " "))
406 return FoundCommand.CommandLine;
512 EXPECT_THAT(Result[0].CommandLine,
569 ASSERT_THAT(Result[0].CommandLine, ElementsAre(EndsWith("clang-tool"),
586 ASSERT_THAT(Result[0].CommandLine,
603 ASSERT_THAT(Result[0].CommandLine,
622 Result[0].CommandLine,
639 ASSERT_THAT(Result[0].CommandLine,
702 EXPECT_EQ(Results[0].CommandLine.back(), path(F))
704 Results[0].CommandLine.pop_back();
705 return llvm::join(Results[0].CommandLine, " ");
827 CCTest.CommandLine.push_back("c");
848 return llvm::join(Results[0].CommandLine, " ");