|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp 107 if (!Args.hasArg(OPT_d)) {
lib/ToolDrivers/llvm-lib/LibDriver.cpp 290 if (Args.hasArg(OPT_help)) {
299 if (Args.hasArg(OPT_lst)) {
371 /*Deterministic*/ true, Args.hasArg(OPT_llvmlibthin))) {
tools/clang/lib/Driver/Compilation.cpp 154 getArgs().hasArg(options::OPT_v)) && !getDriver().CCGenDiagnostics) {
264 if (TranslatedArgs->hasArg(OutputOpts[i]))
tools/clang/lib/Driver/Driver.cpp 330 bool HasNostdlib = Args.hasArg(options::OPT_nostdlib);
331 bool HasNostdlibxx = Args.hasArg(options::OPT_nostdlibxx);
332 bool HasNodefaultlib = Args.hasArg(options::OPT_nodefaultlibs);
615 C.getInputArgs().hasArg(options::OPT_hip_link);
773 if (CfgOptions->hasArg(options::OPT_config)) {
792 if (CLOptions->hasArg(options::OPT_config_system_dir_EQ)) {
803 if (CLOptions->hasArg(options::OPT_config_user_dir_EQ)) {
1025 Diags.setIgnoreAllWarnings(Args.hasArg(options::OPT_w));
1039 CCCPrintPhases = Args.hasArg(options::OPT_ccc_print_phases);
1040 CCCPrintBindings = Args.hasArg(options::OPT_ccc_print_bindings);
1247 if (C.getArgs().hasArg(options::OPT_fno_crash_diagnostics))
1452 if (C.getArgs().hasArg(options::OPT__HASH_HASH_HASH)) {
1653 if (C.getArgs().hasArg(options::OPT_dumpmachine)) {
1658 if (C.getArgs().hasArg(options::OPT_dumpversion)) {
1665 if (C.getArgs().hasArg(options::OPT__print_diagnostic_categories)) {
1670 if (C.getArgs().hasArg(options::OPT_help) ||
1671 C.getArgs().hasArg(options::OPT__help_hidden)) {
1672 PrintHelp(C.getArgs().hasArg(options::OPT__help_hidden));
1676 if (C.getArgs().hasArg(options::OPT__version)) {
1682 if (C.getArgs().hasArg(options::OPT_v) ||
1683 C.getArgs().hasArg(options::OPT__HASH_HASH_HASH) ||
1684 C.getArgs().hasArg(options::OPT_print_supported_cpus)) {
1689 if (C.getArgs().hasArg(options::OPT_v)) {
1700 if (C.getArgs().hasArg(options::OPT_v))
1703 if (C.getArgs().hasArg(options::OPT_print_resource_dir)) {
1708 if (C.getArgs().hasArg(options::OPT_print_search_dirs)) {
1759 if (C.getArgs().hasArg(options::OPT_print_libgcc_file_name)) {
1774 if (C.getArgs().hasArg(options::OPT_print_multi_lib)) {
1780 if (C.getArgs().hasArg(options::OPT_print_multi_directory)) {
1792 if (C.getArgs().hasArg(options::OPT_print_target_triple)) {
1797 if (C.getArgs().hasArg(options::OPT_print_effective_triple)) {
2002 if (Args.hasArg(options::OPT_verify_debug_info)) {
2029 if (Args.hasArg(options::OPT__SLASH_link) && Ty == types::TY_Object) {
2093 assert(!Args.hasArg(options::OPT_x) && "-x and /TC or /TP is not allowed");
2160 if (Args.hasArg(options::OPT_ObjC))
2162 else if (Args.hasArg(options::OPT_ObjCXX))
3239 if (Args.hasArg(options::OPT_emit_llvm))
3246 if (FinalPhase == phases::Preprocess || Args.hasArg(options::OPT__SLASH_Y_)) {
3276 if (Args.hasArg(options::OPT_Qunused_arguments))
3535 if (Args.hasArg(options::OPT_M, options::OPT_MM) &&
3536 !Args.hasArg(options::OPT_MD, options::OPT_MMD)) {
3566 if (Args.hasArg(options::OPT_fsyntax_only)) {
3577 if (Args.hasArg(options::OPT_fsyntax_only))
3579 if (Args.hasArg(options::OPT_rewrite_objc))
3581 if (Args.hasArg(options::OPT_rewrite_legacy_objc))
3584 if (Args.hasArg(options::OPT__analyze))
3586 if (Args.hasArg(options::OPT__migrate))
3588 if (Args.hasArg(options::OPT_emit_ast))
3590 if (Args.hasArg(options::OPT_module_file_info))
3592 if (Args.hasArg(options::OPT_verify_pch))
3594 if (Args.hasArg(options::OPT_emit_interface_stubs))
3601 Args.hasArg(options::OPT_S) ? types::TY_LTO_IR : types::TY_LTO_BC;
3604 if (Args.hasArg(options::OPT_emit_llvm)) {
3606 Args.hasArg(options::OPT_S) ? types::TY_LLVM_IR : types::TY_LLVM_BC;
3672 C.getArgs().hasArg(options::OPT_Qunused_arguments))
3676 (void)C.getArgs().hasArg(options::OPT__HASH_HASH_HASH);
3679 (void)C.getArgs().hasArg(options::OPT_driver_mode);
3680 (void)C.getArgs().hasArg(options::OPT_rsp_quoting);
3784 !C.getArgs().hasArg(options::OPT_via_file_asm) &&
3785 !C.getArgs().hasArg(options::OPT__SLASH_FA) &&
3786 !C.getArgs().hasArg(options::OPT__SLASH_Fa);
3791 return !C.getArgs().hasArg(options::OPT_no_integrated_cpp) &&
3792 !C.getArgs().hasArg(options::OPT_traditional_cpp) && !SaveTemps &&
3793 !C.getArgs().hasArg(options::OPT_rewrite_objc);
4349 Args.hasArg(options::OPT__SLASH_LD, options::OPT__SLASH_LDd)) {
4373 if (C.getArgs().hasArg(options::OPT__SLASH_P)) {
4390 (C.getArgs().hasArg(options::OPT__SLASH_FA) ||
4391 C.getArgs().hasArg(options::OPT__SLASH_Fa))) {
4402 !C.getArgs().hasArg(options::OPT__SLASH_Fo)) ||
4440 C.getArgs().hasArg(options::OPT__SLASH_Fo, options::OPT__SLASH_o)) {
4449 C.getArgs().hasArg(options::OPT__SLASH_Fe,
4501 if (!AtTopLevel && C.getArgs().hasArg(options::OPT_emit_llvm) &&
4510 if (!AtTopLevel && isSaveTempsObj() && C.getArgs().hasArg(options::OPT_o) &&
tools/clang/lib/Driver/SanitizerArgs.cpp 460 !Args.hasArg(options::OPT_ffixed_x18)) {
633 Args.hasArg(options::OPT_fsanitize_cfi_icall_generalize_pointers);
786 Args.hasArg(options::OPT_fsanitize_address_globals_dead_stripping);
837 LinkCXXRuntimes = Args.hasArg(options::OPT_fsanitize_link_cxx_runtime,
1052 !Args.hasArg(options::OPT_fvisibility_EQ)) {
tools/clang/lib/Driver/ToolChain.cpp 472 if (Args.hasArg(options::OPT_noprofilelib))
476 Args.hasArg(options::OPT_fprofile_generate) ||
477 Args.hasArg(options::OPT_fprofile_generate_EQ) ||
478 Args.hasArg(options::OPT_fcs_profile_generate) ||
479 Args.hasArg(options::OPT_fcs_profile_generate_EQ) ||
480 Args.hasArg(options::OPT_fprofile_instr_generate) ||
481 Args.hasArg(options::OPT_fprofile_instr_generate_EQ) ||
482 Args.hasArg(options::OPT_fcreate_profile) ||
483 Args.hasArg(options::OPT_forder_file_instrumentation))
492 Args.hasArg(options::OPT_coverage);
858 if (!DriverArgs.hasArg(options::OPT_nostdincxx))
866 !Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
872 assert(!Args.hasArg(options::OPT_nostdlibxx) &&
tools/clang/lib/Driver/ToolChains/AIX.cpp 37 if (Args.hasArg(options::OPT_static))
62 if (Args.hasArg(options::OPT_pg))
65 else if (Args.hasArg(options::OPT_p))
71 if (!Args.hasArg(options::OPT_nostdlib)) {
83 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
85 if (Args.hasArg(options::OPT_pthreads, options::OPT_pthread))
tools/clang/lib/Driver/ToolChains/AMDGPU.cpp 89 if (Args.hasArg(options::OPT_c) && Args.hasArg(options::OPT_emit_llvm)) {
89 if (Args.hasArg(options::OPT_c) && Args.hasArg(options::OPT_emit_llvm)) {
96 if (!Args.hasArg(options::OPT_O, options::OPT_O0, options::OPT_O4,
111 if (!DriverArgs.hasArg(options::OPT_fvisibility_EQ,
tools/clang/lib/Driver/ToolChains/AVR.cpp 53 if (!Args.hasArg(options::OPT_nostdlib) &&
54 !Args.hasArg(options::OPT_nodefaultlibs) &&
55 !Args.hasArg(options::OPT_c /* does not apply when not linking */)) {
tools/clang/lib/Driver/ToolChains/Ananas.cpp 65 if (Args.hasArg(options::OPT_static)) {
68 if (Args.hasArg(options::OPT_rdynamic))
70 if (Args.hasArg(options::OPT_shared)) {
86 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
87 if (!Args.hasArg(options::OPT_shared)) {
91 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie)) {
91 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie)) {
114 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs))
117 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
118 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
118 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp 174 else if (Args.hasArg(options::OPT_arch) || isCPUDeterminedByTriple(Triple))
185 (Args.hasArg(options::OPT_arch) || isCPUDeterminedByTriple(Triple)))
329 if (Args.hasArg(options::OPT_ffixed_x1))
332 if (Args.hasArg(options::OPT_ffixed_x2))
335 if (Args.hasArg(options::OPT_ffixed_x3))
338 if (Args.hasArg(options::OPT_ffixed_x4))
341 if (Args.hasArg(options::OPT_ffixed_x5))
344 if (Args.hasArg(options::OPT_ffixed_x6))
347 if (Args.hasArg(options::OPT_ffixed_x7))
350 if (Args.hasArg(options::OPT_ffixed_x9))
353 if (Args.hasArg(options::OPT_ffixed_x10))
356 if (Args.hasArg(options::OPT_ffixed_x11))
359 if (Args.hasArg(options::OPT_ffixed_x12))
362 if (Args.hasArg(options::OPT_ffixed_x13))
365 if (Args.hasArg(options::OPT_ffixed_x14))
368 if (Args.hasArg(options::OPT_ffixed_x15))
371 if (Args.hasArg(options::OPT_ffixed_x18))
374 if (Args.hasArg(options::OPT_ffixed_x20))
377 if (Args.hasArg(options::OPT_ffixed_x21))
380 if (Args.hasArg(options::OPT_ffixed_x22))
383 if (Args.hasArg(options::OPT_ffixed_x23))
386 if (Args.hasArg(options::OPT_ffixed_x24))
389 if (Args.hasArg(options::OPT_ffixed_x25))
392 if (Args.hasArg(options::OPT_ffixed_x26))
395 if (Args.hasArg(options::OPT_ffixed_x27))
398 if (Args.hasArg(options::OPT_ffixed_x28))
401 if (Args.hasArg(options::OPT_fcall_saved_x8))
404 if (Args.hasArg(options::OPT_fcall_saved_x9))
407 if (Args.hasArg(options::OPT_fcall_saved_x10))
410 if (Args.hasArg(options::OPT_fcall_saved_x11))
413 if (Args.hasArg(options::OPT_fcall_saved_x12))
416 if (Args.hasArg(options::OPT_fcall_saved_x13))
419 if (Args.hasArg(options::OPT_fcall_saved_x14))
422 if (Args.hasArg(options::OPT_fcall_saved_x15))
425 if (Args.hasArg(options::OPT_fcall_saved_x18))
428 if (Args.hasArg(options::OPT_mno_neg_immediates))
tools/clang/lib/Driver/ToolChains/Arch/ARM.cpp 287 Args.hasArg(options::OPT_mkernel, options::OPT_fapple_kext);
508 if (!Args.hasArg(options::OPT_fno_integrated_as))
598 if (Args.hasArg(options::OPT_ffixed_r9))
602 if (KernelOrKext || Args.hasArg(options::OPT_mno_movt))
605 if (Args.hasArg(options::OPT_mno_neg_immediates))
702 if (Args.hasArg(options::OPT_r))
tools/clang/lib/Driver/ToolChains/Arch/RISCV.cpp 371 if (Args.hasArg(options::OPT_ffixed_x1))
373 if (Args.hasArg(options::OPT_ffixed_x2))
375 if (Args.hasArg(options::OPT_ffixed_x3))
377 if (Args.hasArg(options::OPT_ffixed_x4))
379 if (Args.hasArg(options::OPT_ffixed_x5))
381 if (Args.hasArg(options::OPT_ffixed_x6))
383 if (Args.hasArg(options::OPT_ffixed_x7))
385 if (Args.hasArg(options::OPT_ffixed_x8))
387 if (Args.hasArg(options::OPT_ffixed_x9))
389 if (Args.hasArg(options::OPT_ffixed_x10))
391 if (Args.hasArg(options::OPT_ffixed_x11))
393 if (Args.hasArg(options::OPT_ffixed_x12))
395 if (Args.hasArg(options::OPT_ffixed_x13))
397 if (Args.hasArg(options::OPT_ffixed_x14))
399 if (Args.hasArg(options::OPT_ffixed_x15))
401 if (Args.hasArg(options::OPT_ffixed_x16))
403 if (Args.hasArg(options::OPT_ffixed_x17))
405 if (Args.hasArg(options::OPT_ffixed_x18))
407 if (Args.hasArg(options::OPT_ffixed_x19))
409 if (Args.hasArg(options::OPT_ffixed_x20))
411 if (Args.hasArg(options::OPT_ffixed_x21))
413 if (Args.hasArg(options::OPT_ffixed_x22))
415 if (Args.hasArg(options::OPT_ffixed_x23))
417 if (Args.hasArg(options::OPT_ffixed_x24))
419 if (Args.hasArg(options::OPT_ffixed_x25))
421 if (Args.hasArg(options::OPT_ffixed_x26))
423 if (Args.hasArg(options::OPT_ffixed_x27))
425 if (Args.hasArg(options::OPT_ffixed_x28))
427 if (Args.hasArg(options::OPT_ffixed_x29))
429 if (Args.hasArg(options::OPT_ffixed_x30))
431 if (Args.hasArg(options::OPT_ffixed_x31))
tools/clang/lib/Driver/ToolChains/BareMetal.cpp 75 if (DriverArgs.hasArg(options::OPT_nostdinc))
78 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
84 if (!DriverArgs.hasArg(options::OPT_nostdlibinc)) {
99 if (DriverArgs.hasArg(options::OPT_nostdinc) ||
100 DriverArgs.hasArg(options::OPT_nostdlibinc) ||
101 DriverArgs.hasArg(options::OPT_nostdincxx))
184 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
tools/clang/lib/Driver/ToolChains/Clang.cpp 57 if (!Args.hasArg(options::OPT_E) && !Args.hasArg(options::OPT__SLASH_P) &&
57 if (!Args.hasArg(options::OPT_E) && !Args.hasArg(options::OPT__SLASH_P) &&
58 !Args.hasArg(options::OPT__SLASH_EP) && !D.CCCIsCPP()) {
68 if (Args.hasArg(options::OPT_static))
430 if (Args.hasArg(options::OPT_pg))
584 if (Args.hasArg(options::OPT_verify_pch) && Input.getType() == types::TY_PCH)
588 if (Args.hasArg(options::OPT_rewrite_objc))
745 bool EmitCovNotes = Args.hasArg(options::OPT_ftest_coverage) ||
746 Args.hasArg(options::OPT_coverage);
749 Args.hasArg(options::OPT_coverage);
765 if (Args.hasArg(options::OPT_fprofile_exclude_files_EQ)) {
767 if (!Args.hasArg(options::OPT_coverage))
777 if (Args.hasArg(options::OPT_fprofile_filter_files_EQ)) {
779 if (!Args.hasArg(options::OPT_coverage))
793 if (Args.hasArg(options::OPT_fprofile_arcs) ||
794 Args.hasArg(options::OPT_coverage))
802 if ((Args.hasArg(options::OPT_c) || Args.hasArg(options::OPT_S)) &&
802 if ((Args.hasArg(options::OPT_c) || Args.hasArg(options::OPT_S)) &&
1059 !Args.hasArg(options::OPT_fno_module_file_deps)) ||
1060 Args.hasArg(options::OPT_fmodule_file_deps))
1064 if (Args.hasArg(options::OPT_MG)) {
1085 if (!Args.hasArg(options::OPT_nobuiltininc)) {
1205 if (!Args.hasArg(options::OPT_isysroot)) {
1232 bool HasStdlibxxIsystem = Args.hasArg(options::OPT_stdlibxx_isystem);
1506 Args.hasArg(options::OPT_mkernel) ||
1507 Args.hasArg(options::OPT_fapple_kext))
1814 Args.hasArg(options::OPT_mkernel) ||
1815 Args.hasArg(options::OPT_fapple_kext))
1824 bool NoImplicitFloat = (Args.hasArg(options::OPT_mkernel) ||
1825 Args.hasArg(options::OPT_fapple_kext));
1869 if (!Args.hasArg(options::OPT_fno_short_enums))
1905 if (!Args.hasArg(options::OPT_fvisibility_EQ,
1916 if (C.getArgs().hasArg(options::OPT__HASH_HASH_HASH))
1945 if (!D.SysRoot.empty() && !Args.hasArg(options::OPT__sysroot_EQ)) {
1979 if (C.getArgs().hasArg(options::OPT__HASH_HASH_HASH))
2404 if (!Args.hasArg(options::OPT__analyzer_no_default_checks)) {
2549 if (TrivialAutoVarInit == "zero" && !Args.hasArg(options::OPT_enable_trivial_var_init_zero))
2585 if (!Args.hasArg(options::OPT_fno_objc_arc, options::OPT_fobjc_arc)) {
2622 if (!Args.hasArg(options::OPT_objcmt_migrate_literals,
2659 !Args.hasArg(options::OPT_mkernel));
2664 if (Args.hasArg(options::OPT_ffreestanding))
2716 if (Args.hasArg(options::OPT_fmodules_ts)) {
2791 if (Args.hasArg(options::OPT_fbuiltin_module_map)) {
2833 if (Args.hasArg(options::OPT_fbuild_session_timestamp))
2952 if (Args.hasArg(options::OPT_fno_objc_arc)) {
3085 if (Args.hasArg(options::OPT_fansi_escape_codes))
3092 if (Args.hasArg(options::OPT_fdiagnostics_absolute_paths))
3379 Args.hasArg(options::OPT_mkernel, options::OPT_fapple_kext);
3563 if (Args.hasArg(options::OPT_rewrite_objc) &&
3564 !Args.hasArg(options::OPT_g_Group))
3573 (void)Args.hasArg(options::OPT_force__cpusubtype__ALL);
3599 Args.hasArg(options::OPT_interface_stub_version_EQ)
3793 if (Args.hasArg(options::OPT_static))
3796 if (Args.hasArg(options::OPT_municode))
3803 (isa<PreprocessJobAction>(JA) && Args.hasArg(options::OPT__analyze)))
3843 !Args.hasArg(options::OPT_fallow_unsupported))
3891 if (Args.hasArg(options::OPT_frewrite_map_file) ||
3892 Args.hasArg(options::OPT_frewrite_map_file_EQ)) {
4009 if (Args.hasArg(options::OPT_fsplit_stack))
4036 if (Args.hasArg(options::OPT_fdebug_pass_structure)) {
4040 if (Args.hasArg(options::OPT_fdebug_pass_arguments)) {
4096 (void)Args.hasArg(options::OPT_mtune_EQ);
4149 if (!Args.hasArg(options::OPT_fallow_unsupported)) {
4214 !Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
4220 if (Args.hasArg(options::OPT_nostdinc)) {
4224 if (Args.hasArg(options::OPT_nostdlibinc))
4397 if (Args.hasArg(options::OPT_fexperimental_new_constant_interpreter))
4400 if (Args.hasArg(options::OPT_fforce_experimental_new_constant_interpreter))
4417 if (Args.hasArg(options::OPT_relocatable_pch))
4589 (Args.hasArg(options::OPT_mkernel) && types::isCXX(InputType)))
4643 if (Args.hasArg(options::OPT_mstack_alignment)) {
4648 if (Args.hasArg(options::OPT_mstack_probe_size)) {
4718 (Args.hasArg(options::OPT_fgnu_runtime) &&
4719 Args.hasArg(options::OPT_fobjc_nonfragile_abi) &&
4720 !Args.hasArg(options::OPT_fno_blocks))) {
4723 if (!Args.hasArg(options::OPT_fgnu_runtime) && !TC.hasBlocksRuntime())
4858 else if (Args.hasArg(options::OPT_fno_declspec))
4885 if (Args.hasArg(options::OPT_fno_inline))
5008 bool SkipMaxTypeAlign = Args.hasArg(options::OPT_fno_max_type_align);
5133 if (Args.hasArg(options::OPT_c) || Args.hasArg(options::OPT_S)) {
5133 if (Args.hasArg(options::OPT_c) || Args.hasArg(options::OPT_S)) {
5211 if (Args.hasArg(options::OPT_fretain_comments_from_system_headers))
5447 if (Args.hasArg(options::OPT_forder_file_instrumentation)) {
5536 if (Args.hasArg(options::OPT__SLASH_fallback) &&
5543 } else if (Args.hasArg(options::OPT__SLASH_fallback) &&
5787 if (Args.hasArg(options::OPT__SLASH_LDd))
5798 if (Args.hasArg(options::OPT__SLASH_LDd))
5811 if (Args.hasArg(options::OPT__SLASH_LDd))
5827 if (Args.hasArg(options::OPT__SLASH_Zl)) {
5877 if (Args.hasArg(options::OPT__SLASH_EP)) {
5898 if (Args.hasArg(options::OPT__SLASH_fallback)) {
5969 if (!Args.hasArg(options::OPT_fdiagnostics_format_EQ)) {
5971 if (Args.hasArg(options::OPT__SLASH_fallback))
6115 (void)Args.hasArg(options::OPT_force__cpusubtype__ALL);
tools/clang/lib/Driver/ToolChains/CloudABI.cpp 65 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
86 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
91 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles))
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp 403 if (Args.hasArg(options::OPT_gsplit_dwarf)) {
632 if (!Args.hasArg(options::OPT_shared) && !TC.getTriple().isAndroid())
656 if (Args.hasArg(options::OPT_shared) || SanArgs.needsSharedRt()) {
735 !Args.hasArg(options::OPT_shared)) {
738 if (!Args.hasArg(clang::driver::options::OPT_nostdlibxx))
771 if (Args.hasArg(options::OPT_shared))
814 if (FinalOutput && Args.hasArg(options::OPT_c)) {
906 if (Triple.isOSBinFormatMachO() && Args.hasArg(options::OPT_static))
911 Args.hasArg(options::OPT_mkernel, options::OPT_fapple_kext);
1086 if(Args.hasArg(options::OPT_mno_abicalls))
1161 if (Args.hasArg(options::OPT_static_libgcc) ||
1162 Args.hasArg(options::OPT_static) || Args.hasArg(options::OPT_static_pie))
1162 Args.hasArg(options::OPT_static) || Args.hasArg(options::OPT_static_pie))
1164 if (Args.hasArg(options::OPT_shared_libgcc) || D.CCCIsCXX())
1249 if (Args.hasArg(options::OPT_rtlib_EQ)) {
1348 if (C.getArgs().hasArg(options::OPT_fhip_dump_offload_linker_script))
1352 if (C.getArgs().hasArg(options::OPT__HASH_HASH_HASH))
tools/clang/lib/Driver/ToolChains/CrossWindows.cpp 86 if (Args.hasArg(options::OPT_pie))
88 if (Args.hasArg(options::OPT_rdynamic))
90 if (Args.hasArg(options::OPT_s))
114 if (Args.hasArg(options::OPT_shared)) {
130 CmdArgs.push_back(Args.hasArg(options::OPT_static) ? "-Bstatic"
140 CmdArgs.push_back(Args.hasArg(options::OPT_static) ? "-Bstatic"
143 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
157 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_rdynamic)) {
157 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_rdynamic)) {
170 bool StaticCXX = Args.hasArg(options::OPT_static_libstdcxx) &&
171 !Args.hasArg(options::OPT_static);
179 if (!Args.hasArg(options::OPT_nostdlib)) {
180 if (!Args.hasArg(options::OPT_nodefaultlibs)) {
189 if (Args.hasArg(options::OPT_shared)) {
242 if (DriverArgs.hasArg(options::OPT_nostdinc)) {
248 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
262 if (DriverArgs.hasArg(options::OPT_nostdinc) ||
263 DriverArgs.hasArg(options::OPT_nostdincxx))
tools/clang/lib/Driver/ToolChains/Cuda.cpp 84 if (Args.hasArg(clang::driver::options::OPT_cuda_path_EQ)) {
93 if (!Args.hasArg(clang::driver::options::OPT_cuda_path_ignore_env)) {
124 bool NoCudaLib = Args.hasArg(options::OPT_nogpulib);
234 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
244 if (DriverArgs.hasArg(options::OPT_nocudainc))
347 if (!Args.hasArg(options::OPT_no_cuda_version_check)) {
394 if (Args.hasArg(options::OPT_v))
518 if (Args.hasArg(options::OPT_v))
629 if (DriverArgs.hasArg(options::OPT_nogpulib))
636 DriverArgs.hasArg(options::OPT_S))
750 if (!DriverArgs.hasArg(options::OPT_nocudainc) &&
751 !DriverArgs.hasArg(options::OPT_no_cuda_version_check)) {
tools/clang/lib/Driver/ToolChains/Darwin.cpp 106 if (Args.hasArg(options::OPT_fno_integrated_as)) {
115 if (Args.hasArg(options::OPT_gstabs))
117 else if (Args.hasArg(options::OPT_g_Group))
127 Args.hasArg(options::OPT_force__cpusubtype__ALL))
131 (((Args.hasArg(options::OPT_mkernel) ||
132 Args.hasArg(options::OPT_fapple_kext)) &&
134 Args.hasArg(options::OPT_static)))
215 if (Version[0] >= 100 && !Args.hasArg(options::OPT_Z_Xlinker__no_demangle))
218 if (Args.hasArg(options::OPT_rdynamic) && Version[0] >= 137)
270 if (!Args.hasArg(options::OPT_static))
272 if (Args.hasArg(options::OPT_fgnu_runtime)) {
277 if (!Args.hasArg(options::OPT_dynamiclib)) {
425 return Args.hasArg(options::OPT_fobjc_link_runtime);
447 if (Args.hasArg(options::OPT_ccc_arcmt_check,
550 if (Args.hasArg(options::OPT_ObjC) || Args.hasArg(options::OPT_ObjCXX))
550 if (Args.hasArg(options::OPT_ObjC) || Args.hasArg(options::OPT_ObjCXX))
556 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles))
579 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs))
583 !Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
599 if (Args.hasArg(options::OPT_fnested_functions))
614 Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs);
615 bool ForceLinkBuiltins = Args.hasArg(options::OPT_fapple_link_rtlib);
634 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
645 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
1164 if (Args.hasArg(options::OPT_static) ||
1165 Args.hasArg(options::OPT_fapple_kext) ||
1166 Args.hasArg(options::OPT_mkernel)) {
1192 if (Sanitize.needsFuzzer() && !Args.hasArg(options::OPT_dynamiclib)) {
1625 if (!Args.hasArg(options::OPT_target))
1821 if(DriverArgs.hasArg(options::OPT_isysroot))
1834 bool NoStdInc = DriverArgs.hasArg(options::OPT_nostdinc);
1835 bool NoStdlibInc = DriverArgs.hasArg(options::OPT_nostdlibinc);
1836 bool NoBuiltinInc = DriverArgs.hasArg(options::OPT_nobuiltininc);
1914 if (DriverArgs.hasArg(options::OPT_nostdlibinc) ||
1915 DriverArgs.hasArg(options::OPT_nostdincxx))
1932 if (!DriverArgs.hasArg(options::OPT_nostdinc)) {
2292 CompilerRT += Args.hasArg(options::OPT_fPIC) ? "_pic" : "_static";
2484 if (Args.hasArg(options::OPT_dynamiclib)) {
2500 if (Args.hasArg(options::OPT_bundle)) {
2501 if (!Args.hasArg(options::OPT_static)) {
2516 if (Args.hasArg(options::OPT_pg) && SupportsProfiling()) {
2518 if (Args.hasArg(options::OPT_static) ||
2519 Args.hasArg(options::OPT_object) ||
2520 Args.hasArg(options::OPT_preload)) {
2539 if (Args.hasArg(options::OPT_static) ||
2540 Args.hasArg(options::OPT_object) ||
2541 Args.hasArg(options::OPT_preload)) {
2571 if (!isTargetIPhoneOS() && Args.hasArg(options::OPT_shared_libgcc) &&
tools/clang/lib/Driver/ToolChains/DragonFly.cpp 63 if (Args.hasArg(options::OPT_static)) {
66 if (Args.hasArg(options::OPT_rdynamic))
68 if (Args.hasArg(options::OPT_shared))
92 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
93 if (!Args.hasArg(options::OPT_shared)) {
94 if (Args.hasArg(options::OPT_pg))
98 if (Args.hasArg(options::OPT_pie))
107 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
107 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
120 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
123 if (!Args.hasArg(options::OPT_static)) {
134 if (Args.hasArg(options::OPT_pthread))
137 if (!Args.hasArg(options::OPT_nolibc)) {
141 if (Args.hasArg(options::OPT_static) ||
142 Args.hasArg(options::OPT_static_libgcc)) {
146 if (Args.hasArg(options::OPT_shared_libgcc)) {
148 if (!Args.hasArg(options::OPT_shared))
159 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
160 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
160 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
tools/clang/lib/Driver/ToolChains/FreeBSD.cpp 128 !Args.hasArg(options::OPT_shared) &&
129 (Args.hasArg(options::OPT_pie) || ToolChain.isPIEDefault());
147 if (Args.hasArg(options::OPT_static)) {
150 if (Args.hasArg(options::OPT_rdynamic))
152 if (Args.hasArg(options::OPT_shared)) {
227 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
229 if (!Args.hasArg(options::OPT_shared)) {
230 if (Args.hasArg(options::OPT_pg))
243 if (Args.hasArg(options::OPT_static))
245 else if (Args.hasArg(options::OPT_shared) || IsPIE)
272 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
274 bool StaticOpenMP = Args.hasArg(options::OPT_static_openmp) &&
275 !Args.hasArg(options::OPT_static);
281 if (Args.hasArg(options::OPT_pg))
292 if (Args.hasArg(options::OPT_pg))
296 if (Args.hasArg(options::OPT_static)) {
298 } else if (Args.hasArg(options::OPT_pg)) {
306 if (Args.hasArg(options::OPT_pthread)) {
307 if (Args.hasArg(options::OPT_pg))
313 if (Args.hasArg(options::OPT_pg)) {
314 if (Args.hasArg(options::OPT_shared))
324 if (Args.hasArg(options::OPT_static)) {
326 } else if (Args.hasArg(options::OPT_pg)) {
335 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
336 if (Args.hasArg(options::OPT_shared) || IsPIE)
387 bool Profiling = Args.hasArg(options::OPT_pg);
tools/clang/lib/Driver/ToolChains/Fuchsia.cpp 61 if (!Args.hasArg(options::OPT_shared) && !Args.hasArg(options::OPT_r))
61 if (!Args.hasArg(options::OPT_shared) && !Args.hasArg(options::OPT_r))
64 if (Args.hasArg(options::OPT_rdynamic))
67 if (Args.hasArg(options::OPT_s))
70 if (Args.hasArg(options::OPT_r)) {
79 if (Args.hasArg(options::OPT_static))
81 else if (Args.hasArg(options::OPT_shared))
86 if (!Args.hasArg(options::OPT_shared)) {
98 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
99 if (!Args.hasArg(options::OPT_shared)) {
120 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
121 if (Args.hasArg(options::OPT_static))
126 bool OnlyLibstdcxxStatic = Args.hasArg(options::OPT_static_libstdcxx) &&
127 !Args.hasArg(options::OPT_static);
148 if (Args.hasArg(options::OPT_pthread) ||
149 Args.hasArg(options::OPT_pthreads))
152 if (Args.hasArg(options::OPT_fsplit_stack))
155 if (!Args.hasArg(options::OPT_nolibc))
270 if (DriverArgs.hasArg(options::OPT_nostdinc))
273 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
279 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
304 if (DriverArgs.hasArg(options::OPT_nostdlibinc) ||
305 DriverArgs.hasArg(options::OPT_nostdincxx))
tools/clang/lib/Driver/ToolChains/Gnu.cpp 313 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_static) ||
313 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_static) ||
314 Args.hasArg(options::OPT_r) || Args.hasArg(options::OPT_static_pie))
314 Args.hasArg(options::OPT_r) || Args.hasArg(options::OPT_static_pie))
326 bool HasStaticPIE = Args.hasArg(options::OPT_static_pie);
329 if (HasStaticPIE && Args.hasArg(options::OPT_nopie)) {
340 return Args.hasArg(options::OPT_static) &&
341 !Args.hasArg(options::OPT_static_pie);
394 if (Args.hasArg(options::OPT_rdynamic))
397 if (Args.hasArg(options::OPT_s))
440 } else if (Args.hasArg(options::OPT_shared)) {
445 if (Args.hasArg(options::OPT_rdynamic))
448 if (!Args.hasArg(options::OPT_shared) && !IsStaticPIE) {
459 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
462 if (!Args.hasArg(options::OPT_shared)) {
463 if (Args.hasArg(options::OPT_pg))
493 else if (Args.hasArg(options::OPT_shared))
519 if (Args.hasArg(options::OPT_Z_Xlinker__no_demangle))
529 !Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
531 bool OnlyLibstdcxxStatic = Args.hasArg(options::OPT_static_libstdcxx) &&
532 !Args.hasArg(options::OPT_static);
544 if (!Args.hasArg(options::OPT_nostdlib)) {
545 if (!Args.hasArg(options::OPT_nodefaultlibs)) {
555 bool WantPthread = Args.hasArg(options::OPT_pthread) ||
556 Args.hasArg(options::OPT_pthreads);
559 bool StaticOpenMP = Args.hasArg(options::OPT_static_openmp) &&
560 !Args.hasArg(options::OPT_static);
576 if (Args.hasArg(options::OPT_fsplit_stack))
579 if (!Args.hasArg(options::OPT_nolibc))
599 if (!Args.hasArg(options::OPT_nostartfiles) && !IsIAMCU) {
611 if (Args.hasArg(options::OPT_shared))
803 if (ABIName != "64" && !Args.hasArg(options::OPT_mno_abicalls))
888 if (Args.hasArg(options::OPT_gsplit_dwarf) &&
2604 if (DriverArgs.hasArg(options::OPT_nostdlibinc) ||
2605 DriverArgs.hasArg(options::OPT_nostdincxx))
tools/clang/lib/Driver/ToolChains/HIP.cpp 303 if (!DriverArgs.hasArg(options::OPT_fvisibility_EQ,
309 if (DriverArgs.hasArg(options::OPT_nogpulib))
335 if (DriverArgs.hasArg(options::OPT_fcuda_flush_denormals_to_zero))
tools/clang/lib/Driver/ToolChains/Hexagon.cpp 205 bool IsStatic = Args.hasArg(options::OPT_static);
206 bool IsShared = Args.hasArg(options::OPT_shared);
207 bool IsPIE = Args.hasArg(options::OPT_pie);
208 bool IncStdLib = !Args.hasArg(options::OPT_nostdlib);
209 bool IncStartFiles = !Args.hasArg(options::OPT_nostartfiles);
210 bool IncDefLibs = !Args.hasArg(options::OPT_nodefaultlibs);
226 if (Args.hasArg(options::OPT_s))
229 if (Args.hasArg(options::OPT_r))
436 bool HasPIC = Args.hasArg(options::OPT_fpic, options::OPT_fPIC);
438 bool HasG0 = Args.hasArg(options::OPT_shared);
515 if (DriverArgs.hasArg(options::OPT_ffixed_r19)) {
527 if (DriverArgs.hasArg(options::OPT_nostdinc) ||
528 DriverArgs.hasArg(options::OPT_nostdlibinc))
tools/clang/lib/Driver/ToolChains/Hurd.cpp 126 if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc))
129 if (!DriverArgs.hasArg(options::OPT_nostdlibinc))
132 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
138 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
tools/clang/lib/Driver/ToolChains/Linux.cpp 655 if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc))
658 if (!DriverArgs.hasArg(options::OPT_nostdlibinc))
663 if (!DriverArgs.hasArg(options::OPT_nobuiltininc) &&
664 (!getTriple().isMusl() || DriverArgs.hasArg(options::OPT_nostdlibinc)))
667 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
864 if (!DriverArgs.hasArg(options::OPT_nobuiltininc) && getTriple().isMusl())
1041 if ((!Args.hasArg(options::OPT_coverage)) &&
1042 (!Args.hasArg(options::OPT_ftest_coverage)))
tools/clang/lib/Driver/ToolChains/MSP430.cpp 151 if (DriverArgs.hasArg(options::OPT_nostdinc) ||
152 DriverArgs.hasArg(options::OPT_nostdlibinc))
199 if (!Args.hasArg(options::OPT_T)) {
207 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
217 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
224 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
tools/clang/lib/Driver/ToolChains/MSVC.cpp 320 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles) &&
352 if (!C.getDriver().IsCLMode() && Args.hasArg(options::OPT_L))
358 if (Args.hasArg(options::OPT_g_Group, options::OPT__SLASH_Z7,
371 bool DLL = Args.hasArg(options::OPT__SLASH_LD, options::OPT__SLASH_LDd,
382 if (!Args.hasArg(options::OPT_shared))
396 Args.hasArg(options::OPT__SLASH_MD, options::OPT__SLASH_MDd)) {
459 if (!Args.hasArg(options::OPT_nostdlib)) {
638 if (!Args.hasArg(options::OPT_fwritable_strings))
661 if (Args.hasArg(options::OPT_fsyntax_only))
663 if (Args.hasArg(options::OPT_g_Flag, options::OPT_gline_tables_only,
1230 if (DriverArgs.hasArg(options::OPT_nostdinc))
1233 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
1242 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
tools/clang/lib/Driver/ToolChains/MinGW.cpp 54 if (Args.hasArg(options::OPT_gsplit_dwarf))
61 if (Args.hasArg(options::OPT_mthreads))
68 bool Static = Args.hasArg(options::OPT_static_libgcc) ||
69 Args.hasArg(options::OPT_static);
70 bool Shared = Args.hasArg(options::OPT_shared);
114 if (Args.hasArg(options::OPT_s))
137 if (Args.hasArg(options::OPT_mwindows)) {
140 } else if (Args.hasArg(options::OPT_mconsole)) {
145 if (Args.hasArg(options::OPT_mdll))
147 else if (Args.hasArg(options::OPT_shared))
149 if (Args.hasArg(options::OPT_static))
153 if (Args.hasArg(options::OPT_mdll) || Args.hasArg(options::OPT_shared)) {
153 if (Args.hasArg(options::OPT_mdll) || Args.hasArg(options::OPT_shared)) {
173 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
174 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_mdll)) {
174 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_mdll)) {
177 if (Args.hasArg(options::OPT_municode))
182 if (Args.hasArg(options::OPT_pg))
194 bool OnlyLibstdcxxStatic = Args.hasArg(options::OPT_static_libstdcxx) &&
195 !Args.hasArg(options::OPT_static);
211 if (!Args.hasArg(options::OPT_nostdlib)) {
212 if (!Args.hasArg(options::OPT_nodefaultlibs)) {
213 if (Args.hasArg(options::OPT_static))
216 if (Args.hasArg(options::OPT_fstack_protector) ||
217 Args.hasArg(options::OPT_fstack_protector_strong) ||
218 Args.hasArg(options::OPT_fstack_protector_all)) {
243 if (Args.hasArg(options::OPT_pg))
246 if (Args.hasArg(options::OPT_pthread))
273 if (Args.hasArg(options::OPT_mwindows)) {
283 if (Args.hasArg(options::OPT_static))
289 if (!Args.hasArg(options::OPT_nostartfiles)) {
519 if (DriverArgs.hasArg(options::OPT_nostdinc))
522 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
528 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
544 if (DriverArgs.hasArg(options::OPT_nostdlibinc) ||
545 DriverArgs.hasArg(options::OPT_nostdincxx))
tools/clang/lib/Driver/ToolChains/Minix.cpp 57 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
72 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
80 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
81 if (Args.hasArg(options::OPT_pthread))
tools/clang/lib/Driver/ToolChains/MipsLinux.cpp 43 if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc))
48 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
54 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
tools/clang/lib/Driver/ToolChains/Myriad.cpp 57 Args.hasArg(options::OPT_fno_split_dwarf_inlining); // Claim it if present.
129 !Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles);
131 !Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs);
149 if (Args.hasArg(options::OPT_s)) // Pass the 'strip' option.
240 if (!DriverArgs.hasArg(clang::driver::options::OPT_nostdinc))
tools/clang/lib/Driver/ToolChains/NaCl.cpp 60 !Args.hasArg(options::OPT_dynamic) && !Args.hasArg(options::OPT_shared);
60 !Args.hasArg(options::OPT_dynamic) && !Args.hasArg(options::OPT_shared);
75 if (Args.hasArg(options::OPT_rdynamic))
78 if (Args.hasArg(options::OPT_s))
103 else if (Args.hasArg(options::OPT_shared))
108 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
109 if (!Args.hasArg(options::OPT_shared))
116 else if (Args.hasArg(options::OPT_shared))
128 if (Args.hasArg(options::OPT_Z_Xlinker__no_demangle))
134 !Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
137 Args.hasArg(options::OPT_static_libstdcxx) && !IsStatic;
147 if (!Args.hasArg(options::OPT_nostdlib)) {
148 if (!Args.hasArg(options::OPT_nodefaultlibs)) {
154 if (Args.hasArg(options::OPT_pthread) ||
155 Args.hasArg(options::OPT_pthreads) || D.CCCIsCXX()) {
183 if (!Args.hasArg(options::OPT_nostartfiles)) {
185 if (Args.hasArg(options::OPT_shared))
257 if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc))
260 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
266 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
tools/clang/lib/Driver/ToolChains/NetBSD.cpp 123 if (Args.hasArg(options::OPT_static)) {
125 if (Args.hasArg(options::OPT_pie)) {
130 if (Args.hasArg(options::OPT_rdynamic))
132 if (Args.hasArg(options::OPT_shared)) {
231 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
232 if (!Args.hasArg(options::OPT_shared)) {
238 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie)) {
238 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie)) {
291 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
293 bool StaticOpenMP = Args.hasArg(options::OPT_static_openmp) &&
294 !Args.hasArg(options::OPT_static);
306 if (Args.hasArg(options::OPT_pthread))
311 if (Args.hasArg(options::OPT_static)) {
327 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
328 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
328 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
347 if (!Args.hasArg(options::OPT_nostdlib)) {
tools/clang/lib/Driver/ToolChains/OpenBSD.cpp 118 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_shared)) {
124 if (Args.hasArg(options::OPT_static)) {
127 if (Args.hasArg(options::OPT_rdynamic))
130 if (Args.hasArg(options::OPT_shared)) {
138 if (Args.hasArg(options::OPT_pie))
140 if (Args.hasArg(options::OPT_nopie) || Args.hasArg(options::OPT_pg))
140 if (Args.hasArg(options::OPT_nopie) || Args.hasArg(options::OPT_pg))
150 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
153 if (!Args.hasArg(options::OPT_shared)) {
154 if (Args.hasArg(options::OPT_pg))
156 else if (Args.hasArg(options::OPT_static) &&
157 !Args.hasArg(options::OPT_nopie))
181 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
185 if (Args.hasArg(options::OPT_pg))
202 if (Args.hasArg(options::OPT_pthread)) {
203 if (!Args.hasArg(options::OPT_shared) && Args.hasArg(options::OPT_pg))
203 if (!Args.hasArg(options::OPT_shared) && Args.hasArg(options::OPT_pg))
209 if (!Args.hasArg(options::OPT_shared)) {
210 if (Args.hasArg(options::OPT_pg))
219 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
221 if (!Args.hasArg(options::OPT_shared))
259 bool Profiling = Args.hasArg(options::OPT_pg);
tools/clang/lib/Driver/ToolChains/PPCLinux.cpp 19 if (!DriverArgs.hasArg(clang::driver::options::OPT_nostdinc) &&
20 !DriverArgs.hasArg(options::OPT_nobuiltininc)) {
tools/clang/lib/Driver/ToolChains/PS4CPU.cpp 40 Args.hasArg(options::OPT_fcreate_profile) ||
41 Args.hasArg(options::OPT_coverage)))
108 if (Args.hasArg(options::OPT_pie))
111 if (Args.hasArg(options::OPT_rdynamic))
113 if (Args.hasArg(options::OPT_shared))
123 if(!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs))
133 if (Args.hasArg(options::OPT_Z_Xlinker__no_demangle))
138 if (Args.hasArg(options::OPT_pthread)) {
168 if (Args.hasArg(options::OPT_pie))
171 if (Args.hasArg(options::OPT_static)) {
174 if (Args.hasArg(options::OPT_rdynamic))
177 if (Args.hasArg(options::OPT_shared)) {
193 if(!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs))
196 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
198 if (!Args.hasArg(options::OPT_shared)) {
199 if (Args.hasArg(options::OPT_pg))
201 else if (Args.hasArg(options::OPT_pie))
212 if (Args.hasArg(options::OPT_static))
214 else if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
214 else if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
230 if (Args.hasArg(options::OPT_Z_Xlinker__no_demangle))
235 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
242 if (Args.hasArg(options::OPT_pg))
249 if (Args.hasArg(options::OPT_pg))
253 if (Args.hasArg(options::OPT_static)) {
255 } else if (Args.hasArg(options::OPT_pg)) {
263 if (Args.hasArg(options::OPT_pthread)) {
264 if (Args.hasArg(options::OPT_pg))
270 if (Args.hasArg(options::OPT_pg)) {
271 if (Args.hasArg(options::OPT_shared))
274 if (Args.hasArg(options::OPT_static)) {
285 if (Args.hasArg(options::OPT_static)) {
296 if (Args.hasArg(options::OPT_static)) {
298 } else if (Args.hasArg(options::OPT_pg)) {
307 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
308 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
308 if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_pie))
346 PS4Linker = !Args.hasArg(options::OPT_shared);
357 if (Args.hasArg(clang::driver::options::OPT_static))
389 if (!Args.hasArg(options::OPT_nostdinc) &&
390 !Args.hasArg(options::OPT_nostdlibinc) &&
391 !Args.hasArg(options::OPT_isysroot) &&
392 !Args.hasArg(options::OPT__sysroot_EQ) &&
400 if (!Args.hasArg(options::OPT_nostdlib) &&
401 !Args.hasArg(options::OPT_nodefaultlibs) &&
402 !Args.hasArg(options::OPT__sysroot_EQ) && !Args.hasArg(options::OPT_E) &&
402 !Args.hasArg(options::OPT__sysroot_EQ) && !Args.hasArg(options::OPT_E) &&
403 !Args.hasArg(options::OPT_c) && !Args.hasArg(options::OPT_S) &&
403 !Args.hasArg(options::OPT_c) && !Args.hasArg(options::OPT_S) &&
404 !Args.hasArg(options::OPT_emit_ast) &&
tools/clang/lib/Driver/ToolChains/RISCVToolchain.cpp 53 if (DriverArgs.hasArg(options::OPT_nostdinc))
56 if (!DriverArgs.hasArg(options::OPT_nostdlibinc)) {
111 !Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles);
128 if (!Args.hasArg(options::OPT_nostdlib) &&
129 !Args.hasArg(options::OPT_nodefaultlibs)) {
tools/clang/lib/Driver/ToolChains/Solaris.cpp 57 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_shared)) {
62 if (Args.hasArg(options::OPT_static)) {
67 if (Args.hasArg(options::OPT_shared)) {
84 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
85 if (!Args.hasArg(options::OPT_shared))
124 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
127 if (Args.hasArg(options::OPT_fstack_protector) ||
128 Args.hasArg(options::OPT_fstack_protector_strong) ||
129 Args.hasArg(options::OPT_fstack_protector_all)) {
136 if (!Args.hasArg(options::OPT_shared)) {
144 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles)) {
225 if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc))
228 if (!DriverArgs.hasArg(options::OPT_nostdlibinc))
231 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
237 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
tools/clang/lib/Driver/ToolChains/WebAssembly.cpp 64 if (Args.hasArg(options::OPT_s))
71 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles))
76 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
80 if (Args.hasArg(options::OPT_pthread)) {
215 if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc))
220 if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
226 if (DriverArgs.hasArg(options::OPT_nostdlibinc))
252 if (!DriverArgs.hasArg(options::OPT_nostdlibinc) &&
253 !DriverArgs.hasArg(options::OPT_nostdincxx)) {
tools/clang/lib/Driver/ToolChains/XCore.cpp 38 if (Args.hasArg(options::OPT_v))
72 if (Args.hasArg(options::OPT_v))
113 if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc) ||
114 DriverArgs.hasArg(options::OPT_nostdlibinc))
133 if (DriverArgs.hasArg(clang::driver::options::OPT_nostdinc) ||
134 DriverArgs.hasArg(options::OPT_nostdlibinc) ||
135 DriverArgs.hasArg(options::OPT_nostdincxx))
tools/clang/lib/Driver/Types.cpp 329 if (DAL.hasArg(options::OPT_c))
tools/clang/lib/Frontend/CompilerInvocation.cpp 125 if (IK.getLanguage() == Language::OpenCL && !Args.hasArg(OPT_cl_opt_disable))
287 Opts.ShowCheckerHelp = Args.hasArg(OPT_analyzer_checker_help);
288 Opts.ShowCheckerHelpAlpha = Args.hasArg(OPT_analyzer_checker_help_alpha);
290 Args.hasArg(OPT_analyzer_checker_help_developer);
292 Opts.ShowCheckerOptionList = Args.hasArg(OPT_analyzer_checker_option_help);
294 Args.hasArg(OPT_analyzer_checker_option_help_alpha);
296 Args.hasArg(OPT_analyzer_checker_option_help_developer);
298 Opts.ShowConfigOptionsList = Args.hasArg(OPT_analyzer_config_help);
299 Opts.ShowEnabledCheckerList = Args.hasArg(OPT_analyzer_list_enabled_checkers);
306 Opts.DisableAllCheckers = Args.hasArg(OPT_analyzer_disable_all_checks);
309 Args.hasArg(OPT_analyzer_viz_egraph_graphviz);
311 Opts.NoRetryExhausted = Args.hasArg(OPT_analyzer_disable_retry_exhausted);
312 Opts.AnalyzerWerror = Args.hasArg(OPT_analyzer_werror);
313 Opts.AnalyzeAll = Args.hasArg(OPT_analyzer_opt_analyze_headers);
314 Opts.AnalyzerDisplayProgress = Args.hasArg(OPT_analyzer_display_progress);
316 Args.hasArg(OPT_analyzer_opt_analyze_nested_blocks);
318 Opts.UnoptimizedCFG = Args.hasArg(OPT_analysis_UnoptimizedCFG);
319 Opts.TrimGraph = Args.hasArg(OPT_trim_egraph);
322 Opts.PrintStats = Args.hasArg(OPT_analyzer_stats);
514 Opts.NoNSAllocReallocError = Args.hasArg(OPT_migrator_no_nsalloc_error);
515 Opts.NoFinalizeRemoval = Args.hasArg(OPT_migrator_no_finalize_removal);
521 Opts.ParseAllComments = Args.hasArg(OPT_fparse_all_comments);
756 Opts.DebugColumnInfo = Args.hasArg(OPT_dwarf_column_info);
757 Opts.EmitCodeView = Args.hasArg(OPT_gcodeview);
758 Opts.CodeViewGHash = Args.hasArg(OPT_gcodeview_ghash);
759 Opts.MacroDebugInfo = Args.hasArg(OPT_debug_info_macro);
760 Opts.WholeProgramVTables = Args.hasArg(OPT_fwhole_program_vtables);
762 Args.hasArg(OPT_fvirtual_function_elimination);
763 Opts.LTOVisibilityPublicStd = Args.hasArg(OPT_flto_visibility_public_std);
766 Opts.SplitDwarfInlining = !Args.hasArg(OPT_fno_split_dwarf_inlining);
767 Opts.DebugTypeExtRefs = Args.hasArg(OPT_dwarf_ext_refs);
768 Opts.DebugExplicitImport = Args.hasArg(OPT_dwarf_explicit_import);
769 Opts.DebugFwdTemplateParams = Args.hasArg(OPT_debug_forward_template_params);
770 Opts.EmbedSource = Args.hasArg(OPT_gembed_source);
779 Opts.DisableLLVMPasses = Args.hasArg(OPT_disable_llvm_passes);
780 Opts.DisableLifetimeMarkers = Args.hasArg(OPT_disable_lifetimemarkers);
790 Opts.EnableDebugEntryValues = Args.hasArg(OPT_femit_debug_entry_values);
792 Opts.DisableO0ImplyOptNone = Args.hasArg(OPT_disable_O0_optnone);
793 Opts.DisableRedZone = Args.hasArg(OPT_disable_red_zone);
794 Opts.IndirectTlsSegRefs = Args.hasArg(OPT_mno_tls_direct_seg_refs);
795 Opts.ForbidGuardVariables = Args.hasArg(OPT_fforbid_guard_variables);
796 Opts.UseRegisterSizedBitfieldAccess = Args.hasArg(
798 Opts.RelaxedAliasing = Args.hasArg(OPT_relaxed_aliasing);
799 Opts.StructPathTBAA = !Args.hasArg(OPT_no_struct_path_tbaa);
800 Opts.NewStructPathTBAA = !Args.hasArg(OPT_no_struct_path_tbaa) &&
801 Args.hasArg(OPT_new_struct_path_tbaa);
807 Opts.MergeAllConstants = Args.hasArg(OPT_fmerge_all_constants);
808 Opts.NoCommon = Args.hasArg(OPT_fno_common);
809 Opts.NoImplicitFloat = Args.hasArg(OPT_no_implicit_float);
811 Opts.SimplifyLibCalls = !(Args.hasArg(OPT_fno_builtin) ||
812 Args.hasArg(OPT_ffreestanding));
818 Opts.RerollLoops = Args.hasArg(OPT_freroll_loops);
820 Opts.DisableIntegratedAS = Args.hasArg(OPT_fno_integrated_as);
821 Opts.Autolink = !Args.hasArg(OPT_fno_autolink);
826 Args.hasArg(OPT_ggnu_pubnames)
828 : Args.hasArg(OPT_gpubnames)
831 Opts.DebugRangesBaseAddress = Args.hasArg(OPT_fdebug_ranges_base_address);
850 Opts.DumpCoverageMapping = Args.hasArg(OPT_dump_coverage_mapping);
851 Opts.AsmVerbose = Args.hasArg(OPT_masm_verbose);
852 Opts.PreserveAsmComments = !Args.hasArg(OPT_fno_preserve_as_comments);
853 Opts.AssumeSaneOperatorNew = !Args.hasArg(OPT_fno_assume_sane_operator_new);
854 Opts.ObjCAutoRefCountExceptions = Args.hasArg(OPT_fobjc_arc_exceptions);
855 Opts.CXAAtExit = !Args.hasArg(OPT_fno_use_cxa_atexit);
857 Args.hasArg(OPT_fregister_global_dtors_with_atexit);
858 Opts.CXXCtorDtorAliases = Args.hasArg(OPT_mconstructor_aliases);
884 if (Args.hasArg(OPT_pg))
887 Opts.DisableFree = Args.hasArg(OPT_disable_free);
888 Opts.DiscardValueNames = Args.hasArg(OPT_discard_value_names);
889 Opts.DisableTailCalls = Args.hasArg(OPT_mdisable_tail_calls);
891 Args.hasArg(OPT_fno_escaping_block_tail_calls);
893 Opts.LessPreciseFPMAD = Args.hasArg(OPT_cl_mad_enable) ||
894 Args.hasArg(OPT_cl_unsafe_math_optimizations) ||
895 Args.hasArg(OPT_cl_fast_relaxed_math);
897 Opts.NoInfsFPMath = (Args.hasArg(OPT_menable_no_infinities) ||
898 Args.hasArg(OPT_cl_finite_math_only) ||
899 Args.hasArg(OPT_cl_fast_relaxed_math));
900 Opts.NoNaNsFPMath = (Args.hasArg(OPT_menable_no_nans) ||
901 Args.hasArg(OPT_cl_unsafe_math_optimizations) ||
902 Args.hasArg(OPT_cl_finite_math_only) ||
903 Args.hasArg(OPT_cl_fast_relaxed_math));
904 Opts.NoSignedZeros = (Args.hasArg(OPT_fno_signed_zeros) ||
905 Args.hasArg(OPT_cl_no_signed_zeros) ||
906 Args.hasArg(OPT_cl_unsafe_math_optimizations) ||
907 Args.hasArg(OPT_cl_fast_relaxed_math));
908 Opts.Reassociate = Args.hasArg(OPT_mreassociate);
909 Opts.FlushDenorm = Args.hasArg(OPT_cl_denorms_are_zero) ||
910 (Args.hasArg(OPT_fcuda_is_device) &&
911 Args.hasArg(OPT_fcuda_flush_denormals_to_zero));
913 Args.hasArg(OPT_cl_fp32_correctly_rounded_divide_sqrt);
915 Args.hasArg(OPT_cl_uniform_work_group_size);
917 Opts.ReciprocalMath = Args.hasArg(OPT_freciprocal_math);
918 Opts.NoTrappingMath = Args.hasArg(OPT_fno_trapping_math);
920 !Args.hasArg(OPT_fno_strict_float_cast_overflow);
922 Opts.NoZeroInitializedInBSS = Args.hasArg(OPT_mno_zero_initialized_in_bss);
924 Opts.NoExecStack = Args.hasArg(OPT_mno_exec_stack);
925 Opts.FatalWarnings = Args.hasArg(OPT_massembler_fatal_warnings);
926 Opts.NoWarn = Args.hasArg(OPT_massembler_no_warn);
927 Opts.EnableSegmentedStacks = Args.hasArg(OPT_split_stacks);
928 Opts.RelaxAll = Args.hasArg(OPT_mrelax_all);
930 Args.hasArg(OPT_mincremental_linker_compatible);
932 Args.hasArg(OPT_mpie_copy_relocations);
933 Opts.NoPLT = Args.hasArg(OPT_fno_plt);
934 Opts.SaveTempLabels = Args.hasArg(OPT_msave_temp_labels);
935 Opts.NoDwarfDirectoryAsm = Args.hasArg(OPT_fno_dwarf_directory_asm);
936 Opts.SoftFloat = Args.hasArg(OPT_msoft_float);
937 Opts.StrictEnums = Args.hasArg(OPT_fstrict_enums);
938 Opts.StrictReturn = !Args.hasArg(OPT_fno_strict_return);
939 Opts.StrictVTablePointers = Args.hasArg(OPT_fstrict_vtable_pointers);
940 Opts.ForceEmitVTables = Args.hasArg(OPT_fforce_emit_vtables);
941 Opts.UnsafeFPMath = Args.hasArg(OPT_menable_unsafe_fp_math) ||
942 Args.hasArg(OPT_cl_unsafe_math_optimizations) ||
943 Args.hasArg(OPT_cl_fast_relaxed_math);
944 Opts.UnwindTables = Args.hasArg(OPT_munwind_tables);
952 Opts.UseInitArray = Args.hasArg(OPT_fuse_init_array);
963 Opts.MergeFunctions = Args.hasArg(OPT_fmerge_functions);
965 Opts.NoUseJumpTables = Args.hasArg(OPT_fno_jump_tables);
967 Opts.NullPointerIsValid = Args.hasArg(OPT_fno_delete_null_pointer_checks);
969 Opts.ProfileSampleAccurate = Args.hasArg(OPT_fprofile_sample_accurate);
971 Opts.PrepareForLTO = Args.hasArg(OPT_flto, OPT_flto_EQ);
981 Opts.EnableSplitLTOUnit = Args.hasArg(OPT_fsplit_lto_unit);
996 Opts.MSVolatile = Args.hasArg(OPT_fms_volatile);
998 Opts.VectorizeLoop = Args.hasArg(OPT_vectorize_loops);
999 Opts.VectorizeSLP = Args.hasArg(OPT_vectorize_slp);
1004 Opts.VerifyModule = !Args.hasArg(OPT_disable_llvm_verifier);
1006 Opts.ControlFlowGuardNoChecks = Args.hasArg(OPT_cfguard_no_checks);
1007 Opts.ControlFlowGuard = Args.hasArg(OPT_cfguard);
1009 Opts.DisableGCov = Args.hasArg(OPT_test_coverage);
1010 Opts.EmitGcovArcs = Args.hasArg(OPT_femit_coverage_data);
1011 Opts.EmitGcovNotes = Args.hasArg(OPT_femit_coverage_notes);
1015 Opts.CoverageExtraChecksum = Args.hasArg(OPT_coverage_cfg_checksum);
1017 Args.hasArg(OPT_coverage_no_function_names_in_data);
1023 Args.hasArg(OPT_coverage_exit_block_before_body);
1024 if (Args.hasArg(OPT_coverage_version_EQ)) {
1075 Opts.PreserveVec3Type = Args.hasArg(OPT_fpreserve_vec3_type);
1076 Opts.InstrumentFunctions = Args.hasArg(OPT_finstrument_functions);
1078 Args.hasArg(OPT_finstrument_functions_after_inlining);
1080 Args.hasArg(OPT_finstrument_function_entry_bare);
1083 Args.hasArg(OPT_fxray_instrument);
1085 Args.hasArg(OPT_fxray_always_emit_customevents);
1087 Args.hasArg(OPT_fxray_always_emit_typedevents);
1100 Opts.InstrumentForProfiling = Args.hasArg(OPT_pg);
1101 Opts.CallFEntry = Args.hasArg(OPT_mfentry);
1102 Opts.EmitOpenCLArgMetadata = Args.hasArg(OPT_cl_kernel_arg_info);
1134 Opts.RelaxELFRelocations = Args.hasArg(OPT_mrelax_relocations);
1152 Args.hasArg(OPT_fsanitize_coverage_indirect_calls);
1153 Opts.SanitizeCoverageTraceBB = Args.hasArg(OPT_fsanitize_coverage_trace_bb);
1154 Opts.SanitizeCoverageTraceCmp = Args.hasArg(OPT_fsanitize_coverage_trace_cmp);
1155 Opts.SanitizeCoverageTraceDiv = Args.hasArg(OPT_fsanitize_coverage_trace_div);
1156 Opts.SanitizeCoverageTraceGep = Args.hasArg(OPT_fsanitize_coverage_trace_gep);
1158 Args.hasArg(OPT_fsanitize_coverage_8bit_counters);
1159 Opts.SanitizeCoverageTracePC = Args.hasArg(OPT_fsanitize_coverage_trace_pc);
1161 Args.hasArg(OPT_fsanitize_coverage_trace_pc_guard);
1162 Opts.SanitizeCoverageNoPrune = Args.hasArg(OPT_fsanitize_coverage_no_prune);
1164 Args.hasArg(OPT_fsanitize_coverage_inline_8bit_counters);
1165 Opts.SanitizeCoveragePCTable = Args.hasArg(OPT_fsanitize_coverage_pc_table);
1167 Args.hasArg(OPT_fsanitize_coverage_stack_depth);
1174 Opts.SanitizeMinimalRuntime = Args.hasArg(OPT_fsanitize_minimal_runtime);
1175 Opts.SanitizeCfiCrossDso = Args.hasArg(OPT_fsanitize_cfi_cross_dso);
1177 Args.hasArg(OPT_fsanitize_cfi_icall_generalize_pointers);
1179 Args.hasArg(OPT_fsanitize_cfi_canonical_jump_tables);
1180 Opts.SanitizeStats = Args.hasArg(OPT_fsanitize_stats);
1194 Args.hasArg(OPT_fsanitize_address_globals_dead_stripping);
1202 Opts.StackRealignment = Args.hasArg(OPT_mstackrealign);
1217 Opts.NoStackArgProbe = Args.hasArg(OPT_mno_stack_arg_probe);
1236 if (Args.hasArg(OPT_fno_objc_convert_messages_to_runtime_calls))
1320 Args.hasArg(options::OPT_fdiagnostics_show_hotness);
1362 Opts.Backchain = Args.hasArg(OPT_mbackchain);
1369 Opts.Addrsig = Args.hasArg(OPT_faddrsig);
1401 Opts.BranchTargetEnforcement = Args.hasArg(OPT_mbranch_target_enforce);
1403 Opts.KeepStaticConsts = Args.hasArg(OPT_fkeep_static_consts);
1405 Opts.SpeculativeLoadHardening = Args.hasArg(OPT_mspeculative_load_hardening);
1420 Opts.IncludeSystemHeaders = Args.hasArg(OPT_sys_header_deps);
1421 Opts.IncludeModuleFiles = Args.hasArg(OPT_module_file_deps);
1422 Opts.UsePhonyTargets = Args.hasArg(OPT_MP);
1423 Opts.ShowHeaderIncludes = Args.hasArg(OPT_H);
1425 Opts.AddMissingHeaderDeps = Args.hasArg(OPT_MG);
1426 if (Args.hasArg(OPT_show_includes)) {
1430 if (Args.hasArg(options::OPT_E) || Args.hasArg(options::OPT_P))
1430 if (Args.hasArg(options::OPT_E) || Args.hasArg(options::OPT_P))
1440 if (Args.hasArg(OPT_MV))
1516 Opts.IgnoreWarnings = Args.hasArg(OPT_w);
1517 Opts.NoRewriteMacros = Args.hasArg(OPT_Wno_rewrite_macros);
1518 Opts.Pedantic = Args.hasArg(OPT_pedantic);
1519 Opts.PedanticErrors = Args.hasArg(OPT_pedantic_errors);
1520 Opts.ShowCarets = !Args.hasArg(OPT_fno_caret_diagnostics);
1525 Opts.ShowFixits = !Args.hasArg(OPT_fno_diagnostics_fixit_info);
1526 Opts.ShowLocation = !Args.hasArg(OPT_fno_show_source_location);
1527 Opts.AbsolutePath = Args.hasArg(OPT_fdiagnostics_absolute_paths);
1532 llvm::sys::Process::UseANSIEscapeCodes(Args.hasArg(OPT_fansi_escape_codes));
1590 Opts.ShowSourceRanges = Args.hasArg(OPT_fdiagnostics_print_source_range_info);
1591 Opts.ShowParseableFixits = Args.hasArg(OPT_fdiagnostics_parseable_fixits);
1592 Opts.ShowPresumedLoc = !Args.hasArg(OPT_fno_diagnostics_use_presumed_location);
1593 Opts.VerifyDiagnostics = Args.hasArg(OPT_verify) || Args.hasArg(OPT_verify_EQ);
1593 Opts.VerifyDiagnostics = Args.hasArg(OPT_verify) || Args.hasArg(OPT_verify_EQ);
1595 if (Args.hasArg(OPT_verify))
1609 if (Args.hasArg(OPT_verify_ignore_unexpected))
1612 Opts.ElideType = !Args.hasArg(OPT_fno_elide_type);
1613 Opts.ShowTemplateTree = Args.hasArg(OPT_fdiagnostics_show_template_tree);
1742 Args.hasArg(OPT_interface_stub_version_EQ)
1835 Opts.DisableFree = Args.hasArg(OPT_disable_free);
1839 Opts.RelocatablePCH = Args.hasArg(OPT_relocatable_pch);
1840 Opts.ShowHelp = Args.hasArg(OPT_help);
1841 Opts.ShowStats = Args.hasArg(OPT_print_stats);
1842 Opts.ShowTimers = Args.hasArg(OPT_ftime_report);
1843 Opts.PrintSupportedCPUs = Args.hasArg(OPT_print_supported_cpus);
1844 Opts.TimeTrace = Args.hasArg(OPT_ftime_trace);
1847 Opts.ShowVersion = Args.hasArg(OPT_version);
1850 Opts.FixWhatYouCan = Args.hasArg(OPT_fix_what_you_can);
1851 Opts.FixOnlyWarnings = Args.hasArg(OPT_fix_only_warnings);
1852 Opts.FixAndRecompile = Args.hasArg(OPT_fixit_recompile);
1853 Opts.FixToTemporaries = Args.hasArg(OPT_fixit_to_temp);
1854 Opts.ASTDumpDecls = Args.hasArg(OPT_ast_dump, OPT_ast_dump_EQ);
1855 Opts.ASTDumpAll = Args.hasArg(OPT_ast_dump_all, OPT_ast_dump_all_EQ);
1857 Opts.ASTDumpLookups = Args.hasArg(OPT_ast_dump_lookups);
1858 Opts.UseGlobalModuleIndex = !Args.hasArg(OPT_fno_modules_global_index);
1868 Opts.ModulesEmbedAllFiles = Args.hasArg(OPT_fmodules_embed_all_files);
1869 Opts.IncludeTimestamps = !Args.hasArg(OPT_fno_pch_timestamp);
1872 = Args.hasArg(OPT_code_completion_macros);
1874 = Args.hasArg(OPT_code_completion_patterns);
1876 = !Args.hasArg(OPT_no_code_completion_globals);
1878 = !Args.hasArg(OPT_no_code_completion_ns_level_decls);
1880 = Args.hasArg(OPT_code_completion_brief_comments);
1882 = Args.hasArg(OPT_code_completion_with_fixits);
1910 = Args.hasArg(OPT_arcmt_migrate_emit_arc_errors);
1912 if (Args.hasArg(OPT_objcmt_migrate_literals))
1914 if (Args.hasArg(OPT_objcmt_migrate_subscripting))
1916 if (Args.hasArg(OPT_objcmt_migrate_property_dot_syntax))
1918 if (Args.hasArg(OPT_objcmt_migrate_property))
1920 if (Args.hasArg(OPT_objcmt_migrate_readonly_property))
1922 if (Args.hasArg(OPT_objcmt_migrate_readwrite_property))
1924 if (Args.hasArg(OPT_objcmt_migrate_annotation))
1926 if (Args.hasArg(OPT_objcmt_returns_innerpointer_property))
1928 if (Args.hasArg(OPT_objcmt_migrate_instancetype))
1930 if (Args.hasArg(OPT_objcmt_migrate_nsmacros))
1932 if (Args.hasArg(OPT_objcmt_migrate_protocol_conformance))
1934 if (Args.hasArg(OPT_objcmt_atomic_property))
1936 if (Args.hasArg(OPT_objcmt_ns_nonatomic_iosonly))
1938 if (Args.hasArg(OPT_objcmt_migrate_designated_init))
1940 if (Args.hasArg(OPT_objcmt_migrate_all))
2041 Opts.Verbose = Args.hasArg(OPT_v);
2042 Opts.UseBuiltinIncludes = !Args.hasArg(OPT_nobuiltininc);
2043 Opts.UseStandardSystemIncludes = !Args.hasArg(OPT_nostdsysteminc);
2044 Opts.UseStandardCXXIncludes = !Args.hasArg(OPT_nostdincxx);
2069 Opts.DisableModuleHash = Args.hasArg(OPT_fdisable_module_hash);
2070 Opts.ModulesHashContent = Args.hasArg(OPT_fmodules_hash_content);
2071 Opts.ModulesStrictContextHash = Args.hasArg(OPT_fmodules_strict_context_hash);
2073 !Args.hasArg(OPT_fmodules_disable_diagnostic_validation);
2074 Opts.ImplicitModuleMaps = Args.hasArg(OPT_fimplicit_module_maps);
2075 Opts.ModuleMapFileHomeIsCwd = Args.hasArg(OPT_fmodule_map_file_home_is_cwd);
2081 Args.hasArg(OPT_fmodules_validate_once_per_build_session);
2085 Args.hasArg(OPT_fmodules_validate_system_headers);
2087 Args.hasArg(OPT_fvalidate_ast_input_files_content);
2100 Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot);
2100 Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot);
2461 if (Args.hasArg(OPT_fno_dllexport_inlines))
2490 Opts.IncludeDefaultHeader = Args.hasArg(OPT_finclude_default_header);
2491 Opts.DeclareOpenCLBuiltins = Args.hasArg(OPT_fdeclare_opencl_builtins);
2516 if (Args.hasArg(OPT_fno_operator_names))
2519 if (Args.hasArg(OPT_fcuda_is_device))
2522 if (Args.hasArg(OPT_fcuda_allow_variadic_functions))
2525 if (Args.hasArg(OPT_fno_cuda_host_device_constexpr))
2528 if (Opts.CUDAIsDevice && Args.hasArg(OPT_fcuda_approx_transcendentals))
2531 Opts.GPURelocatableDeviceCode = Args.hasArg(OPT_fgpu_rdc);
2532 if (Args.hasArg(OPT_fgpu_allow_device_init)) {
2539 Opts.HIPUseNewLaunchAPI = Args.hasArg(OPT_fhip_new_launch_api);
2548 if (Args.hasArg(OPT_fobjc_gc_only))
2550 else if (Args.hasArg(OPT_fobjc_gc))
2552 else if (Args.hasArg(OPT_fobjc_arc)) {
2562 if (Args.hasArg(OPT_fobjc_runtime_has_weak))
2583 if (Args.hasArg(OPT_fno_objc_infer_related_result_type))
2586 if (Args.hasArg(OPT_fobjc_subscripting_legacy_runtime))
2606 if (Args.hasArg(OPT_fgnu89_inline)) {
2614 if (Args.hasArg(OPT_fapple_kext)) {
2621 if (Args.hasArg(OPT_print_ivar_layout))
2624 if (Args.hasArg(OPT_fno_constant_cfstrings))
2637 if (Args.hasArg(OPT_fzvector))
2640 if (Args.hasArg(OPT_pthread))
2657 if (Args.hasArg(OPT_fvisibility_inlines_hidden))
2660 if (Args.hasArg(OPT_fvisibility_global_new_delete_hidden))
2663 if (Args.hasArg(OPT_fapply_global_visibility_to_externs))
2666 if (Args.hasArg(OPT_ftrapv)) {
2672 else if (Args.hasArg(OPT_fwrapv))
2675 Opts.MSVCCompat = Args.hasArg(OPT_fms_compatibility);
2676 Opts.MicrosoftExt = Opts.MSVCCompat || Args.hasArg(OPT_fms_extensions);
2677 Opts.AsmBlocks = Args.hasArg(OPT_fasm_blocks) || Opts.MicrosoftExt;
2699 Opts.PascalStrings = Args.hasArg(OPT_fpascal_strings);
2701 Opts.Borland = Args.hasArg(OPT_fborland_extensions);
2702 Opts.WritableStrings = Args.hasArg(OPT_fwritable_strings);
2717 if (Args.hasArg(OPT_fno_threadsafe_statics))
2719 Opts.Exceptions = Args.hasArg(OPT_fexceptions);
2720 Opts.ObjCExceptions = Args.hasArg(OPT_fobjc_exceptions);
2721 Opts.CXXExceptions = Args.hasArg(OPT_fcxx_exceptions);
2750 Opts.ExternCNoUnwind = Args.hasArg(OPT_fexternc_nounwind);
2751 Opts.TraditionalCPP = Args.hasArg(OPT_traditional_cpp);
2753 Opts.RTTI = Opts.CPlusPlus && !Args.hasArg(OPT_fno_rtti);
2754 Opts.RTTIData = Opts.RTTI && !Args.hasArg(OPT_fno_rtti_data);
2755 Opts.Blocks = Args.hasArg(OPT_fblocks) || (Opts.OpenCL
2757 Opts.BlocksRuntimeOptional = Args.hasArg(OPT_fblocks_runtime_optional);
2758 Opts.Coroutines = Opts.CPlusPlus2a || Args.hasArg(OPT_fcoroutines_ts);
2766 Opts.ModulesTS = Args.hasArg(OPT_fmodules_ts);
2768 Args.hasArg(OPT_fmodules) || Opts.ModulesTS || Opts.CPlusPlusModules;
2769 Opts.ModulesStrictDeclUse = Args.hasArg(OPT_fmodules_strict_decluse);
2771 Args.hasArg(OPT_fmodules_decluse) || Opts.ModulesStrictDeclUse;
2775 Args.hasArg(OPT_fmodules_local_submodule_visibility) || Opts.ModulesTS ||
2777 Opts.ModulesCodegen = Args.hasArg(OPT_fmodules_codegen);
2778 Opts.ModulesDebugInfo = Args.hasArg(OPT_fmodules_debuginfo);
2780 !Args.hasArg(OPT_fno_modules_search_all) &&
2781 Args.hasArg(OPT_fmodules_search_all);
2782 Opts.ModulesErrorRecovery = !Args.hasArg(OPT_fno_modules_error_recovery);
2783 Opts.ImplicitModules = !Args.hasArg(OPT_fno_implicit_modules);
2784 Opts.CharIsSigned = Opts.OpenCL || !Args.hasArg(OPT_fno_signed_char);
2785 Opts.WChar = Opts.CPlusPlus && !Args.hasArg(OPT_fno_wchar);
2797 Opts.ShortEnums = Args.hasArg(OPT_fshort_enums);
2798 Opts.Freestanding = Args.hasArg(OPT_ffreestanding);
2799 Opts.NoBuiltin = Args.hasArg(OPT_fno_builtin) || Opts.Freestanding;
2802 Opts.NoMathBuiltin = Args.hasArg(OPT_fno_math_builtin);
2804 Args.hasArg(OPT_frelaxed_template_template_args);
2805 Opts.SizedDeallocation = Args.hasArg(OPT_fsized_deallocation);
2810 Opts.AlignedAllocation && Args.hasArg(OPT_aligned_alloc_unavailable);
2819 Opts.ConceptsTS = Args.hasArg(OPT_fconcepts_ts);
2820 Opts.HeinousExtensions = Args.hasArg(OPT_fheinous_gnu_extensions);
2821 Opts.AccessControl = !Args.hasArg(OPT_fno_access_control);
2822 Opts.ElideConstructors = !Args.hasArg(OPT_fno_elide_constructors);
2823 Opts.MathErrno = !Opts.OpenCL && Args.hasArg(OPT_fmath_errno);
2833 Args.hasArg(OPT_fexperimental_new_constant_interpreter);
2835 Args.hasArg(OPT_fforce_experimental_new_constant_interpreter);
2837 Opts.DelayedTemplateParsing = Args.hasArg(OPT_fdelayed_template_parsing);
2840 Opts.MSBitfields = Args.hasArg(OPT_mms_bitfields);
2844 !Args.hasArg(OPT_disable_objc_default_synthesize_properties);
2846 Args.hasArg(OPT_fencode_extended_block_signature);
2847 Opts.EmitAllDecls = Args.hasArg(OPT_femit_all_decls);
2850 Opts.AlignDouble = Args.hasArg(OPT_malign_double);
2851 Opts.LongDoubleSize = Args.hasArg(OPT_mlong_double_128)
2853 : Args.hasArg(OPT_mlong_double_64) ? 64 : 0;
2854 Opts.PPCIEEELongDouble = Args.hasArg(OPT_mabi_EQ_ieeelongdouble);
2856 Opts.ROPI = Args.hasArg(OPT_fropi);
2857 Opts.RWPI = Args.hasArg(OPT_frwpi);
2858 Opts.PIE = Args.hasArg(OPT_pic_is_pie);
2859 Opts.Static = Args.hasArg(OPT_static_define);
2860 Opts.DumpRecordLayoutsSimple = Args.hasArg(OPT_fdump_record_layouts_simple);
2862 || Args.hasArg(OPT_fdump_record_layouts);
2863 Opts.DumpVTableLayouts = Args.hasArg(OPT_fdump_vtable_layouts);
2864 Opts.SpellChecking = !Args.hasArg(OPT_fno_spell_checking);
2865 Opts.NoBitFieldTypeAlign = Args.hasArg(OPT_fno_bitfield_type_align);
2866 Opts.SinglePrecisionConstants = Args.hasArg(OPT_cl_single_precision_constant);
2867 Opts.FastRelaxedMath = Args.hasArg(OPT_cl_fast_relaxed_math);
2868 Opts.HexagonQdsp6Compat = Args.hasArg(OPT_mqdsp6_compat);
2869 Opts.FakeAddressSpaceMap = Args.hasArg(OPT_ffake_address_space_map);
2870 Opts.ParseUnknownAnytype = Args.hasArg(OPT_funknown_anytype);
2871 Opts.DebuggerSupport = Args.hasArg(OPT_fdebugger_support);
2872 Opts.DebuggerCastResultToId = Args.hasArg(OPT_fdebugger_cast_result_to_id);
2873 Opts.DebuggerObjCLiteral = Args.hasArg(OPT_fdebugger_objc_literal);
2874 Opts.ApplePragmaPack = Args.hasArg(OPT_fapple_pragma_pack);
2877 Opts.AppExt = Args.hasArg(OPT_fapplication_extension);
2880 Opts.NativeHalfType |= Args.hasArg(OPT_fnative_half_type);
2881 Opts.NativeHalfArgsAndReturns |= Args.hasArg(OPT_fnative_half_arguments_and_returns);
2884 Opts.HalfArgsAndReturns = Args.hasArg(OPT_fallow_half_arguments_and_returns)
2886 Opts.GNUAsm = !Args.hasArg(OPT_fno_gnu_inline_asm);
2887 Opts.Cmse = Args.hasArg(OPT_mcmse); // Armv8-M Security Extensions
2986 Opts.OpenMP = Args.hasArg(options::OPT_fopenmp) ? 45 : 0;
2993 Opts.OpenMP && !Args.hasArg(options::OPT_fnoopenmp_use_tls);
2995 Opts.OpenMP && Args.hasArg(options::OPT_fopenmp_is_device);
2997 Opts.OpenMPIsDevice || Args.hasArg(options::OPT_fopenmp_targets_EQ);
3043 Args.hasArg(options::OPT_fopenmp_optimistic_collapse) ? 1 : 0;
3074 Opts.SYCLIsDevice = Args.hasArg(options::OPT_fsycl_is_device);
3078 Args.hasArg(options::OPT_fopenmp_cuda_mode);
3083 Args.hasArg(options::OPT_fopenmp_cuda_force_full_runtime);
3106 Opts.FastMath = Args.hasArg(OPT_ffast_math) ||
3107 Args.hasArg(OPT_cl_fast_relaxed_math);
3108 Opts.FiniteMathOnly = Args.hasArg(OPT_ffinite_math_only) ||
3109 Args.hasArg(OPT_cl_finite_math_only) ||
3110 Args.hasArg(OPT_cl_fast_relaxed_math);
3111 Opts.UnsafeFPMath = Args.hasArg(OPT_menable_unsafe_fp_math) ||
3112 Args.hasArg(OPT_cl_unsafe_math_optimizations) ||
3113 Args.hasArg(OPT_cl_fast_relaxed_math);
3128 Args.hasArg(OPT_fretain_comments_from_system_headers);
3185 Opts.ForceEmitVTables = Args.hasArg(OPT_fforce_emit_vtables);
3188 Opts.AllowEditorPlaceholders = Args.hasArg(OPT_fallow_editor_placeholders);
3190 Opts.RegisterStaticDestructors = !Args.hasArg(OPT_fno_cxx_static_destructors);
3225 Opts.CompleteMemberPointers = Args.hasArg(OPT_fcomplete_member_pointers);
3226 Opts.BuildingPCHWithObjectFile = Args.hasArg(OPT_building_pch_with_obj);
3277 Opts.PCHWithHdrStop = Args.hasArg(OPT_pch_through_hdrstop_create) ||
3278 Args.hasArg(OPT_pch_through_hdrstop_use);
3279 Opts.PCHWithHdrStopCreate = Args.hasArg(OPT_pch_through_hdrstop_create);
3281 Opts.UsePredefines = !Args.hasArg(OPT_undef);
3282 Opts.DetailedRecord = Args.hasArg(OPT_detailed_preprocessing_record);
3283 Opts.DisablePCHValidation = Args.hasArg(OPT_fno_validate_pch);
3284 Opts.AllowPCHWithCompilerErrors = Args.hasArg(OPT_fallow_pch_with_errors);
3286 Opts.DumpDeserializedPCHDecls = Args.hasArg(OPT_dump_deserialized_pch_decls);
3364 Opts.SetUpStaticAnalyzer = Args.hasArg(OPT_setup_static_analyzer);
3371 Opts.ShowCPP = !Args.hasArg(OPT_dM);
3375 Opts.ShowComments = Args.hasArg(OPT_C);
3376 Opts.ShowLineMarkers = !Args.hasArg(OPT_P);
3377 Opts.ShowMacroComments = Args.hasArg(OPT_CC);
3378 Opts.ShowMacros = Args.hasArg(OPT_dM) || Args.hasArg(OPT_dD);
3378 Opts.ShowMacros = Args.hasArg(OPT_dM) || Args.hasArg(OPT_dD);
3379 Opts.ShowIncludeDirectives = Args.hasArg(OPT_dI);
3380 Opts.RewriteIncludes = Args.hasArg(OPT_frewrite_includes);
3381 Opts.RewriteImports = Args.hasArg(OPT_frewrite_imports);
3382 Opts.UseLineDirectives = Args.hasArg(OPT_fuse_line_directives);
3413 Opts.ForceEnableInt128 = Args.hasArg(OPT_fforce_enable_int128);
3485 if (Args.hasArg(OPT_fobjc_arc))
3490 LangOpts.PIE = Args.hasArg(OPT_pic_is_pie);
tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp 53 if (C->getArgs().hasArg(driver::options::OPT__HASH_HASH_HASH)) {
tools/clang/tools/driver/cc1as_main.cpp 218 Opts.NoInitialTextSection = Args.hasArg(OPT_n);
219 Opts.SaveTemporaryLabels = Args.hasArg(OPT_msave_temp_labels);
221 Opts.GenDwarfForAssembly = Args.hasArg(OPT_debug_info_kind_EQ);
238 Opts.RelaxELFRelocations = Args.hasArg(OPT_mrelax_relocations);
249 if (Args.hasArg(OPT_INPUT)) {
277 Opts.ShowHelp = Args.hasArg(OPT_help);
278 Opts.ShowVersion = Args.hasArg(OPT_version);
283 Opts.ShowEncoding = Args.hasArg(OPT_show_encoding);
284 Opts.ShowInst = Args.hasArg(OPT_show_inst);
287 Opts.RelaxAll = Args.hasArg(OPT_mrelax_all);
288 Opts.NoExecStack = Args.hasArg(OPT_mno_exec_stack);
289 Opts.FatalWarnings = Args.hasArg(OPT_massembler_fatal_warnings);
290 Opts.NoWarn = Args.hasArg(OPT_massembler_no_warn);
294 Args.hasArg(OPT_mincremental_linker_compatible);
tools/dsymutil/dsymutil.cpp 210 Options.DumpDebugMap = Args.hasArg(OPT_dump_debug_map);
211 Options.DumpStab = Args.hasArg(OPT_symtab);
212 Options.Flat = Args.hasArg(OPT_flat);
213 Options.InputIsYAMLDebugMap = Args.hasArg(OPT_yaml_input);
214 Options.PaperTrailWarnings = Args.hasArg(OPT_papertrail);
215 Options.Verify = Args.hasArg(OPT_verify);
217 Options.LinkOpts.Minimize = Args.hasArg(OPT_minimize);
218 Options.LinkOpts.NoODR = Args.hasArg(OPT_no_odr);
219 Options.LinkOpts.NoOutput = Args.hasArg(OPT_no_output);
220 Options.LinkOpts.NoTimestamp = Args.hasArg(OPT_no_swiftmodule_timestamp);
221 Options.LinkOpts.Update = Args.hasArg(OPT_update);
222 Options.LinkOpts.Verbose = Args.hasArg(OPT_verbose);
233 if (Args.hasArg(OPT_symbolmap))
255 if (Args.hasArg(OPT_assembly))
453 if (Args.hasArg(OPT_help)) {
464 if (Args.hasArg(OPT_version)) {
tools/lld/COFF/Driver.cpp 690 if (args.hasArg(OPT_driver))
692 if (args.hasArg(OPT_profile))
1043 if (!args.hasArg(OPT_export_all_symbols)) {
1046 if (args.hasArg(OPT_exclude_all_symbols))
1128 if (args.hasArg(OPT_help)) {
1135 if (args.hasArg(OPT_show_timing))
1138 config->showSummary = args.hasArg(OPT_summary);
1144 if (args.hasArg(OPT_dash_dash_version)) {
1151 config->mingw = args.hasArg(OPT_lldmingw);
1166 if (!args.hasArg(OPT_INPUT)) {
1167 if (args.hasArg(OPT_deffile))
1177 if (!args.hasArg(OPT_lldignoreenv))
1200 if (args.hasArg(OPT_verbose))
1205 if (args.hasArg(OPT_force, OPT_force_unresolved))
1209 if (args.hasArg(OPT_force, OPT_force_multiple))
1213 if (args.hasArg(OPT_force, OPT_force_multipleres))
1238 if (args.hasArg(OPT_natvis))
1246 if (args.hasArg(OPT_noentry)) {
1247 if (args.hasArg(OPT_dll))
1254 if (args.hasArg(OPT_dll)) {
1297 if (args.hasArg(OPT_nodefaultlib_all))
1363 bool doGC = debug == DebugKind::None || args.hasArg(OPT_profile);
1365 args.hasArg(OPT_profile) ? 0 : 1; // 0: off, 1: limited, 2: on
1415 if (args.hasArg(OPT_lldsavetemps))
1419 if (args.hasArg(OPT_kill_at))
1501 config->thinLTOEmitImportsFiles = args.hasArg(OPT_thinlto_emit_imports_files);
1502 config->thinLTOIndexOnly = args.hasArg(OPT_thinlto_index_only) ||
1503 args.hasArg(OPT_thinlto_index_only_arg);
1517 !config->doGC && !config->doICF && !args.hasArg(OPT_order) &&
1518 !args.hasArg(OPT_profile));
1532 if (config->incremental && args.hasArg(OPT_profile)) {
1537 if (config->incremental && args.hasArg(OPT_order)) {
1568 if (args.hasArg(OPT_wholearchive_flag))
1676 if (!args.hasArg(OPT_INPUT)) {
1695 if (args.hasArg(OPT_dll)) {
1827 if (args.hasArg(OPT_include_optional)) {
tools/lld/COFF/DriverUtils.cpp 820 if (!args.hasArg(OPT_lldignoreenv))
827 if (args.hasArg(OPT_verbose) && argv.size() != expandedArgv.size()) {
855 if (args.hasArg(OPT_lib))
tools/lld/ELF/Driver.cpp 429 if (args.hasArg(OPT_help)) {
449 if (args.hasArg(OPT_v) || args.hasArg(OPT_version))
449 if (args.hasArg(OPT_v) || args.hasArg(OPT_version))
470 if (args.hasArg(OPT_v) && !args.hasArg(OPT_INPUT))
470 if (args.hasArg(OPT_v) && !args.hasArg(OPT_INPUT))
472 if (args.hasArg(OPT_version))
574 if (args.hasArg(OPT_relocatable))
605 if (args.hasArg(OPT_relocatable))
817 errorHandler().verbose = args.hasArg(OPT_verbose);
821 args.hasArg(OPT_visual_studio_diagnostics_format, false);
830 args.hasArg(OPT_shared));
832 config->bsymbolic = args.hasArg(OPT_Bsymbolic);
833 config->bsymbolicFunctions = args.hasArg(OPT_Bsymbolic_functions);
840 !args.hasArg(OPT_relocatable));
843 config->disableVerify = args.hasArg(OPT_disable_verify);
849 config->emitLLVM = args.hasArg(OPT_plugin_opt_emit_llvm, false);
850 config->emitRelocs = args.hasArg(OPT_emit_relocs);
862 config->fixCortexA53Errata843419 = args.hasArg(OPT_fix_cortex_a53_843419);
863 config->fixCortexA8 = args.hasArg(OPT_fix_cortex_a8);
864 config->forceBTI = args.hasArg(OPT_force_bti);
865 config->requireCET = args.hasArg(OPT_require_cet);
871 args.hasArg(OPT_ignore_data_address_equality);
873 args.hasArg(OPT_ignore_function_address_equality);
876 config->ltoCSProfileGenerate = args.hasArg(OPT_lto_cs_profile_generate);
878 config->ltoDebugPassManager = args.hasArg(OPT_lto_debug_pass_manager);
879 config->ltoNewPassManager = args.hasArg(OPT_lto_new_pass_manager);
890 config->noinhibitExec = args.hasArg(OPT_noinhibit_exec);
891 config->nostdlib = args.hasArg(OPT_nostdlib);
896 config->optRemarksWithHotness = args.hasArg(OPT_opt_remarks_with_hotness);
901 config->pacPlt = args.hasArg(OPT_pac_plt);
910 config->relocatable = args.hasArg(OPT_relocatable);
911 config->saveTemps = args.hasArg(OPT_save_temps);
914 config->shared = args.hasArg(OPT_shared);
915 config->singleRoRx = args.hasArg(OPT_no_rosegment);
927 config->thinLTOEmitImportsFiles = args.hasArg(OPT_thinlto_emit_imports_files);
928 config->thinLTOIndexOnly = args.hasArg(OPT_thinlto_index_only) ||
929 args.hasArg(OPT_thinlto_index_only_eq);
936 config->trace = args.hasArg(OPT_trace);
1018 if (args.hasArg(OPT_print_map))
1033 if (args.hasArg(OPT_call_graph_ordering_file))
1103 config->picThunk = args.hasArg(OPT_pic_veneer, config->isPic);
1701 if (!args.hasArg(OPT_hash_style)) {
1803 if (args.hasArg(OPT_exclude_libs))
tools/lld/MinGW/Driver.cpp 171 if (args.hasArg(OPT_help)) {
181 if (args.hasArg(OPT_v) || args.hasArg(OPT_version))
181 if (args.hasArg(OPT_v) || args.hasArg(OPT_version))
186 if (args.hasArg(OPT_v) && !args.hasArg(OPT_INPUT) && !args.hasArg(OPT_l))
186 if (args.hasArg(OPT_v) && !args.hasArg(OPT_INPUT) && !args.hasArg(OPT_l))
186 if (args.hasArg(OPT_v) && !args.hasArg(OPT_INPUT) && !args.hasArg(OPT_l))
188 if (args.hasArg(OPT_version))
191 if (!args.hasArg(OPT_INPUT) && !args.hasArg(OPT_l)) {
191 if (!args.hasArg(OPT_INPUT) && !args.hasArg(OPT_l)) {
210 if (args.hasArg(OPT_major_os_version, OPT_minor_os_version,
250 else if (args.hasArg(OPT_shared))
260 } else if (args.hasArg(OPT_strip_debug)) {
262 } else if (!args.hasArg(OPT_strip_all)) {
266 if (args.hasArg(OPT_shared))
268 if (args.hasArg(OPT_verbose))
270 if (args.hasArg(OPT_exclude_all_symbols))
272 if (args.hasArg(OPT_export_all_symbols))
274 if (args.hasArg(OPT_large_address_aware))
276 if (args.hasArg(OPT_kill_at))
278 if (args.hasArg(OPT_appcontainer))
282 args.getLastArgValue(OPT_m) != "arm64pe" && !args.hasArg(OPT_dynamicbase))
374 if (args.hasArg(OPT_verbose) || args.hasArg(OPT__HASH_HASH_HASH))
374 if (args.hasArg(OPT_verbose) || args.hasArg(OPT__HASH_HASH_HASH))
377 if (args.hasArg(OPT__HASH_HASH_HASH))
tools/lld/lib/Driver/DarwinLdDriver.cpp 336 errorHandler().verbose = parsedArgs.hasArg(OPT_v);
436 bool exportDynamicSymbols = parsedArgs.hasArg(OPT_export_dynamic);
631 if (!parsedArgs.hasArg(OPT_Z)) {
965 if (parsedArgs.hasArg(OPT_S))
1025 if (parsedArgs.hasArg(OPT_rpath)) {
tools/lld/wasm/Driver.cpp 292 if (args.hasArg(OPT_relocatable))
294 if (args.hasArg(OPT_shared))
305 config->allowUndefined = args.hasArg(OPT_allow_undefined);
308 config->compressRelocations = args.hasArg(OPT_compress_relocations);
310 config->disableVerify = args.hasArg(OPT_disable_verify);
311 config->emitRelocs = args.hasArg(OPT_emit_relocs);
313 config->exportAll = args.hasArg(OPT_export_all);
314 config->exportTable = args.hasArg(OPT_export_table);
315 config->growableTable = args.hasArg(OPT_growable_table);
318 config->importMemory = args.hasArg(OPT_import_memory);
319 config->sharedMemory = args.hasArg(OPT_shared_memory);
320 config->importTable = args.hasArg(OPT_import_table);
325 config->relocatable = args.hasArg(OPT_relocatable);
334 config->saveTemps = args.hasArg(OPT_save_temps);
336 config->shared = args.hasArg(OPT_shared);
337 config->stripAll = args.hasArg(OPT_strip_all);
338 config->stripDebug = args.hasArg(OPT_strip_debug);
339 config->stackFirst = args.hasArg(OPT_stack_first);
340 config->trace = args.hasArg(OPT_trace);
346 errorHandler().verbose = args.hasArg(OPT_verbose);
417 if (args.hasArg(OPT_undefined))
650 if (args.hasArg(OPT_help)) {
658 if (args.hasArg(OPT_version) || args.hasArg(OPT_v)) {
658 if (args.hasArg(OPT_version) || args.hasArg(OPT_v)) {
693 if (!args.hasArg(OPT_INPUT)) {
tools/lldb/tools/driver/Driver.cpp 193 if (args.hasArg(OPT_version)) {
197 if (args.hasArg(OPT_python_path)) {
201 if (args.hasArg(OPT_batch)) {
217 if (args.hasArg(OPT_editor)) {
221 if (args.hasArg(OPT_no_lldbinit)) {
226 if (args.hasArg(OPT_local_lldbinit)) {
231 if (args.hasArg(OPT_no_use_colors)) {
267 if (args.hasArg(OPT_source_quietly)) {
276 if (args.hasArg(OPT_wait_for)) {
302 if (args.hasArg(OPT_repl)) {
787 bool capture = input_args.hasArg(OPT_capture);
826 if (input_args.hasArg(OPT_help)) {
tools/llvm-cvtres/llvm-cvtres.cpp 113 if (InputArgs.hasArg(OPT_HELP)) {
118 bool Verbose = InputArgs.hasArg(OPT_VERBOSE);
tools/llvm-lipo/llvm-lipo.cpp 289 if (InputArgs.hasArg(LIPO_help)) {
295 if (InputArgs.hasArg(LIPO_version)) {
317 if (InputArgs.hasArg(LIPO_output))
tools/llvm-mt/llvm-mt.cpp 116 if (InputArgs.hasArg(OPT_help)) {
128 if (InputArgs.hasArg(OPT_out)) {
tools/llvm-objcopy/CopyConfig.cpp 383 if (InputArgs.hasArg(OBJCOPY_help)) {
388 if (InputArgs.hasArg(OBJCOPY_version)) {
413 if (InputArgs.hasArg(OBJCOPY_target) &&
414 (InputArgs.hasArg(OBJCOPY_input_target) ||
415 InputArgs.hasArg(OBJCOPY_output_target)))
420 if (InputArgs.hasArg(OBJCOPY_regex) && InputArgs.hasArg(OBJCOPY_wildcard))
420 if (InputArgs.hasArg(OBJCOPY_regex) && InputArgs.hasArg(OBJCOPY_wildcard))
424 MatchStyle SectionMatchStyle = InputArgs.hasArg(OBJCOPY_regex)
427 MatchStyle SymbolMatchStyle = InputArgs.hasArg(OBJCOPY_regex)
429 : InputArgs.hasArg(OBJCOPY_wildcard)
433 if (InputArgs.hasArg(OBJCOPY_target)) {
449 if (InputArgs.hasArg(OBJCOPY_new_symbol_visibility))
509 if (InputArgs.hasArg(OBJCOPY_build_id_link_input))
512 if (InputArgs.hasArg(OBJCOPY_build_id_link_output))
609 Config.StripAll = InputArgs.hasArg(OBJCOPY_strip_all);
610 Config.StripAllGNU = InputArgs.hasArg(OBJCOPY_strip_all_gnu);
611 Config.StripDebug = InputArgs.hasArg(OBJCOPY_strip_debug);
612 Config.StripDWO = InputArgs.hasArg(OBJCOPY_strip_dwo);
613 Config.StripSections = InputArgs.hasArg(OBJCOPY_strip_sections);
614 Config.StripNonAlloc = InputArgs.hasArg(OBJCOPY_strip_non_alloc);
615 Config.StripUnneeded = InputArgs.hasArg(OBJCOPY_strip_unneeded);
616 Config.ExtractDWO = InputArgs.hasArg(OBJCOPY_extract_dwo);
618 InputArgs.hasArg(OBJCOPY_extract_main_partition);
619 Config.LocalizeHidden = InputArgs.hasArg(OBJCOPY_localize_hidden);
620 Config.Weaken = InputArgs.hasArg(OBJCOPY_weaken);
621 if (InputArgs.hasArg(OBJCOPY_discard_all, OBJCOPY_discard_locals))
626 Config.OnlyKeepDebug = InputArgs.hasArg(OBJCOPY_only_keep_debug);
627 Config.KeepFileSymbols = InputArgs.hasArg(OBJCOPY_keep_file_symbols);
629 InputArgs.hasArg(OBJCOPY_decompress_debug_sections);
699 Config.AllowBrokenLinks = InputArgs.hasArg(OBJCOPY_allow_broken_links);
705 Config.PreserveDates = InputArgs.hasArg(OBJCOPY_preserve_dates);
771 if (InputArgs.hasArg(STRIP_help)) {
776 if (InputArgs.hasArg(STRIP_version)) {
792 if (Positional.size() > 1 && InputArgs.hasArg(STRIP_output))
799 if (InputArgs.hasArg(STRIP_regex) && InputArgs.hasArg(STRIP_wildcard))
799 if (InputArgs.hasArg(STRIP_regex) && InputArgs.hasArg(STRIP_wildcard))
803 InputArgs.hasArg(STRIP_regex) ? MatchStyle::Regex : MatchStyle::Wildcard;
804 MatchStyle SymbolMatchStyle = InputArgs.hasArg(STRIP_regex)
806 : InputArgs.hasArg(STRIP_wildcard)
809 Config.AllowBrokenLinks = InputArgs.hasArg(STRIP_allow_broken_links);
810 Config.StripDebug = InputArgs.hasArg(STRIP_strip_debug);
812 if (InputArgs.hasArg(STRIP_discard_all, STRIP_discard_locals))
817 Config.StripSections = InputArgs.hasArg(STRIP_strip_sections);
818 Config.StripUnneeded = InputArgs.hasArg(STRIP_strip_unneeded);
821 Config.StripAllGNU = InputArgs.hasArg(STRIP_strip_all_gnu);
822 Config.OnlyKeepDebug = InputArgs.hasArg(STRIP_only_keep_debug);
823 Config.KeepFileSymbols = InputArgs.hasArg(STRIP_keep_file_symbols);
845 if (!InputArgs.hasArg(STRIP_no_strip_all) && !Config.StripDebug &&
857 Config.PreserveDates = InputArgs.hasArg(STRIP_preserve_dates);
tools/llvm-rc/llvm-rc.cpp 95 if (InputArgs.hasArg(OPT_HELP)) {
100 const bool BeVerbose = InputArgs.hasArg(OPT_VERBOSE);
147 if (InputArgs.hasArg(OPT_CODEPAGE)) {
164 bool IsDryRun = InputArgs.hasArg(OPT_DRY_RUN);
185 Visitor->AppendNull = InputArgs.hasArg(OPT_ADD_NULL);
unittests/Option/OptionParsingTest.cpp 73 EXPECT_TRUE(AL.hasArg(OPT_A));
74 EXPECT_TRUE(AL.hasArg(OPT_B));
75 EXPECT_TRUE(AL.hasArg(OPT_C));
76 EXPECT_TRUE(AL.hasArg(OPT_D));
77 EXPECT_TRUE(AL.hasArg(OPT_E));
78 EXPECT_TRUE(AL.hasArg(OPT_F));
79 EXPECT_TRUE(AL.hasArg(OPT_G));
122 EXPECT_TRUE(AL.hasArg(OPT_A));
123 EXPECT_TRUE(AL.hasArg(OPT_C));
124 EXPECT_FALSE(AL.hasArg(OPT_SLASH_C));
130 EXPECT_TRUE(AL.hasArg(OPT_B));
131 EXPECT_FALSE(AL.hasArg(OPT_C));
132 EXPECT_TRUE(AL.hasArg(OPT_SLASH_C));
136 EXPECT_TRUE(AL.hasArg(OPT_SLASH_C));
137 EXPECT_TRUE(AL.hasArg(OPT_C));
148 EXPECT_TRUE(AL.hasArg(OPT_H));
157 EXPECT_TRUE(AL.hasArg(OPT_B));
168 EXPECT_TRUE(AL.hasArg(OPT_A));
169 EXPECT_TRUE(AL.hasArg(OPT_B));
178 EXPECT_FALSE(AL.hasArg(OPT_A));
179 EXPECT_FALSE(AL.hasArg(OPT_B));
188 EXPECT_TRUE(AL.hasArg(OPT_A));
189 EXPECT_TRUE(AL.hasArg(OPT_Slurp));
200 EXPECT_TRUE(AL.hasArg(OPT_A));
201 EXPECT_FALSE(AL.hasArg(OPT_B));
202 EXPECT_TRUE(AL.hasArg(OPT_Slurp));
215 EXPECT_TRUE(AL.hasArg(OPT_A));
216 EXPECT_TRUE(AL.hasArg(OPT_SlurpJoined));
226 EXPECT_TRUE(AL.hasArg(OPT_A));
227 EXPECT_TRUE(AL.hasArg(OPT_SlurpJoined));
238 EXPECT_TRUE(AL.hasArg(OPT_A));
239 EXPECT_TRUE(AL.hasArg(OPT_SlurpJoined));
252 EXPECT_TRUE(AL.hasArg(OPT_A));
253 EXPECT_TRUE(AL.hasArg(OPT_SlurpJoined));
268 EXPECT_TRUE(AL.hasArg(OPT_B));