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

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DInitLLVM.h36 InitLLVM(int &Argc, const char **&Argv,
38 InitLLVM(int &Argc, char **&Argv, bool InstallPipeSignalExitHandler = true) argument
39 : InitLLVM(Argc, const_cast<const char **&>(Argv),
H A DCommandLine.h2054 /// \param [out] Argv Array to which the read options are added.
2062 SmallVectorImpl<const char *> &Argv);
2065 /// StringSaver and tokenization strategy. Argv should contain the command line
2066 /// before expansion and will be modified in place. If requested, Argv will
2074 /// \param [in,out] Argv Command line into which to expand response files.
2076 /// with nullptrs in the Argv vector.
2085 SmallVectorImpl<const char *> &Argv, bool MarkEOLs = false,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DInitLLVM.cpp24 InitLLVM::InitLLVM(int &Argc, const char **&Argv, argument
26 : StackPrinter(Argc, Argv) {
29 sys::PrintStackTraceOnErrorSignal(Argv[0]);
37 // write them back to the Argv vector.
42 std::string Banner = std::string(Argv[0]) + ": ";
52 Argv = Args.data();
H A DCommandLine.cpp1113 SmallVectorImpl<const char *> &Argv, bool MarkEOLs,
1129 FileStack.push_back({"", Argv.size()});
1131 // Don't cache Argv.size() because it can change.
1132 for (unsigned I = 0; I != Argv.size();) {
1139 const char *Arg = Argv[I];
1210 Argv.erase(Argv.begin() + I);
1211 Argv.insert(Argv.begin() + I, ExpandedArgv.begin(), ExpandedArgv.end());
1214 // If successful, the top of the file stack will mark the end of the Argv
1112 ExpandResponseFiles(StringSaver &Saver, TokenizerCallback Tokenizer, SmallVectorImpl<const char *> &Argv, bool MarkEOLs, bool RelativeNames, llvm::vfs::FileSystem &FS, llvm::Optional<llvm::StringRef> CurrentDir) argument
1223 readConfigFile(StringRef CfgFile, StringSaver &Saver, SmallVectorImpl<const char *> &Argv) argument
[all...]
/freebsd-11-stable/usr.bin/c89/
H A Dc89.c71 } Argv; local
74 Argv.a = malloc((argc + 1 + N_ARGS_PREPENDED) * sizeof *Argv.a);
75 if (Argv.a == NULL)
77 Argv.a[Argc++] = CC;
79 Argv.a[Argc++] = args_prepended[j];
96 /* Append argv[1..] at the end of Argv[].a. */
98 Argv.a[Argc++] = argv[i];
99 (void)execv(CC, Argv.b);
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/
H A DExpandResponseFilesCompilationDatabase.cpp52 llvm::SmallVector<const char *, 20> Argv; local
53 Argv.reserve(Cmd.CommandLine.size());
55 Argv.push_back(Arg.c_str());
62 llvm::cl::ExpandResponseFiles(Saver, Tokenizer, Argv, false, false, *FS,
64 // Don't assign directly, Argv aliases CommandLine.
65 std::vector<std::string> ExpandedArgv(Argv.begin(), Argv.end());
H A DCompilationDatabase.cpp344 const char *const *Argv,
350 const char *const *DoubleDash = std::find(Argv, Argv + Argc, StringRef("--"));
351 if (DoubleDash == Argv + Argc)
353 std::vector<const char *> CommandLine(DoubleDash + 1, Argv + Argc);
354 Argc = DoubleDash - Argv;
343 loadFromCommandLine(int &Argc, const char *const *Argv, std::string &ErrorMsg, Twine Directory) argument
H A DTooling.cpp316 std::vector<const char*> Argv; local
318 Argv.push_back(Str.c_str());
319 const char *const BinaryName = Argv[0];
323 ArrayRef<const char *>(Argv).slice(1), MissingArgIndex, MissingArgCount);
340 Driver->BuildCompilation(llvm::makeArrayRef(Argv)));
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtilDarwin.cpp103 char *const Argv[] = { local
112 Argv, Environ);
131 for (unsigned i = 0, n = sizeof(Argv) / sizeof(Argv[0]); i < n; ++i)
132 free(Argv[i]);
H A DFuzzerUtilFuchsia.cpp434 std::unique_ptr<const char *[]> Argv(new const char *[Argc + 1]);
436 Argv[i] = Args[i].c_str();
437 Argv[Argc] = nullptr;
501 Argv[0], Argv.get(), nullptr, 3, SpawnAction, &ProcessHandle, ErrorMsg);
503 Printf("libFuzzer: failed to launch '%s': %s, %s\n", Argv[0], ErrorMsg,
512 Printf("libFuzzer: failed to join '%s': %s\n", Argv[0],
520 Printf("libFuzzer: unable to get return code from '%s': %s\n", Argv[0],
/freebsd-11-stable/contrib/llvm-project/clang/tools/driver/
H A Dcc1gen_reproducer_main.cpp111 generateReproducerForInvocationArguments(ArrayRef<const char *> Argv, argument
114 auto TargetAndMode = ToolChain::getTargetAndModeFromProgramName(Argv[0]);
121 Driver TheDriver(Argv[0], llvm::sys::getDefaultTargetTriple(), Diags);
124 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(Argv));
155 int cc1gen_reproducer_main(ArrayRef<const char *> Argv, const char *Argv0, argument
157 if (Argv.size() < 1) {
162 StringRef Input = Argv[0];
173 if (Argv.size() > 1 && Argv[1] == StringRef("-v"))
H A Dcc1_main.cpp184 int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
207 CompilerInvocation::CreateFromArgs(Clang->getInvocation(), Argv, Diags);
H A Dcc1as_main.cpp168 ArrayRef<const char *> Argv,
175 ArrayRef<const char *> Argv,
184 InputArgList Args = OptTbl.ParseArgs(Argv, MissingArgIndex, MissingArgCount,
554 int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { argument
575 if (!AssemblerInvocation::CreateFromArgs(Asm, Argv, Diags))
174 CreateFromArgs(AssemblerInvocation &Opts, ArrayRef<const char *> Argv, DiagnosticsEngine &Diags) argument
H A Ddriver.cpp205 extern int cc1_main(ArrayRef<const char *> Argv, const char *Argv0,
207 extern int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0,
209 extern int cc1gen_reproducer_main(ArrayRef<const char *> Argv,
/freebsd-11-stable/crypto/openssl/apps/
H A Dopenssl.c215 # define ARGV Argv
255 char **Argv = NULL; local
264 Argv = OPENSSL_malloc((Argc + 1) * sizeof(char *));
265 if (Argv == NULL) {
270 Argv[i] = _Argv[i];
271 Argv[Argc] = NULL; /* Certain NULL termination. */
279 Argv = (char **)_Argv;
354 program_name(Argv[0], pname, sizeof(pname));
359 Argv[0] = pname;
360 ret = fp->func(Argc, Argv);
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Driver/
H A DJob.cpp330 SmallVector<const char *, 128> Argv; local
332 Argv.push_back(Executable);
333 Argv.append(Arguments.begin(), Arguments.end());
334 Argv.push_back(nullptr);
340 // Write file contents and build the Argv vector
342 buildArgvForResponseFile(Argv);
343 Argv.push_back(nullptr);
368 auto Args = llvm::toStringRefArray(Argv.data());
399 SmallVector<const char *, 128> Argv; local
400 Argv
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_utils.cpp161 auto **Argv = GetArgv();
162 const char *Progname = !Argv ? "(unknown)" : Argv[0];
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-ar/
H A Dllvm-ar.cpp1099 SmallVector<const char *, 0> Argv(argv, argv + argc);
1101 cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Argv);
1102 for (size_t i = 1; i < Argv.size(); ++i) {
1103 StringRef Arg = Argv[i];
1108 if (++i >= Argv.size())
1110 match = Argv[i];
1119 if (handleGenericOption(Argv[i]))
1122 for (; i < Argv.size(); ++i)
1123 PositionalArgs.push_back(Argv[i]);
1128 Arg = Argv[
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DProgram.inc190 const char **Argv = nullptr;
193 Argv = ArgVector.data();
255 /*attrp*/ nullptr, const_cast<char **>(Argv),
309 execve(PathStr.c_str(), const_cast<char **>(Argv),
312 execv(PathStr.c_str(), const_cast<char **>(Argv));
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/
H A DCompilationDatabase.h180 /// \param Argv Points to the command line arguments.
184 int &Argc, const char *const *Argv, std::string &ErrorMsg,
/freebsd-11-stable/usr.bin/patch/
H A Dpatch.c124 static char **Argv; variable
208 Argv = argv;
395 Argv = Argv_last;
558 Argv_last = Argv;
562 while ((ch = getopt_long(Argc, Argv, options, longopts, NULL)) != -1) {
670 Argv += optind;
673 filearg[0] = xstrdup(*Argv++);
678 filearg[filec] = xstrdup(*Argv++);
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp567 std::vector<const char *> Argv; local
569 Argv.push_back(InputFileList[0].data());
571 Argv.push_back(Arg.data());
572 Argv.push_back(nullptr);
576 Result = Main(Argv.size() - 1, Argv.data());
/freebsd-11-stable/contrib/opie/
H A Dopieftpd.c224 static char **Argv = NULL; /* pointer to argument vector */ variable
1541 p = Argv[0];
1601 Argv = argv;
/freebsd-11-stable/contrib/sendmail/src/
H A Dconf.c2505 static char **Argv = NULL; /* pointer to argument vector */ variable
2542 Argv = argv;
2649 if (i > LastArgv - Argv[0] - 2)
2651 i = LastArgv - Argv[0] - 2;
2654 (void) sm_strlcpy(Argv[0], buf, i + 1);
2655 p = &Argv[0][i];
2658 Argv[1] = NULL;
2661 Argv[0] = buf;
2662 Argv[1] = NULL;
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A Dllvm-pdbutil.cpp1426 int main(int Argc, const char **Argv) { argument
1427 InitLLVM X(Argc, Argv);
1430 cl::ParseCommandLineOptions(Argc, Argv, "LLVM PDB Dumper\n");

Completed in 212 milliseconds