| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | CompilationDatabaseTest.cpp | 418 return FoundCommand.CommandLine; in unescapeJsonCommandLine() 524 EXPECT_THAT(Result[0].CommandLine, in TEST() 530 CommandLine.push_back("one"); in TEST() 531 CommandLine.push_back("two"); in TEST() 539 CommandLine.push_back("one"); in TEST() 540 CommandLine.push_back("two"); in TEST() 563 Result.front().CommandLine, in TEST() 619 ASSERT_THAT(Result[0].CommandLine, in TEST() 636 ASSERT_THAT(Result[0].CommandLine, in TEST() 655 Result[0].CommandLine, in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | QueryDriverDatabase.cpp | 190 for (size_t I = 0, E = CommandLine.size(); I < E; ++I) { in extractSystemIncludesAndTarget() 191 llvm::StringRef Arg = CommandLine[I]; in extractSystemIncludesAndTarget() 204 Args.push_back(CommandLine[I]); in extractSystemIncludesAndTarget() 205 Args.push_back(CommandLine[++I]); in extractSystemIncludesAndTarget() 207 Args.push_back(CommandLine[I]); in extractSystemIncludesAndTarget() 250 auto InsertAt = llvm::find(Cmd.CommandLine, "--"); in addSystemIncludes() 261 for (llvm::StringRef Arg : Cmd.CommandLine) { in setTarget() 266 auto InsertAt = llvm::find(Cmd.CommandLine, "--"); in setTarget() 329 if (!Cmd || Cmd->CommandLine.empty()) in getCompileCommand() 334 llvm::StringRef Arg = Cmd->CommandLine[I]; in getCompileCommand() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | GlobalCompilationDatabaseTests.cpp | 90 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine, in TEST_F() 96 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine, in TEST_F() 106 EXPECT_THAT(CDB.getFallbackCommand(testPath("bar.cc")).CommandLine, in TEST_F() 115 EXPECT_THAT(CDB.getCompileCommand(testPath("bar.cc"))->CommandLine, in TEST_F() 118 EXPECT_THAT(CDB.getFallbackCommand(testPath("foo.cc")).CommandLine, in TEST_F() 155 BarCommand.CommandLine = {"clang++", "-DB=1", testPath("bar.cc")}; in TEST_F() 159 Cmd.CommandLine, in TEST_F() 304 .CommandLine; in TEST() 335 EXPECT_THAT(Commands.value().CommandLine, Contains("-DFOO")); in TEST() 345 if (!llvm::is_contained(arg->CommandLine, Flag)) { [all …]
|
| H A D | TestFS.cpp | 68 auto CommandLine = ExtraClangFlags; in getCompileCommand() local 69 CommandLine.insert(CommandLine.begin(), "clang"); in getCompileCommand() 72 CommandLine.push_back(std::string(File)); in getCompileCommand() 77 CommandLine.push_back(std::string(RelativeFilePath.str())); in getCompileCommand() 83 FileName, std::move(CommandLine), "")}; in getCompileCommand()
|
| H A D | BackgroundIndexTests.cpp | 126 Cmd.CommandLine = {"clang++", Filename}; in TEST_F() 212 Cmd.CommandLine = {"clang++", Cmd.Filename}; in TEST_F() 255 Cmd.CommandLine = {"clang++", testPath("root/A.cc")}; in TEST_F() 285 Cmd.CommandLine = {"clang++", testPath("root/A.cc")}; in TEST_F() 355 Cmd.CommandLine = {"clang++", testPath("root/A.cc")}; in TEST_F() 404 Cmd.CommandLine = {"clang++", testPath("root/A.cc")}; in TEST_F() 540 Cmd.CommandLine = {"clang++", "../A.cc"}; in TEST_F() 547 Cmd.CommandLine = {"clang++", "./B.cc"}; in TEST_F() 579 Cmd.CommandLine = {"clang++", "../A.cc"}; in TEST_F() 643 EXPECT_EQ(CmdStored.CommandLine, Cmd.CommandLine); in TEST_F() [all …]
|
| H A D | SerializationTests.cpp | 182 EXPECT_THAT(Cmd.CommandLine, ElementsAre("cmd1", "cmd2")); in TEST() 284 Cmd.CommandLine.push_back("cmd1"); in TEST() 285 Cmd.CommandLine.push_back("cmd2"); in TEST() 301 EXPECT_EQ(SerializedCmd.CommandLine, Cmd.CommandLine); in TEST()
|
| H A D | TestTU.cpp | 42 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()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/ |
| H A D | CompilationDatabase.h | 47 std::vector<std::string> CommandLine, const Twine &Output) in CompileCommand() 49 CommandLine(std::move(CommandLine)), Output(Output.str()) {} in CompileCommand() 58 std::vector<std::string> CommandLine; member 70 LHS.CommandLine == RHS.CommandLine && LHS.Output == RHS.Output && 200 ArrayRef<std::string> CommandLine);
|
| H A D | Tooling.h | 252 ToolInvocation(std::vector<std::string> CommandLine, 264 ToolInvocation(std::vector<std::string> CommandLine, ToolAction *Action, 292 std::vector<std::string> CommandLine; variable 506 void addTargetAndModeForProgramName(std::vector<std::string> &CommandLine,
|
| /llvm-project-15.0.7/clang/lib/Tooling/ |
| H A D | Tooling.cpp | 267 if (CommandLine.empty() || InvokedAs.empty()) in addTargetAndModeForProgramName() 286 for (auto Token = ++CommandLine.begin(); Token != CommandLine.end(); in addTargetAndModeForProgramName() 294 CommandLine.insert(++CommandLine.begin(), TargetMode.DriverMode); in addTargetAndModeForProgramName() 297 CommandLine.insert(++CommandLine.begin(), in addTargetAndModeForProgramName() 324 : CommandLine(std::move(CommandLine)), Action(Action), OwnsAction(false), in ToolInvocation() 328 std::vector<std::string> CommandLine, in ToolInvocation() argument 331 : CommandLine(std::move(CommandLine)), in ToolInvocation() 343 for (const std::string &Str : CommandLine) in run() 555 std::vector<std::string> CommandLine = CompileCommand.CommandLine; in run() local 557 CommandLine = ArgsAdjuster(CommandLine, CompileCommand.Filename); in run() [all …]
|
| H A D | GuessTargetAndModeCompilationDatabase.cpp | 41 if (Cmd.CommandLine.empty()) in addTargetAndMode() 43 addTargetAndModeForProgramName(Cmd.CommandLine, Cmd.CommandLine.front()); in addTargetAndMode()
|
| H A D | InterpolatingCompilationDatabase.cpp | 140 std::vector<std::string> OldArgs = std::move(Cmd.CommandLine); in TransferableCommand() 141 Cmd.CommandLine.clear(); in TransferableCommand() 161 Cmd.CommandLine.emplace_back(OldArgs.front()); in TransferableCommand() 201 Cmd.CommandLine.insert(Cmd.CommandLine.end(), in TransferableCommand() 233 Result.CommandLine.push_back(std::string(Flag)); in transferTo() 235 Result.CommandLine.push_back("-x"); in transferTo() 236 Result.CommandLine.push_back(types::getTypeName(TargetType)); in transferTo() 242 Result.CommandLine.emplace_back(( in transferTo() 246 Result.CommandLine.push_back("--"); in transferTo() 247 Result.CommandLine.push_back(std::string(Filename)); in transferTo()
|
| H A D | ExpandResponseFilesCompilationDatabase.cpp | 54 Argv.reserve(Cmd.CommandLine.size()); in expand() 55 for (auto &Arg : Cmd.CommandLine) { in expand() 68 Cmd.CommandLine = std::move(ExpandedArgv); in expand()
|
| H A D | CompilationDatabase.cpp | 333 std::vector<const char *> CommandLine(DoubleDash + 1, Argv + Argc); in loadFromCommandLine() local 337 if (!stripPositionalArgs(CommandLine, StrippedArgs, ErrorMsg)) in loadFromCommandLine() 372 const Twine &Directory, ArrayRef<std::string> CommandLine) { in FixedCompilationDatabase() argument 375 CommandLine.begin(), CommandLine.end()); in FixedCompilationDatabase() 384 Result[0].CommandLine.push_back(std::string(FilePath)); in getCompileCommands()
|
| H A D | JSONCompilationDatabase.cpp | 54 CommandLineArgumentParser(StringRef CommandLine) in CommandLineArgumentParser() argument 55 : Input(CommandLine), Position(Input.begin()-1) {} in CommandLineArgumentParser() 62 CommandLine.push_back(Argument); in parse() 64 return CommandLine; in parse() 132 std::vector<std::string> CommandLine; member in __anon35ec8ac30111::CommandLineArgumentParser
|
| /llvm-project-15.0.7/clang-tools-extra/modularize/ |
| H A D | CoverageChecker.h | 49 llvm::ArrayRef<std::string> CommandLine; variable 80 llvm::ArrayRef<std::string> CommandLine, 95 llvm::ArrayRef<std::string> CommandLine, clang::ModuleMap *ModuleMap);
|
| H A D | CoverageChecker.cpp | 146 ArrayRef<std::string> CommandLine, in CoverageChecker() argument 149 CommandLine(CommandLine), in CoverageChecker() 156 ArrayRef<std::string> CommandLine, clang::ModuleMap *ModuleMap) { in createCoverageChecker() argument 159 CommandLine, ModuleMap); in createCoverageChecker() 282 Compilations.reset(new FixedCompilationDatabase(Twine(PathBuf), CommandLine)); in collectUmbrellaHeaderHeaders()
|
| /llvm-project-15.0.7/clang/lib/Tooling/DependencyScanning/ |
| H A D | DependencyScanningTool.cpp | 58 const std::vector<std::string> &CommandLine, StringRef CWD, in getDependencyFile() argument 113 Worker.computeDependencies(CWD, CommandLine, Consumer, ModuleName); in getDependencyFile() 123 const std::vector<std::string> &CommandLine, StringRef CWD, in getFullDependencies() argument 194 Worker.computeDependencies(CWD, CommandLine, Consumer, ModuleName); in getFullDependencies() 197 return Consumer.getFullDependencies(CommandLine); in getFullDependencies()
|
| H A D | DependencyScanningWorker.cpp | 310 StringRef WorkingDirectory, const std::vector<std::string> &CommandLine, in computeDependencies() argument 322 ModifiedCommandLine = CommandLine; in computeDependencies() 328 ModifiedCommandLine ? *ModifiedCommandLine : CommandLine; in computeDependencies() 330 std::vector<const char *> FinalCCommandLine(CommandLine.size(), nullptr); in computeDependencies() 331 llvm::transform(CommandLine, FinalCCommandLine.begin(), in computeDependencies()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | Serialization.cpp | 423 std::vector<llvm::StringRef> CommandLine; member 430 writeVar(Cmd.CommandLine.size(), CmdOS); in writeCompileCommand() 431 for (llvm::StringRef C : Cmd.CommandLine) in writeCompileCommand() 439 if (!CmdReader.consumeSize(Cmd.CommandLine)) in readCompileCommand() 441 for (llvm::StringRef &C : Cmd.CommandLine) in readCompileCommand() 544 Result.Cmd->CommandLine.reserve(Cmd.CommandLine.size()); in readRIFF() 545 for (llvm::StringRef C : Cmd.CommandLine) in readRIFF() 546 Result.Cmd->CommandLine.emplace_back(C); in readRIFF() 607 InternedCmd.CommandLine.reserve(Data.Cmd->CommandLine.size()); in writeRIFF() 610 for (llvm::StringRef C : Data.Cmd->CommandLine) { in writeRIFF() [all …]
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXCompilationDatabase.cpp | 128 return static_cast<CompileCommand *>(CCmd)->CommandLine.size(); in clang_CompileCommand_getNumArgs() 139 if (Arg >= Cmd->CommandLine.size()) in clang_CompileCommand_getArg() 142 return cxstring::createRef(Cmd->CommandLine[Arg].c_str()); in clang_CompileCommand_getArg()
|
| /llvm-project-15.0.7/llvm/utils/KillTheDoctor/ |
| H A D | KillTheDoctor.cpp | 317 std::string CommandLine(ProgramToRun); in main() local 322 errs() << ToolName << ": Failed to find program: '" << CommandLine in main() 331 CommandLine.push_back(' '); in main() 332 CommandLine.append(Arg); in main() 337 << ToolName << ": Command Line: " << CommandLine << '\n'; in main() 351 const_cast<LPSTR>(CommandLine.c_str()), in main()
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A D | CommandLine.rst | 2 CommandLine 2.0 Library Manual 11 This document describes the CommandLine argument processing library. It will 12 show you how to use it, and what it can do. The CommandLine library uses a 20 CommandLine library to have the following features: 29 #. Type Safe: As a user of CommandLine, you don't have to worry about 53 possible because CommandLine is... 86 #include "llvm/Support/CommandLine.h" 273 the CommandLine library also provides primitives to support CommandLine option 606 **OVERVIEW: CommandLine compiler example 690 CommandLine library, this would be specified as: [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/DependencyScanning/ |
| H A D | DependencyScanningTool.h | 83 getDependencyFile(const std::vector<std::string> &CommandLine, StringRef CWD, 99 getFullDependencies(const std::vector<std::string> &CommandLine,
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | ToolRunner.cpp | 354 const std::string &CommandLine, std::string &CmdPath, in lexCommand() argument 363 for (std::size_t Pos = 0u; Pos <= CommandLine.size(); ++Pos) { in lexCommand() 364 if ('\\' == CommandLine[Pos]) { in lexCommand() 365 if (Pos + 1 < CommandLine.size()) in lexCommand() 366 Token.push_back(CommandLine[++Pos]); in lexCommand() 370 if (' ' == CommandLine[Pos] || CommandLine.size() == Pos) { in lexCommand() 385 Token.push_back(CommandLine[Pos]); in lexCommand()
|