Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DInitLLVM.cpp25 InitLLVM::InitLLVM(int &Argc, const char **&Argv) : StackPrinter(Argc, Argv) { in InitLLVM() argument
26 sys::PrintStackTraceOnErrorSignal(Argv[0]); in InitLLVM()
38 std::string Banner = std::string(Argv[0]) + ": "; in InitLLVM()
48 Argv = Args.data(); in InitLLVM()
DCommandLine.cpp980 SmallVectorImpl<const char *> &Argv, in ExpandResponseFiles() argument
986 for (unsigned I = 0; I != Argv.size();) { in ExpandResponseFiles()
987 const char *Arg = Argv[I]; in ExpandResponseFiles()
1014 Argv.erase(Argv.begin() + I); in ExpandResponseFiles()
1015 Argv.insert(Argv.begin() + I, ExpandedArgv.begin(), ExpandedArgv.end()); in ExpandResponseFiles()
1021 SmallVectorImpl<const char *> &Argv) { in readConfigFile() argument
1022 if (!ExpandResponseFile(CfgFile, Saver, cl::tokenizeConfigFile, Argv, in readConfigFile()
1025 return ExpandResponseFiles(Saver, cl::tokenizeConfigFile, Argv, in readConfigFile()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/not/
Dnot.cpp41 std::vector<StringRef> Argv; in main() local
42 Argv.reserve(argc); in main()
44 Argv.push_back(argv[i]); in main()
46 int Result = sys::ExecuteAndWait(*Program, Argv, None, {}, 0, 0, &ErrMsg); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DCommandLineTest.cpp690 llvm::SmallVector<const char *, 4> Argv = in TEST() local
697 Saver, llvm::cl::TokenizeGNUCommandLine, Argv, false, true); in TEST()
699 EXPECT_EQ(Argv.size(), 9U); in TEST()
700 EXPECT_STREQ(Argv[0], "test/test"); in TEST()
701 EXPECT_STREQ(Argv[1], "-flag_1"); in TEST()
702 EXPECT_STREQ(Argv[2], "-option_1"); in TEST()
703 EXPECT_STREQ(Argv[3], "-option_2"); in TEST()
704 EXPECT_STREQ(Argv[4], "-option_21"); in TEST()
705 EXPECT_STREQ(Argv[5], "-option_22"); in TEST()
706 EXPECT_STREQ(Argv[6], "-option_23=abcd"); in TEST()
[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/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DInitLLVM.h33 InitLLVM(int &Argc, const char **&Argv);
34 InitLLVM(int &Argc, char **&Argv) in InitLLVM() argument
35 : InitLLVM(Argc, const_cast<const char **&>(Argv)) {} in InitLLVM()
/external/swiftshader/third_party/LLVM/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp131 const char **Argv = new const char*[2]; in executeInput() local
133 Argv[0] = InputFileList[0].c_str(); in executeInput()
134 Argv[1] = 0; in executeInput()
135 return Main(1, Argv); in executeInput()
/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-ar/
Dllvm-ar.cpp873 SmallVector<const char *, 0> Argv(argv, argv + argc); in ar_main() local
876 cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Argv); in ar_main()
877 for(size_t i = 1; i < Argv.size(); ++i) { in ar_main()
878 StringRef Arg = Argv[i]; in ar_main()
883 if (++i >= Argv.size()) in ar_main()
885 match = Argv[i]; in ar_main()
895 if (handleGenericOption(Argv[i])) in ar_main()
898 for(; i < Argv.size(); ++i) in ar_main()
899 PositionalArgs.push_back(Argv[i]); in ar_main()
904 Arg = Argv[i] + 2; in ar_main()
[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()
DTooling.cpp238 std::vector<const char*> Argv; in run() local
240 Argv.push_back(Str.c_str()); in run()
241 const char *const BinaryName = Argv[0]; in run()
254 Driver->BuildCompilation(llvm::makeArrayRef(Argv))); in run()
/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()
Dcc1as_main.cpp152 ArrayRef<const char *> Argv,
159 ArrayRef<const char *> Argv, in CreateFromArgs() argument
168 InputArgList Args = OptTbl->ParseArgs(Argv, MissingArgIndex, MissingArgCount, in CreateFromArgs()
450 int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { in cc1as_main() argument
471 if (!AssemblerInvocation::CreateFromArgs(Asm, Argv, Diags)) in cc1as_main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mt/
Dllvm-mt.cpp89 int main(int Argc, const char **Argv) { in main() argument
90 InitLLVM X(Argc, Argv); in main()
94 ArrayRef<const char *> ArgsArr = makeArrayRef(Argv + 1, Argc - 1); in main()
/external/clang/unittests/libclang/
DLibclangTest.cpp487 const char *Argv[] = {Clang.c_str(), "-target", "arm-linux-gnueabi", in TEST_F() local
491 clang_parseTranslationUnit2FullArgv(Index, Filename.c_str(), Argv, in TEST_F()
492 sizeof(Argv) / sizeof(Argv[0]), in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rc/
Dllvm-rc.cpp82 int main(int Argc, const char **Argv) { in main() argument
83 InitLLVM X(Argc, Argv); in main()
88 ArrayRef<const char *> ArgsArr = makeArrayRef(Argv + 1, Argc - 1); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cvtres/
Dllvm-cvtres.cpp97 int main(int Argc, const char **Argv) { in main() argument
98 InitLLVM X(Argc, Argv); in main()
102 ArrayRef<const char *> ArgsArr = makeArrayRef(Argv + 1, Argc - 1); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/
Dllvm-exegesis.cpp227 int main(int Argc, char **Argv) { in main() argument
228 llvm::cl::ParseCommandLineOptions(Argc, Argv, ""); in main()
/external/swiftshader/third_party/LLVM/utils/KillTheDoctor/
DKillTheDoctor.cpp62 cl::list<std::string> Argv(cl::ConsumeAfter, variable
369 for (std::vector<std::string>::iterator i = Argv.begin(), in main()
370 e = Argv.end(); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp476 const char **Argv = new const char*[2]; in executeInput() local
478 Argv[0] = InputFileList[0].c_str(); in executeInput()
479 Argv[1] = nullptr; in executeInput()
480 return Main(1, Argv); in executeInput()
/external/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp468 const char **Argv = new const char*[2]; in executeInput() local
470 Argv[0] = InputFileList[0].c_str(); in executeInput()
471 Argv[1] = nullptr; in executeInput()
472 return Main(1, Argv); in executeInput()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Unix/
DProgram.inc191 const char **Argv = nullptr;
194 Argv = ArgVector.data();
253 /*attrp*/ nullptr, const_cast<char **>(Argv),
306 execve(PathStr.c_str(), const_cast<char **>(Argv),
309 execv(PathStr.c_str(), const_cast<char **>(Argv));
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-death-test.cc859 char* const* Argv() { in Argv() function in testing::internal::Arguments
980 args.Argv()[0], args.Argv(), nullptr, 1, in AssumeRole()
1140 char* const* Argv() { in Argv() function in testing::internal::Arguments
1372 const pid_t child_pid = ExecDeathTestSpawnChild(args.Argv(), pipe_fd[0]); in AssumeRole()
/external/googletest/googletest/src/
Dgtest-death-test.cc861 char* const* Argv() { in Argv() function in testing::internal::Arguments
1042 child_job, FDIO_SPAWN_CLONE_ALL, args.Argv()[0], args.Argv(), nullptr, in AssumeRole()
1199 char* const* Argv() { in Argv() function in testing::internal::Arguments
1432 const pid_t child_pid = ExecDeathTestSpawnChild(args.Argv(), pipe_fd[0]); in AssumeRole()

12