Home
last modified time | relevance | path

Searched refs:Command (Results 1 – 25 of 212) sorted by relevance

123456789

/llvm-project/llvm/utils/lit/tests/unit/
H A DShUtil.py5 from lit.ShUtil import Command, Pipeline, Seq, ShLexer, ShParser
39 self.parse("echo hello"), Pipeline([Command(["echo", "hello"], [])], False)
42 self.parse('echo ""'), Pipeline([Command(["echo", ""], [])], False)
46 Pipeline([Command(["echo", "-DFOO=a"], [])], False),
50 Pipeline([Command(["echo", "-DFOO=a"], [])], False),
56 Pipeline([Command(["echo", "hello"], [(((">"),), "c")])], False),
61 [Command(["echo", "hello"], [((">",), "c"), ((">>",), "d")])], False
65 self.parse("a 2>&1"), Pipeline([Command(["a"], [((">&", 2), "1")])], False)
71 Pipeline([Command(["a"], []), Command(["b"], [])], False),
77 [Command(["a"], []), Command(["b"], []), Command(["c"], [])], False
[all …]
/llvm-project/clang/lib/AST/
H A DCommentSema.cpp61 void Sema::actOnBlockCommandArgs(BlockCommandComment *Command,
63 Command->setArgs(Args); in actOnBlockCommandArgs()
66 void Sema::actOnBlockCommandFinish(BlockCommandComment *Command,
68 Command->setParagraph(Paragraph); in actOnBlockCommandFinish()
69 checkBlockCommandEmptyParagraph(Command); in actOnBlockCommandFinish()
70 checkBlockCommandDuplicate(Command); in actOnBlockCommandFinish()
74 checkReturnsCommand(Command); in actOnBlockCommandFinish()
75 checkDeprecatedCommand(Command); in actOnBlockCommandFinish()
84 ParamCommandComment *Command = in actOnParamCommandStart()
89 Diag(Command in actOnParamCommandStart()
62 actOnBlockCommandArgs(BlockCommandComment * Command,ArrayRef<BlockCommandComment::Argument> Args) actOnBlockCommandArgs() argument
67 actOnBlockCommandFinish(BlockCommandComment * Command,ParagraphComment * Paragraph) actOnBlockCommandFinish() argument
85 ParamCommandComment *Command = actOnParamCommandStart() local
230 actOnParamCommandDirectionArg(ParamCommandComment * Command,SourceLocation ArgLocBegin,SourceLocation ArgLocEnd,StringRef Arg) actOnParamCommandDirectionArg() argument
257 actOnParamCommandParamNameArg(ParamCommandComment * Command,SourceLocation ArgLocBegin,SourceLocation ArgLocEnd,StringRef Arg) actOnParamCommandParamNameArg() argument
274 actOnParamCommandFinish(ParamCommandComment * Command,ParagraphComment * Paragraph) actOnParamCommandFinish() argument
285 TParamCommandComment *Command = actOnTParamCommandStart() local
298 actOnTParamCommandParamNameArg(TParamCommandComment * Command,SourceLocation ArgLocBegin,SourceLocation ArgLocEnd,StringRef Arg) actOnTParamCommandParamNameArg() argument
355 actOnTParamCommandFinish(TParamCommandComment * Command,ParagraphComment * Paragraph) actOnTParamCommandFinish() argument
536 checkBlockCommandEmptyParagraph(BlockCommandComment * Command) checkBlockCommandEmptyParagraph() argument
554 checkReturnsCommand(const BlockCommandComment * Command) checkReturnsCommand() argument
600 checkBlockCommandDuplicate(const BlockCommandComment * Command) checkBlockCommandDuplicate() argument
638 checkDeprecatedCommand(const BlockCommandComment * Command) checkDeprecatedCommand() argument
[all...]
H A DCommentCommandTraits.cpp58 auto ConsiderCorrection = [&](const CommandInfo *Command) { in getTypoCorrectCommandInfo()
59 StringRef Name = Command->Name; in getTypoCorrectCommandInfo() argument
69 BestCommand.push_back(Command); in getTypoCorrectCommandInfo()
73 for (const auto &Command : Commands) in getTypoCorrectCommandInfo()
74 ConsiderCorrection(&Command); in getTypoCorrectCommandInfo() local
76 for (const auto *Command : RegisteredCommands) in getTypoCorrectCommandInfo()
77 if (!Command->IsUnknownCommand) in getTypoCorrectCommandInfo() local
78 ConsiderCorrection(Command); in getTypoCorrectCommandInfo()
/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerCommand.h26 class Command final {
35 Command() : CombinedOutAndErr(false) {} in Command() function
37 explicit Command(const std::vector<std::string> &ArgsToAdd) in Command() function
40 explicit Command(const Command &Other) in Command() function
44 Command &operator=(const Command &Other) {
51 ~Command() {} in ~Command()
156 Command(Command &&Other) = delete;
157 Command &operator=(Command &&Other) = delete;
H A DFuzzerUtilWindows.cpp164 FILE *OpenProcessPipe(const char *Command, const char *Mode) { in OpenProcessPipe() argument
165 return _popen(Command, Mode); in OpenProcessPipe()
172 int ExecuteCommand(const Command &Cmd) { in ExecuteCommand()
177 bool ExecuteCommand(const Command &Cmd, std::string *CmdOutput) { in ExecuteCommand()
214 if (ExecuteCommand(Command(command_vector)) == 0) in DisassembleCmd()
/llvm-project/clang/include/clang/AST/
H A DCommentSema.h94 void actOnBlockCommandArgs(BlockCommandComment *Command,
97 void actOnBlockCommandFinish(BlockCommandComment *Command,
105 void actOnParamCommandDirectionArg(ParamCommandComment *Command,
110 void actOnParamCommandParamNameArg(ParamCommandComment *Command,
115 void actOnParamCommandFinish(ParamCommandComment *Command,
123 void actOnTParamCommandParamNameArg(TParamCommandComment *Command,
128 void actOnTParamCommandFinish(TParamCommandComment *Command,
179 void checkBlockCommandEmptyParagraph(BlockCommandComment *Command);
181 void checkReturnsCommand(const BlockCommandComment *Command);
185 void checkBlockCommandDuplicate(const BlockCommandComment *Command);
[all...]
/llvm-project/clang/unittests/Driver/
H A DSanitizerArgsTest.cpp51 const Command &emulateSingleCompilation(std::vector<std::string> ExtraArgs, in emulateSingleCompilation()
101 auto &Command = emulateSingleCompilation( in TEST_F() local
107 EXPECT_THAT(Command.getArguments(), in TEST_F()
112 Command.getArguments(), in TEST_F()
121 auto &Command = emulateSingleCompilation( in TEST_F() local
133 EXPECT_THAT(Command.getArguments(), in TEST_F()
135 EXPECT_THAT(Command.getArguments(), in TEST_F()
137 EXPECT_THAT(Command.getArguments(), in TEST_F()
/llvm-project/clang/lib/Driver/
H A DJob.cpp1 //===- Job.cpp - Command to Execute ---------------------------------------===//
37 Command::Command(const Action &Source, const Tool &Creator,
106 void Command::writeResponseFile(raw_ostream &OS) const { in skipArgs()
132 void Command::buildArgvForResponseFile( in writeResponseFile()
205 void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote, in rewriteIncludes()
299 void Command::setResponseFile(const char *FileName) { in Print()
305 void Command::setEnvironment(llvm::ArrayRef<const char *> NewEnvironment) { in setResponseFile()
311 void Command::setRedirectFiles( in setEnvironment()
316 void Command in setRedirectFiles()
39 Command::Command(const Action &Source, const Tool &Creator, Command() function in Command
[all...]
H A DCompilation.cpp160 int Compilation::ExecuteCommand(const Command &C, in CleanupFileMap()
161 const Command *&FailingCommand, in CleanupFileMap()
210 using FailingCommandList = SmallVectorImpl<std::pair<int, const Command *>>; in ExecuteCommand()
235 static bool InputsOk(const Command &C, in ActionFailed()
250 const Command *FailingCommand = nullptr; in ExecuteJobs()
/llvm-project/clang/include/clang/Driver/
H A DJob.h104 /// Command - An executable path/name and argument vector to
106 class Command {
144 /// See Command::setEnvironment
172 Command(const Action &Source, const Tool &Creator,
178 Command(const Command &) = default;
179 virtual ~Command() = default;
242 class CC1Command : public Command {
262 using list_type = SmallVector<std::unique_ptr<Command>, 4>;
275 void addJob(std::unique_ptr<Command>
[all...]
H A DCompilation.h124 std::function<void(const Command &, int)> PostCallback;
220 void addCommand(std::unique_ptr<Command> C) { Jobs.addJob(std::move(C)); } in addCommand()
235 void setPostCallback(const std::function<void(const Command &, int)> &CB) { in setPostCallback() argument
313 int ExecuteCommand(const Command &C, const Command *&FailingCommand,
324 SmallVectorImpl<std::pair<int, const Command *>> &FailingCommands,
/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningTool.h65 std::vector<Command> Commands;
107 getP1689ModuleDependencyFile(const clang::tooling::CompileCommand &Command,
111 getP1689ModuleDependencyFile(const clang::tooling::CompileCommand &Command, in getP1689ModuleDependencyFile()
116 return getP1689ModuleDependencyFile(Command, CWD, MakeformatOutput, in getP1689ModuleDependencyFile()
159 void handleBuildCommand(Command Cmd) override {
193 std::vector<Command> Commands;
110 getP1689ModuleDependencyFile(const clang::tooling::CompileCommand & Command,StringRef CWD) getP1689ModuleDependencyFile() argument
/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningTool.cpp26 void handleBuildCommand(Command) override {} in handleBuildCommand() argument
87 const CompileCommand &Command, StringRef CWD, std::string &MakeformatOutput, in getP1689ModuleDependencyFile() argument
93 const CompileCommand &Command) in getP1689ModuleDependencyFile() argument
94 : Filename(Command.Filename), Rule(Rule) { in getP1689ModuleDependencyFile()
95 Rule.PrimaryOutput = Command.Output; in getP1689ModuleDependencyFile()
128 P1689ModuleDependencyPrinterConsumer Consumer(Rule, Command); in getP1689ModuleDependencyFile()
130 auto Result = Worker.computeDependencies(CWD, Command.CommandLine, Consumer, in getP1689ModuleDependencyFile()
/llvm-project/libc/utils/HdrGen/
H A DGenerator.h
H A DCommand.cpp
/llvm-project/lldb/source/Commands/
H A DOptions.td3 let Command = "target modules dump symtab" in {
11 let Command = "target modules dump separate debug info" in {
18 let Command = "help" in {
27 let Command = "settings set" in {
37 let Command = "settings write" in {
45 let Command = "settings read" in {
51 let Command = "settings clear" in {
56 let Command = "breakpoint list" in {
73 let Command = "breakpoint modify" in {
103 Arg<"Command">,
[all...]
/llvm-project/clang/test/CodeGenCXX/
H A D2005-02-19-BitfieldStructCrash.cpp5 struct Command { struct
6 Command(QChar c) : c(c) {} in Command() function
11 Command X(QChar('c')); argument
/llvm-project/llvm/tools/llvm-remarkutil/
H A DRemarkUtilRegistry.cpp26 HandlerType Command) { in CommandRegistration() argument
29 assert(Command && "Attempting to register an empty std::function<Error()>"); in CommandRegistration()
30 getCommands()[SC] = Command; in CommandRegistration()
/llvm-project/llvm/tools/llvm-xray/
H A Dxray-registry.cpp27 HandlerType Command) { in CommandRegistration() argument
30 assert(Command && "Attempting to register an empty std::function<Error()>"); in CommandRegistration()
31 getCommands()[SC] = Command; in CommandRegistration()
/llvm-project/clang-tools-extra/clangd/index/dex/dexp/
H A DDexp.cpp35 ExecCommand("c", llvm::cl::desc("Command to execute and then exit."));
88 // REPL commands inherit from Command and contain their options as members.
89 // Creating a Command populates parser options, parseAndRun() resets them.
90 class Command { class
102 virtual ~Command() = default;
136 class FuzzyFind : public Command {
175 class Lookup : public Command {
216 class Refs : public Command {
272 class Relations : public Command {
309 class Export : public Command {
[all...]
/llvm-project/clang/lib/Tooling/
H A DJSONCompilationDatabase.cpp351 std::optional<std::vector<llvm::yaml::ScalarNode *>> Command; in parse() local
374 Command = std::vector<llvm::yaml::ScalarNode *>(); in parse()
381 Command->push_back(Scalar); in parse()
391 if (!Command) in parse()
392 Command = std::vector<llvm::yaml::ScalarNode *>(1, ValueString); in parse()
408 if (!Command) { in parse()
428 auto Cmd = CompileCommandRef(Directory, File, *Command, Output); in parse()
/llvm-project/lldb/utils/TableGen/
H A DLLDBOptionDefEmitter.cpp148 static void emitOptions(std::string Command, ArrayRef<const Record *> Records, in emitOptions() argument
152 std::string ID = Command; in emitOptions()
160 OS << "// Options for " << Command << "\n"; in emitOptions()
168 OS << "#endif // " << Command << " command\n\n"; in emitOptions()
176 for (auto &CommandRecordPair : getRecordsByName(Options, "Command")) { in EmitOptionDefs()
/llvm-project/llvm/tools/llvm-symbolizer/
H A Dllvm-symbolizer.cpp115 enum class Command {
161 StringRef InputString, Command &Cmd, in parseCommand()
166 Cmd = Command::Code; in parseCommand()
168 Cmd = Command::Data; in parseCommand()
170 Cmd = Command::Frame; in parseCommand()
173 Cmd = Command::Code; in parseCommand()
279 void executeCommand(StringRef ModuleName, const T &ModuleSpec, Command Cmd, in executeCommand()
289 if (Cmd == Command::Data) { in executeCommand()
292 } else if (Cmd == Command::Frame) { in executeCommand()
337 Command Cm in symbolizeInput()
113 enum class Command { global() enum
[all...]
/llvm-project/openmp/libompd/gdb-plugin/ompd/
H A Dompd.py25 class ompd(gdb.Command):
30 class ompd_init(gdb.Command):
88 class ompd_threads(gdb.Command):
145 class ompd_parallel_region(gdb.Command):
196 class ompd_icvs(gdb.Command):
280 class ompd_test(gdb.Command):
308 class ompdtestapi(gdb.Command):
513 class ompd_bt(gdb.Command):
561 class ompd_taskframes(gdb.Command):
622 class ompd_step(gdb.Command)
[all...]
/llvm-project/lldb/test/Shell/BuildScript/
H A Dtoolchain-msvc.test26 32BIT: Command Line: {{.*}}\{{[Hh]ost[Xx](64|86)}}\{{(x86|arm)}}\cl.{{EXE|exe}}
28 32BIT: Command Line: {{.*}}\{{[Hh]ost[Xx](64|86)}}\{{(x86|arm)}}\link.{{EXE|exe}}
54 64BIT: Command Line: {{.*}}\{{[Hh]ost[Xx](64|86)}}\{{(x64|arm64)}}\cl.{{EXE|exe}}
56 64BIT: Command Line: {{.*}}\{{[Hh]ost[Xx](64|86)}}\{{(x64|arm64)}}\link.{{EXE|exe}}

123456789