reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Option/ArgList.h
  281   StringRef getLastArgValue(OptSpecifier Id, StringRef Default = "") const;

References

lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
  149   std::string Path = Args.getLastArgValue(OPT_l);
tools/clang/lib/Driver/Driver.cpp
  795           CLOptions->getLastArgValue(options::OPT_config_system_dir_EQ));
  806           CLOptions->getLastArgValue(options::OPT_config_user_dir_EQ));
 3242         !Args.getLastArgValue(options::OPT_fuse_ld_EQ).equals_lower("lld"))
 4394     StringRef FaValue = C.getArgs().getLastArgValue(options::OPT__SLASH_Fa);
 4787         if (Args.getLastArgValue(options::OPT_fuse_ld_EQ)
tools/clang/lib/Driver/ToolChains/AMDGPU.cpp
   78   if (!Args.getLastArgValue(options::OPT_x).equals("cl"))
tools/clang/lib/Driver/ToolChains/Clang.cpp
 3600               ? Args.getLastArgValue(options::OPT_interface_stub_version_EQ)
 4644     StringRef alignment = Args.getLastArgValue(options::OPT_mstack_alignment);
 4649     StringRef Size = Args.getLastArgValue(options::OPT_mstack_probe_size);
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
  821         Args.getLastArgValue(options::OPT_fdebug_compilation_dir));
tools/clang/lib/Driver/ToolChains/Cuda.cpp
   86         Args.getLastArgValue(clang::driver::options::OPT_cuda_path_EQ).str());
  336     GPUArchName = Args.getLastArgValue(options::OPT_march_EQ);
  522       Args.getLastArgValue(options::OPT_march_EQ);
  607   StringRef GpuArch = DriverArgs.getLastArgValue(options::OPT_march_EQ);
  752     StringRef Arch = DriverArgs.getLastArgValue(options::OPT_march_EQ);
  786     StringRef Arch = DAL->getLastArgValue(options::OPT_march_EQ);
tools/clang/lib/Driver/ToolChains/Darwin.cpp
 1822     return DriverArgs.getLastArgValue(options::OPT_isysroot);
tools/clang/lib/Driver/ToolChains/Gnu.cpp
 1470   llvm::StringRef Arch = Args.getLastArgValue(options::OPT_march_EQ);
tools/clang/lib/Driver/ToolChains/HIP.cpp
  273   StringRef GpuArch = DriverArgs.getLastArgValue(options::OPT_march_EQ);
tools/clang/lib/Driver/ToolChains/MSP430.cpp
   44   StringRef HWMult = Args.getLastArgValue(options::OPT_mhwmult_EQ, "auto");
tools/clang/lib/Driver/ToolChains/MSVC.cpp
  497   StringRef Linker = Args.getLastArgValue(options::OPT_fuse_ld_EQ, "link");
tools/clang/lib/Driver/ToolChains/MinGW.cpp
  399       Args.getLastArgValue(options::OPT_fuse_ld_EQ, CLANG_DEFAULT_LINKER)
tools/clang/lib/Frontend/CompilerInvocation.cpp
  302                    Args.getLastArgValue(OPT_analyzer_config_compatibility_mode))
  310   Opts.DumpExplodedGraphTo = Args.getLastArgValue(OPT_analyzer_dump_egraph);
  317   Opts.AnalyzeSpecificFunction = Args.getLastArgValue(OPT_analyze_function);
  764   Opts.SplitDwarfFile = Args.getLastArgValue(OPT_split_dwarf_file);
  765   Opts.SplitDwarfOutput = Args.getLastArgValue(OPT_split_dwarf_output);
  805   Opts.DwarfDebugFlags = Args.getLastArgValue(OPT_dwarf_debug_flags);
  806   Opts.RecordCommandLine = Args.getLastArgValue(OPT_record_command_line);
  822   Opts.SampleProfileFile = Args.getLastArgValue(OPT_fprofile_sample_use_EQ);
  835       Args.getLastArgValue(OPT_fprofile_instrument_path_EQ);
  837       Args.getLastArgValue(OPT_fprofile_instrument_use_path_EQ);
  841       Args.getLastArgValue(OPT_fprofile_remapping_file_EQ);
  860   Opts.DebugPass = Args.getLastArgValue(OPT_mdebug_pass);
  892   Opts.FloatABI = Args.getLastArgValue(OPT_mfloat_abi);
  896   Opts.LimitFloatPrecision = Args.getLastArgValue(OPT_mlimit_float_precision);
  946   Opts.ThreadModel = Args.getLastArgValue(OPT_mthread_model, "posix");
  951   Opts.TrapFuncName = Args.getLastArgValue(OPT_ftrap_function_EQ);
  986     Opts.ThinLTOIndexFile = Args.getLastArgValue(OPT_fthinlto_index_EQ);
  994   Opts.ThinLinkBitcodeFile = Args.getLastArgValue(OPT_fthin_link_bitcode_EQ);
 1001   Opts.PreferVectorWidth = Args.getLastArgValue(OPT_mprefer_vector_width_EQ);
 1003   Opts.MainFileName = Args.getLastArgValue(OPT_main_file_name);
 1013     Opts.CoverageDataFile = Args.getLastArgValue(OPT_coverage_data_file);
 1014     Opts.CoverageNotesFile = Args.getLastArgValue(OPT_coverage_notes_file);
 1019         Args.getLastArgValue(OPT_fprofile_filter_files_EQ);
 1021         Args.getLastArgValue(OPT_fprofile_exclude_files_EQ);
 1025       StringRef CoverageVersion = Args.getLastArgValue(OPT_coverage_version_EQ);
 1135   Opts.DebugCompilationDir = Args.getLastArgValue(OPT_fdebug_compilation_dir);
 1287   Opts.OptRecordFile = Args.getLastArgValue(OPT_opt_record_file);
 1360       Args.getLastArgValue(OPT_fcuda_include_gpubinary);
 1411   Opts.SymbolPartition = Args.getLastArgValue(OPT_fsymbol_partition_EQ);
 1418   Opts.OutputFile = Args.getLastArgValue(OPT_dependency_file);
 1424   Opts.HeaderIncludeOutputFile = Args.getLastArgValue(OPT_header_include_file);
 1437   Opts.DOTOutputFile = Args.getLastArgValue(OPT_dependency_dot);
 1439       Args.getLastArgValue(OPT_module_dependency_dir);
 1512   Opts.DiagnosticLogFile = Args.getLastArgValue(OPT_diagnostic_log_file);
 1542     Args.getLastArgValue(OPT_fshow_overloads_EQ, "all");
 1556     Args.getLastArgValue(OPT_fdiagnostics_show_category, "none");
 1572     Args.getLastArgValue(OPT_fdiagnostics_format, "clang");
 1646   Opts.WorkingDir = Args.getLastArgValue(OPT_working_directory);
 1743               ? Args.getLastArgValue(OPT_interface_stub_version_EQ)
 1837   Opts.OutputFile = Args.getLastArgValue(OPT_o);
 1856   Opts.ASTDumpFilter = Args.getLastArgValue(OPT_ast_dump_filter);
 1885     = Args.getLastArgValue(OPT_foverride_record_layout_EQ);
 1886   Opts.AuxTriple = Args.getLastArgValue(OPT_aux_triple);
 1887   Opts.StatsFile = Args.getLastArgValue(OPT_stats_file);
 1906   Opts.MTMigrateDir = Args.getLastArgValue(OPT_mt_migrate_directory);
 1908     = Args.getLastArgValue(OPT_arcmt_migrate_report_output);
 1943   Opts.ObjCMTWhiteListPath = Args.getLastArgValue(OPT_objcmt_whitelist_dir_path);
 2040   Opts.Sysroot = Args.getLastArgValue(OPT_isysroot, "/");
 2047   Opts.ResourceDir = Args.getLastArgValue(OPT_resource_dir);
 2050   SmallString<128> P(Args.getLastArgValue(OPT_fmodules_cache_path));
 2060   Opts.ModuleUserBuildPath = Args.getLastArgValue(OPT_fmodules_user_build_path);
 2670         Args.getLastArgValue(OPT_ftrapv_handler);
 2842     Args.getLastArgValue(OPT_fconstant_string_class);
 2875   Opts.ModuleName = Args.getLastArgValue(OPT_fmodule_name_EQ);
 3276   Opts.ImplicitPCHInclude = Args.getLastArgValue(OPT_include_pch);
 3280   Opts.PCHThroughHeader = Args.getLastArgValue(OPT_pch_through_header_EQ);
 3388   Opts.ABI = Args.getLastArgValue(OPT_target_abi);
 3403   Opts.CPU = Args.getLastArgValue(OPT_target_cpu);
 3404   Opts.FPMath = Args.getLastArgValue(OPT_mfpmath);
 3406   Opts.LinkerVersion = Args.getLastArgValue(OPT_target_linker_version);
 3407   Opts.Triple = Args.getLastArgValue(OPT_triple);
tools/clang/tools/driver/cc1as_main.cpp
  208   Opts.Triple = llvm::Triple::normalize(Args.getLastArgValue(OPT_triple));
  209   Opts.CPU = Args.getLastArgValue(OPT_target_cpu);
  240   Opts.DwarfDebugFlags = Args.getLastArgValue(OPT_dwarf_debug_flags);
  241   Opts.DwarfDebugProducer = Args.getLastArgValue(OPT_dwarf_debug_producer);
  242   Opts.DebugCompilationDir = Args.getLastArgValue(OPT_fdebug_compilation_dir);
  243   Opts.MainFileName = Args.getLastArgValue(OPT_main_file_name);
  262   Opts.OutputPath = Args.getLastArgValue(OPT_o);
  263   Opts.SplitDwarfOutput = Args.getLastArgValue(OPT_split_dwarf_output);
  291   Opts.RelocationModel = Args.getLastArgValue(OPT_mrelocation_model, "pic");
  292   Opts.TargetABI = Args.getLastArgValue(OPT_target_abi);
tools/lld/COFF/Driver.cpp
 1505       args.getLastArgValue(OPT_thinlto_index_only_arg);
 1510   config->ltoObjPath = args.getLastArgValue(OPT_lto_obj_path);
tools/lld/ELF/Driver.cpp
  553   StringRef s = args.getLastArgValue(OPT_target2, "got-rel");
  565   StringRef s = args.getLastArgValue(OPT_oformat, "elf");
  645   StringRef s = args.getLastArgValue(OPT_sort_section);
  656   StringRef s = args.getLastArgValue(OPT_orphan_handling, "place");
  696   StringRef s = args.getLastArgValue(OPT_pack_dyn_relocs, "none");
  765   StringRef s = args.getLastArgValue(OPT_compress_debug_sections, "none");
  836   config->chroot = args.getLastArgValue(OPT_chroot);
  845   config->dwoDir = args.getLastArgValue(OPT_plugin_opt_dwo_dir_eq);
  855   config->entry = args.getLastArgValue(OPT_entry);
  861   config->fini = args.getLastArgValue(OPT_fini, "_fini");
  874   config->init = args.getLastArgValue(OPT_init, "_init");
  875   config->ltoAAPipeline = args.getLastArgValue(OPT_lto_aa_pipeline);
  877   config->ltoCSProfileFile = args.getLastArgValue(OPT_lto_cs_profile_file);
  880   config->ltoNewPmPasses = args.getLastArgValue(OPT_lto_newpm_passes);
  882   config->ltoObjPath = args.getLastArgValue(OPT_lto_obj_path_eq);
  884   config->ltoSampleProfile = args.getLastArgValue(OPT_lto_sample_profile);
  885   config->mapFile = args.getLastArgValue(OPT_Map);
  894   config->optRemarksFilename = args.getLastArgValue(OPT_opt_remarks_filename);
  895   config->optRemarksPasses = args.getLastArgValue(OPT_opt_remarks_passes);
  897   config->optRemarksFormat = args.getLastArgValue(OPT_opt_remarks_format);
  900   config->outputFile = args.getLastArgValue(OPT_o);
  908       args.getLastArgValue(OPT_print_symbol_order);
  916   config->soName = args.getLastArgValue(OPT_soname);
  920   config->sysroot = args.getLastArgValue(OPT_sysroot);
  923   config->thinLTOCacheDir = args.getLastArgValue(OPT_thinlto_cache_dir);
  925       parseCachePruningPolicy(args.getLastArgValue(OPT_thinlto_cache_policy)),
  930   config->thinLTOIndexOnlyArg = args.getLastArgValue(OPT_thinlto_index_only_eq);
tools/lld/MinGW/Driver.cpp
  204     if (args.getLastArgValue(OPT_m) == "i386pe" && s.startswith("_"))
  224     StringRef subSys = args.getLastArgValue(OPT_subs, "default");
  281   if (args.getLastArgValue(OPT_m) != "thumb2pe" &&
  282       args.getLastArgValue(OPT_m) != "arm64pe" && !args.hasArg(OPT_dynamicbase))
  325   if (args.getLastArgValue(OPT_m) == "i386pe")
tools/lld/wasm/Driver.cpp
  324   config->outputFile = args.getLastArgValue(OPT_o);
  341   config->thinLTOCacheDir = args.getLastArgValue(OPT_thinlto_cache_dir);
  343       parseCachePruningPolicy(args.getLastArgValue(OPT_thinlto_cache_policy)),
tools/llvm-lipo/llvm-lipo.cpp
  318     C.OutputFile = InputArgs.getLastArgValue(LIPO_output);
tools/llvm-mt/llvm-mt.cpp
  129     OutputFile = InputArgs.getLastArgValue(OPT_out);
tools/llvm-objcopy/CopyConfig.cpp
  434     InputFormat = InputArgs.getLastArgValue(OBJCOPY_target);
  435     OutputFormat = InputArgs.getLastArgValue(OBJCOPY_target);
  437     InputFormat = InputArgs.getLastArgValue(OBJCOPY_input_target);
  438     OutputFormat = InputArgs.getLastArgValue(OBJCOPY_output_target);
  451         InputArgs.getLastArgValue(OBJCOPY_new_symbol_visibility);
  477               InputArgs.getLastArgValue(OBJCOPY_compress_debug_sections_eq))
  485             InputArgs.getLastArgValue(OBJCOPY_compress_debug_sections_eq)
  495   Config.AddGnuDebugLink = InputArgs.getLastArgValue(OBJCOPY_add_gnu_debuglink);
  508   Config.BuildIdLinkDir = InputArgs.getLastArgValue(OBJCOPY_build_id_link_dir);
  511         InputArgs.getLastArgValue(OBJCOPY_build_id_link_input);
  514         InputArgs.getLastArgValue(OBJCOPY_build_id_link_output);
  515   Config.SplitDWO = InputArgs.getLastArgValue(OBJCOPY_split_dwo);
  516   Config.SymbolsPrefix = InputArgs.getLastArgValue(OBJCOPY_prefix_symbols);
  518       InputArgs.getLastArgValue(OBJCOPY_prefix_alloc_sections);
  865         InputArgs.getLastArgValue(STRIP_output, Positional[0]);
  887                                InputArgs.getLastArgValue(STRIP_output) == "-"))
tools/llvm-rc/llvm-rc.cpp
  148     if (InputArgs.getLastArgValue(OPT_CODEPAGE)
  151                  InputArgs.getLastArgValue(OPT_CODEPAGE));
unittests/Option/OptionParsingTest.cpp
   82   EXPECT_EQ("hi", AL.getLastArgValue(OPT_B));
   83   EXPECT_EQ("bye", AL.getLastArgValue(OPT_C));
   84   EXPECT_EQ("adena", AL.getLastArgValue(OPT_D));
   88   EXPECT_EQ("42", AL.getLastArgValue(OPT_F));
  138   EXPECT_EQ("foo", AL.getLastArgValue(OPT_SLASH_C));
  139   EXPECT_EQ("bar", AL.getLastArgValue(OPT_C));