Home
last modified time | relevance | path

Searched refs:Argv (Results 1 – 25 of 87) sorted by relevance

1234

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DInitLLVM.cpp24 InitLLVM::InitLLVM(int &Argc, const char **&Argv, in InitLLVM() argument
26 : StackPrinter(Argc, Argv) { in InitLLVM()
29 sys::PrintStackTraceOnErrorSignal(Argv[0]); in InitLLVM()
42 std::string Banner = std::string(Argv[0]) + ": "; in InitLLVM()
52 Argv = Args.data(); in InitLLVM()
/external/llvm-project/llvm/lib/Support/
DInitLLVM.cpp24 InitLLVM::InitLLVM(int &Argc, const char **&Argv, in InitLLVM() argument
26 : StackPrinter(Argc, Argv) { in InitLLVM()
29 sys::PrintStackTraceOnErrorSignal(Argv[0]); in InitLLVM()
42 std::string Banner = std::string(Argv[0]) + ": "; in InitLLVM()
52 Argv = Args.data(); in InitLLVM()
/external/llvm-project/clang/tools/driver/
Dcc1gen_reproducer_main.cpp112 generateReproducerForInvocationArguments(ArrayRef<const char *> Argv, in generateReproducerForInvocationArguments() argument
115 auto TargetAndMode = ToolChain::getTargetAndModeFromProgramName(Argv[0]); in generateReproducerForInvocationArguments()
122 Driver TheDriver(Argv[0], llvm::sys::getDefaultTargetTriple(), Diags); in generateReproducerForInvocationArguments()
125 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(Argv)); in generateReproducerForInvocationArguments()
156 int cc1gen_reproducer_main(ArrayRef<const char *> Argv, const char *Argv0, in cc1gen_reproducer_main() argument
158 if (Argv.size() < 1) { in cc1gen_reproducer_main()
163 StringRef Input = Argv[0]; in cc1gen_reproducer_main()
174 if (Argv.size() > 1 && Argv[1] == StringRef("-v")) in cc1gen_reproducer_main()
/external/llvm-project/clang/lib/Tooling/
DExpandResponseFilesCompilationDatabase.cpp53 llvm::SmallVector<const char *, 20> Argv; in expand() local
54 Argv.reserve(Cmd.CommandLine.size()); in expand()
56 Argv.push_back(Arg.c_str()); in expand()
63 llvm::cl::ExpandResponseFiles(Saver, Tokenizer, Argv, false, false, *FS, in expand()
66 std::vector<std::string> ExpandedArgv(Argv.begin(), Argv.end()); in expand()
DCompilationDatabase.cpp324 const char *const *Argv, in loadFromCommandLine() argument
330 const char *const *DoubleDash = std::find(Argv, Argv + Argc, StringRef("--")); in loadFromCommandLine()
331 if (DoubleDash == Argv + Argc) in loadFromCommandLine()
333 std::vector<const char *> CommandLine(DoubleDash + 1, Argv + Argc); in loadFromCommandLine()
334 Argc = DoubleDash - Argv; in loadFromCommandLine()
/external/llvm-project/llvm/utils/not/
Dnot.cpp56 std::vector<StringRef> Argv; in main() local
57 Argv.reserve(argc); in main()
59 Argv.push_back(argv[i]); in main()
61 int Result = sys::ExecuteAndWait(*Program, Argv, None, {}, 0, 0, &ErrMsg); in main()
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerUtilDarwin.cpp103 char *const Argv[] = { in ExecuteCommand() local
112 Argv, Environ); in ExecuteCommand()
131 for (unsigned i = 0, n = sizeof(Argv) / sizeof(Argv[0]); i < n; ++i) in ExecuteCommand()
132 free(Argv[i]); in ExecuteCommand()
DFuzzerUtilFuchsia.cpp432 std::unique_ptr<const char *[]> Argv(new const char *[Argc + 1]); in ExecuteCommand() local
434 Argv[i] = Args[i].c_str(); in ExecuteCommand()
435 Argv[Argc] = nullptr; in ExecuteCommand()
491 FDIO_SPAWN_CLONE_ALL & (~FDIO_SPAWN_CLONE_STDIO), Argv[0], in ExecuteCommand()
492 Argv.get(), nullptr, SpawnActions.size(), in ExecuteCommand()
496 Printf("libFuzzer: failed to launch '%s': %s, %s\n", Argv[0], ErrorMsg, in ExecuteCommand()
505 Printf("libFuzzer: failed to join '%s': %s\n", Argv[0], in ExecuteCommand()
513 Printf("libFuzzer: unable to get return code from '%s': %s\n", Argv[0], in ExecuteCommand()
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerUtilDarwin.cpp103 char *const Argv[] = { in ExecuteCommand() local
112 Argv, Environ); in ExecuteCommand()
131 for (unsigned i = 0, n = sizeof(Argv) / sizeof(Argv[0]); i < n; ++i) in ExecuteCommand()
132 free(Argv[i]); in ExecuteCommand()
DFuzzerUtilFuchsia.cpp432 std::unique_ptr<const char *[]> Argv(new const char *[Argc + 1]); in ExecuteCommand() local
434 Argv[i] = Args[i].c_str(); in ExecuteCommand()
435 Argv[Argc] = nullptr; in ExecuteCommand()
491 FDIO_SPAWN_CLONE_ALL & (~FDIO_SPAWN_CLONE_STDIO), Argv[0], in ExecuteCommand()
492 Argv.get(), nullptr, SpawnActions.size(), in ExecuteCommand()
496 Printf("libFuzzer: failed to launch '%s': %s, %s\n", Argv[0], ErrorMsg, in ExecuteCommand()
505 Printf("libFuzzer: failed to join '%s': %s\n", Argv[0], in ExecuteCommand()
513 Printf("libFuzzer: unable to get return code from '%s': %s\n", Argv[0], in ExecuteCommand()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DInitLLVM.h36 InitLLVM(int &Argc, const char **&Argv,
38 InitLLVM(int &Argc, char **&Argv, bool InstallPipeSignalExitHandler = true)
39 : InitLLVM(Argc, const_cast<const char **&>(Argv), in InitLLVM() argument
/external/llvm-project/llvm/include/llvm/Support/
DInitLLVM.h36 InitLLVM(int &Argc, const char **&Argv,
38 InitLLVM(int &Argc, char **&Argv, bool InstallPipeSignalExitHandler = true)
39 : InitLLVM(Argc, const_cast<const char **&>(Argv), in InitLLVM() argument
/external/llvm-project/llvm/tools/llvm-rc/
Dllvm-rc.cpp82 int main(int Argc, const char **Argv) { in main() argument
83 InitLLVM X(Argc, Argv); in main()
89 Argv + 1, Argv + Argc, [](StringRef Str) { return Str == "--"; }); in main()
90 ArrayRef<const char *> ArgsArr = makeArrayRef(Argv + 1, DashDash); in main()
103 if (DashDash != Argv + Argc) in main()
104 InArgsInfo.insert(InArgsInfo.end(), DashDash + 1, Argv + Argc); in main()
/external/llvm-project/clang/lib/Driver/
DJob.cpp315 SmallVector<const char *, 128> Argv; in Execute() local
317 Argv.push_back(Executable); in Execute()
318 Argv.append(Arguments.begin(), Arguments.end()); in Execute()
319 Argv.push_back(nullptr); in Execute()
327 buildArgvForResponseFile(Argv); in Execute()
328 Argv.push_back(nullptr); in Execute()
353 auto Args = llvm::toStringRefArray(Argv.data()); in Execute()
386 SmallVector<const char *, 128> Argv; in Execute() local
387 Argv.push_back(getExecutable()); in Execute()
388 Argv.append(getArguments().begin(), getArguments().end()); in Execute()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceBrowserCompileServer.cpp133 std::vector<const char *> Argv; in onInitCallback() local
135 Argv.reserve(CLArgsLen + 1); in onInitCallback()
136 Argv.push_back(ProgramName); in onInitCallback()
142 Argv.push_back(CLArgs[i]); in onInitCallback()
146 Argv.emplace_back(Arg.c_str()); in onInitCallback()
153 Argv.size(), Argv.data()); in onInitCallback()
/external/llvm-project/compiler-rt/test/fuzzer/
DFlagsTest.cpp11 extern "C" int LLVMFuzzerInitialize(int *Argc, char ***Argv) { in LLVMFuzzerInitialize() argument
15 std::string S((*Argv)[I++]); in LLVMFuzzerInitialize()
22 Flags.push_back(std::string((*Argv)[I++])); in LLVMFuzzerInitialize()
/external/llvm-project/compiler-rt/test/dfsan/
Devent_callbacks.c78 int main(int Argc, char *Argv[]) { in main() argument
113 LenArgv = strlen(Argv[1]); in main()
115 dfsan_set_label(LabelArgv, Argv[1], LenArgv); in main()
122 memcpy(SinkPtr, Argv[1], LenArgv); in main()
/external/clang/lib/Driver/
DJob.cpp233 SmallVector<const char*, 128> Argv; in Execute() local
236 Argv.push_back(Executable); in Execute()
237 Argv.append(Arguments.begin(), Arguments.end()); in Execute()
238 Argv.push_back(nullptr); in Execute()
240 return llvm::sys::ExecuteAndWait(Executable, Argv.data(), /*env*/ nullptr, in Execute()
253 buildArgvForResponseFile(Argv); in Execute()
254 Argv.push_back(nullptr); in Execute()
267 return llvm::sys::ExecuteAndWait(Executable, Argv.data(), /*env*/ nullptr, in Execute()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DTestTU.cpp39 auto &Argv = Inputs.CompileCommand.CommandLine; in inputs() local
40 Argv = {"clang"}; in inputs()
44 Argv.push_back("-include"); in inputs()
45 Argv.push_back(ImplicitHeaderGuard ? ImportThunk : FullHeaderName); in inputs()
51 Argv.insert(Argv.end(), ExtraArgs.begin(), ExtraArgs.end()); in inputs()
54 Argv.push_back(FullFilename); in inputs()
DCompileCommandsTests.cpp196 Cfg.CompileFlags.Edits.push_back([](std::vector<std::string> &Argv) { in TEST() argument
197 for (auto &Arg : Argv) in TEST()
202 [](std::vector<std::string> &Argv) { Argv.push_back("--hello"); }); in TEST() argument
210 static std::string strip(llvm::StringRef Arg, llvm::StringRef Argv) { in strip() argument
212 llvm::SplitString(Argv, Parts); in strip()
/external/llvm-project/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp579 const char *Argv[] = { "1", "2" }; in TEST() local
582 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv, ErrorMsg)); in TEST()
590 const char *Argv[] = { in TEST() local
595 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv, ErrorMsg)); in TEST()
609 const char *Argv[] = { "1", "2", "--\0no-constant-folding" }; in TEST() local
612 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv, ErrorMsg); in TEST()
625 const char *Argv[] = {"1", "2", "--", "-c", "somefile.cpp", "-DDEF3"}; in TEST() local
626 int Argc = sizeof(Argv) / sizeof(char*); in TEST()
629 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv, ErrorMsg); in TEST()
644 const char *Argv[] = {"--", "somefile.cpp", "-fsyntax-only", "-DDEF3"}; in TEST() local
[all …]
/external/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp492 const char *Argv[] = { "1", "2" }; in TEST() local
494 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv)); in TEST()
501 const char *Argv[] = { in TEST() local
505 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv)); in TEST()
522 const char *Argv[] = { "1", "2", "--\0no-constant-folding" }; in TEST() local
524 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv)); in TEST()
538 const char *Argv[] = {"1", "2", "--", "-c", "somefile.cpp", "-DDEF3"}; in TEST() local
539 int Argc = sizeof(Argv) / sizeof(char*); in TEST()
541 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv)); in TEST()
557 const char *Argv[] = {"1", "2", "--", "mytool", "somefile.cpp"}; in TEST() local
[all …]
/external/clang/lib/Tooling/
DCompilationDatabase.cpp283 int &Argc, const char *const *Argv, Twine Directory) { in loadFromCommandLine() argument
284 const char *const *DoubleDash = std::find(Argv, Argv + Argc, StringRef("--")); in loadFromCommandLine()
285 if (DoubleDash == Argv + Argc) in loadFromCommandLine()
287 std::vector<const char *> CommandLine(DoubleDash + 1, Argv + Argc); in loadFromCommandLine()
288 Argc = DoubleDash - Argv; in loadFromCommandLine()
/external/clang/tools/driver/
Dcc1_main.cpp67 int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { in cc1_main() argument
93 Clang->getInvocation(), Argv.begin(), Argv.end(), Diags); in cc1_main()
/external/llvm-project/llvm/unittests/Support/
DCommandLineTest.cpp823 llvm::SmallVector<const char *, 4> Argv = {"test/test", "-flag_1", in TEST() local
830 Saver, llvm::cl::TokenizeGNUCommandLine, Argv, false, true, FS, in TEST()
832 EXPECT_THAT(Argv, testing::Pointwise( in TEST()
883 SmallVector<const char *, 4> Argv = {"test/test", SelfFileRef.c_str(), in TEST() local
893 cl::ExpandResponseFiles(Saver, Tokenizer, Argv, false, false, FS, in TEST()
896 EXPECT_THAT(Argv, in TEST()
924 SmallVector<const char *, 4> Argv = {"test/test"}; in TEST() local
925 Argv.append(NON_RSP_AT_ARGS, "@non_rsp_at_arg"); in TEST()
927 Argv.push_back(ResponseFileRef.c_str()); in TEST()
931 ASSERT_FALSE(cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Argv, in TEST()
[all …]

1234