Home
last modified time | relevance | path

Searched refs:CommandLine (Results 1 – 25 of 43) sorted by relevance

12

/openbsd-src/gnu/llvm/clang/lib/Tooling/
H A DTooling.cpp265 void addTargetAndModeForProgramName(std::vector<std::string> &CommandLine, in addTargetAndModeForProgramName() argument
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()
322 std::vector<std::string> CommandLine, ToolAction *Action, in ToolInvocation() argument
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()
[all …]
H A DGuessTargetAndModeCompilationDatabase.cpp41 if (Cmd.CommandLine.empty()) in addTargetAndMode()
43 addTargetAndModeForProgramName(Cmd.CommandLine, Cmd.CommandLine.front()); in addTargetAndMode()
H A DInterpolatingCompilationDatabase.cpp139 std::vector<std::string> OldArgs = std::move(Cmd.CommandLine); in TransferableCommand()
140 Cmd.CommandLine.clear(); in TransferableCommand()
160 Cmd.CommandLine.emplace_back(OldArgs.front()); in TransferableCommand()
200 Cmd.CommandLine.insert(Cmd.CommandLine.end(), in TransferableCommand()
232 Result.CommandLine.push_back(std::string(Flag)); in transferTo()
234 Result.CommandLine.push_back("-x"); in transferTo()
235 Result.CommandLine.push_back(types::getTypeName(TargetType)); in transferTo()
241 Result.CommandLine.emplace_back(( in transferTo()
245 Result.CommandLine.push_back("--"); in transferTo()
246 Result.CommandLine.push_back(std::string(Filename)); in transferTo()
H A DCompilationDatabase.cpp333 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 DExpandResponseFilesCompilationDatabase.cpp54 Argv.reserve(Cmd.CommandLine.size()); in expand()
55 for (auto &Arg : Cmd.CommandLine) { in expand()
71 Cmd.CommandLine = std::move(ExpandedArgv); in expand()
H A DJSONCompilationDatabase.cpp54 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 __anone118c0aa0111::CommandLineArgumentParser
H A DCommonOptionsParser.cpp79 Command.CommandLine = Adjuster(Command.CommandLine, Command.Filename); in adjustCommands()
/openbsd-src/gnu/llvm/clang/include/clang/Tooling/
H A DCompilationDatabase.h47 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 DTooling.h252 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,
/openbsd-src/gnu/llvm/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningTool.cpp104 const std::vector<std::string> &CommandLine, StringRef CWD, in getDependencyFile() argument
108 Worker.computeDependencies(CWD, CommandLine, Consumer, ModuleName); in getDependencyFile()
150 auto Result = Worker.computeDependencies(CWD, Command.CommandLine, Consumer); in getP1689ModuleDependencyFile()
162 const std::vector<std::string> &CommandLine, StringRef CWD, in getFullDependencies() argument
169 Worker.computeDependencies(CWD, CommandLine, Consumer, ModuleName); in getFullDependencies()
177 const std::vector<std::string> &CommandLine, StringRef CWD, in getFullDependenciesLegacyDriverCommand() argument
184 Worker.computeDependencies(CWD, CommandLine, Consumer, ModuleName); in getFullDependenciesLegacyDriverCommand()
187 return Consumer.getFullDependenciesLegacyDriverCommand(CommandLine); in getFullDependenciesLegacyDriverCommand()
H A DDependencyScanningWorker.cpp344 StringRef WorkingDirectory, const std::vector<std::string> &CommandLine, in computeDependencies() argument
347 for (const std::string &Arg : CommandLine) in computeDependencies()
358 if (computeDependencies(WorkingDirectory, CommandLine, Consumer, DiagPrinter, in computeDependencies()
390 StringRef WorkingDirectory, const std::vector<std::string> &CommandLine, in computeDependencies() argument
399 ModifiedCommandLine = CommandLine; in computeDependencies()
413 ModifiedCommandLine ? *ModifiedCommandLine : CommandLine; in computeDependencies()
420 std::vector<const char *> FinalCCommandLine(CommandLine.size(), nullptr); in computeDependencies()
421 llvm::transform(CommandLine, FinalCCommandLine.begin(), in computeDependencies()
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXCompilationDatabase.cpp128 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()
/openbsd-src/gnu/llvm/llvm/utils/KillTheDoctor/
H A DKillTheDoctor.cpp311 std::string CommandLine(ProgramToRun); in main() local
316 errs() << ToolName << ": Failed to find program: '" << CommandLine in main()
325 CommandLine.push_back(' '); in main()
326 CommandLine.append(Arg); in main()
331 << ToolName << ": Command Line: " << CommandLine << '\n'; in main()
345 const_cast<LPSTR>(CommandLine.c_str()), in main()
/openbsd-src/gnu/llvm/clang/tools/clang-scan-deps/
H A DClangScanDeps.cpp567 std::vector<const char *> CommandLine(DoubleDash + 1, argv + argc); in getCompilationDataBase() local
571 driver::Driver TheDriver(CommandLine[0], llvm::sys::getDefaultTargetTriple(), in getCompilationDataBase()
574 TheDriver.BuildCompilation(CommandLine)); in getCompilationDataBase()
581 CommandLine[0]); in getCompilationDataBase()
604 ArrayRef<const char *> CommandLine) in getCompilationDataBase() argument
606 for (auto *C : CommandLine) in getCompilationDataBase()
607 Command.CommandLine.push_back(C); in getCompilationDataBase()
631 FEOpts.Inputs[0].getFile(), OutputFile, CommandLine); in getCompilationDataBase()
759 OutputDir = getModuleCachePath(Input->CommandLine); in main()
767 Input->CommandLine, CWD, MaybeModuleName); in main()
[all …]
/openbsd-src/gnu/llvm/llvm/docs/
H A DCommandLine.rst2 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:
22 #. Speed: The CommandLine library is very quick and uses little resources. The
29 #. Type Safe: As a user of CommandLine, you don't have to worry about
34 #. No subclasses required: To use CommandLine, you instantiate variables that
45 #. Cleaner: CommandLine supports enum and other types directly, meaning that
50 #. Powerful: The CommandLine library supports many different types of arguments,
53 possible because CommandLine is...
[all …]
H A DUserGuides.rst28 CommandLine
213 :doc:`CommandLine`
/openbsd-src/gnu/llvm/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningTool.h93 getDependencyFile(const std::vector<std::string> &CommandLine, StringRef CWD,
127 getFullDependencies(const std::vector<std::string> &CommandLine,
133 const std::vector<std::string> &CommandLine, StringRef CWD,
H A DDependencyScanningWorker.h84 const std::vector<std::string> &CommandLine,
92 const std::vector<std::string> &CommandLine,
/openbsd-src/gnu/llvm/llvm/tools/bugpoint/
H A DToolRunner.cpp354 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()
/openbsd-src/gnu/usr.bin/binutils/gdb/rdi-share/
H A Dhsys.h42 char **CommandLine ; /* Ptr to cmd line d`string held by ardi.c */ member
H A Dhsys.c96 (*stateptr)->CommandLine=cmdline; in HostSysInit()
310 DebugPrintF(("CL_GetCmdLine: \"%s\"\n", *(stateptr->CommandLine))); in HandleSysMessage()
313 len = strlen(*(stateptr->CommandLine)); in HandleSysMessage()
319 strncpy((char *) BUFFERDATA(buffhead)+24,*(stateptr->CommandLine), in HandleSysMessage()
/openbsd-src/gnu/llvm/lld/MachO/
H A DDriver.cpp256 CommandLine, // Library was passed as a regular CLI argument enumerator
324 case LoadType::CommandLine: in addFile()
521 addFile(rerootPath(path), LoadType::CommandLine, isLazy); in addFileList()
1120 addFile(rerootPath(arg->getValue()), LoadType::CommandLine, isLazy); in createFiles()
1124 addFile(rerootPath(arg->getValue()), LoadType::CommandLine))) in createFiles()
1129 addFile(rerootPath(arg->getValue()), LoadType::CommandLine))) { in createFiles()
1136 addFile(rerootPath(arg->getValue()), LoadType::CommandLine))) in createFiles()
1146 addFile(rerootPath(arg->getValue()), LoadType::CommandLine, in createFiles()
1158 /*isExplicit=*/true, LoadType::CommandLine); in createFiles()
1167 LoadType::CommandLine); in createFiles()
[all …]
/openbsd-src/gnu/usr.bin/clang/libLLVMSupport/
H A DMakefile.shared42 CommandLine.cpp \
H A DMakefile43 CommandLine.cpp \
/openbsd-src/gnu/llvm/clang/docs/
H A DLibTooling.rst63 #include "llvm/Support/CommandLine.h"
118 #include "llvm/Support/CommandLine.h"

12