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

Declarations

include/llvm/Option/ArgList.h
  295   bool hasFlag(OptSpecifier Pos, OptSpecifier Neg, bool Default=true) const;

References

tools/clang/lib/Driver/Driver.cpp
  400   if (Args.hasFlag(options::OPT_miamcu, options::OPT_mno_iamcu, false))
  502   if (Args.hasFlag(options::OPT_miamcu, options::OPT_mno_iamcu, false)) {
 1043   GenReproducer = Args.hasFlag(options::OPT_gen_reproducer,
 2480       Relocatable = Args.hasFlag(options::OPT_fgpu_rdc,
 3540       if (!Args.hasFlag(options::OPT_frewrite_includes,
 3542           !Args.hasFlag(options::OPT_frewrite_imports,
 4468                         !C.getArgs().hasFlag(options::OPT_fgpu_rdc,
 4962   return Args.hasFlag(options::OPT_Ofast, options::OPT_O_Group, false);
tools/clang/lib/Driver/SanitizerArgs.cpp
  256   CfiCrossDso = Args.hasFlag(options::OPT_fsanitize_cfi_cross_dso,
  266       Args.hasFlag(options::OPT_fsanitize_minimal_runtime,
  607         Args.hasFlag(options::OPT_fsanitize_memory_use_after_dtor,
  617     TsanMemoryAccess = Args.hasFlag(
  620     TsanFuncEntryExit = Args.hasFlag(
  624         Args.hasFlag(options::OPT_fsanitize_thread_atomics,
  641         Args.hasFlag(options::OPT_fsanitize_cfi_canonical_jump_tables,
  645   Stats = Args.hasFlag(options::OPT_fsanitize_stats,
  738       Args.hasFlag(options::OPT_shared_libsan, options::OPT_static_libsan,
  771     AsanUseAfterScope = Args.hasFlag(
  775     AsanPoisonCustomArrayCookie = Args.hasFlag(
  789         Args.hasFlag(options::OPT_fsanitize_address_use_odr_indicator,
  833       Args.hasFlag(options::OPT_fsanitize_link_runtime,
tools/clang/lib/Driver/ToolChain.cpp
  103   return Args.hasFlag(options::OPT_fintegrated_as,
  490   return Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs,
  667     bool ARMModeRequested = !Args.hasFlag(options::OPT_mthumb,
  682       IsThumb = Args.hasFlag(options::OPT_mthumb, options::OPT_mno_thumb,
tools/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
  435   if (Args.hasFlag(options::OPT_mrelax, options::OPT_mno_relax, true))
  442   if (Args.hasFlag(options::OPT_msave_restore, options::OPT_mno_save_restore, false)) {
tools/clang/lib/Driver/ToolChains/Arch/X86.cpp
  153     if (Args.hasFlag(options::OPT_mretpoline, options::OPT_mno_retpoline,
  157     } else if (Args.hasFlag(options::OPT_mspeculative_load_hardening,
  164   } else if (Args.hasFlag(options::OPT_mretpoline_external_thunk,
tools/clang/lib/Driver/ToolChains/Clang.cpp
  345   bool EH = Args.hasFlag(options::OPT_fexceptions, options::OPT_fno_exceptions,
  351       Args.hasFlag(options::OPT_fobjc_exceptions,
  388   return !Args.hasFlag(options::OPT_fautolink, options::OPT_fno_autolink,
  395       Args.hasFlag(options::OPT_fdwarf_directory_asm,
  510       Args.hasFlag(options::OPT_momit_leaf_frame_pointer,
  747   bool EmitCovData = Args.hasFlag(options::OPT_fprofile_arcs,
  755   if (Args.hasFlag(options::OPT_fcoverage_mapping,
  859   return Args.hasFlag(options::OPT_mrelax_all, options::OPT_mno_relax_all,
 1351   if (!Args.hasFlag(options::OPT_mimplicit_float,
 1505   if (!Args.hasFlag(options::OPT_mred_zone, options::OPT_mno_red_zone, true) ||
 1510   if (!Args.hasFlag(options::OPT_mimplicit_float,
 1725       HasQPX = Args.hasFlag(options::OPT_mqpx, options::OPT_mno_qpx, HasQPX);
 1807   if (Args.hasFlag(options::OPT_mbackchain, options::OPT_mno_backchain, false))
 1813   if (!Args.hasFlag(options::OPT_mred_zone, options::OPT_mno_red_zone, true) ||
 1818   if (!Args.hasFlag(options::OPT_mtls_direct_seg_refs,
 1851   if (Args.hasFlag(options::OPT_miamcu, options::OPT_mno_iamcu, false)) {
 2020   if (Args.hasFlag(options::OPT_mincremental_linker_compatible,
 2389   if (Args.hasFlag(options::OPT_fno_strict_float_cast_overflow,
 2658       Args.hasFlag(options::OPT_fbuiltin, options::OPT_fno_builtin,
 2706   if (Args.hasFlag(options::OPT_fmodules, options::OPT_fno_modules, false)) {
 2707     bool AllowedInCXX = Args.hasFlag(options::OPT_fcxx_modules,
 2723   if (Args.hasFlag(options::OPT_fimplicit_module_maps,
 2728   if (Args.hasFlag(options::OPT_fmodules_decluse,
 2734   if (Args.hasFlag(options::OPT_fmodules_strict_decluse,
 2740   if (!Args.hasFlag(options::OPT_fimplicit_modules,
 2775     if (Args.hasFlag(options::OPT_fmodules_validate_input_files_content,
 2856   if (Args.hasFlag(options::OPT_fmodules_validate_system_headers,
 2909     if (!Args.hasFlag(options::OPT_fobjc_legacy_dispatch,
 2944     if (Args.hasFlag(options::OPT_fobjc_arc_exceptions,
 3014   if (!Args.hasFlag(options::OPT_fcaret_diagnostics,
 3019   if (!Args.hasFlag(options::OPT_fdiagnostics_fixit_info,
 3024   if (Args.hasFlag(options::OPT_fdiagnostics_show_option,
 3034   if (Args.hasFlag(options::OPT_fdiagnostics_show_hotness,
 3088   if (!Args.hasFlag(options::OPT_fshow_source_location,
 3095   if (!Args.hasFlag(options::OPT_fshow_column, options::OPT_fno_show_column,
 3099   if (!Args.hasFlag(options::OPT_fspell_checking,
 3133   if (Args.hasFlag(options::OPT_fdebug_info_for_profiling,
 3152       Args.hasFlag(options::OPT_fsplit_dwarf_inlining,
 3241   if (Args.hasFlag(options::OPT_gcolumn_info, options::OPT_gno_column_info,
 3266   bool NeedFullDebug = Args.hasFlag(
 3275   if (Args.hasFlag(options::OPT_gembed_source, options::OPT_gno_embed_source,
 3293     if (Args.hasFlag(options::OPT_gcodeview_ghash,
 3306   if (Args.hasFlag(options::OPT_fdebug_macro, options::OPT_fno_debug_macro,
 3326   if (Args.hasFlag(options::OPT_fdebug_ranges_base_address,
 3342   if (Args.hasFlag(options::OPT_fdebug_types_section,
 3708     if (!Args.hasFlag(options::OPT_foptimize_sibling_calls,
 3782   if (Args.hasFlag(options::OPT_fdiscard_value_names,
 3881   if (Args.hasFlag(options::OPT_fmerge_all_constants,
 3885   if (Args.hasFlag(options::OPT_fno_delete_null_pointer_checks,
 3913   if (!Args.hasFlag(options::OPT_fjump_tables, options::OPT_fno_jump_tables,
 3917   if (Args.hasFlag(options::OPT_fprofile_sample_accurate,
 3921   if (!Args.hasFlag(options::OPT_fpreserve_as_comments,
 3943   if (Args.hasFlag(options::OPT_mrtd, options::OPT_mno_rtd, false))
 3963   if (!Args.hasFlag(options::OPT_fzero_initialized_in_bss,
 3978   if (!Args.hasFlag(options::OPT_fstruct_path_tbaa,
 3981   if (Args.hasFlag(options::OPT_fstrict_enums, options::OPT_fno_strict_enums,
 3984   if (!Args.hasFlag(options::OPT_fstrict_return, options::OPT_fno_strict_return,
 3987   if (Args.hasFlag(options::OPT_fallow_editor_placeholders,
 3990   if (Args.hasFlag(options::OPT_fstrict_vtable_pointers,
 3994   if (Args.hasFlag(options::OPT_fforce_emit_vtables,
 3998   if (!Args.hasFlag(options::OPT_foptimize_sibling_calls,
 4001   if (Args.hasFlag(options::OPT_fno_escaping_block_tail_calls,
 4029   if (Args.hasFlag(options::OPT_fverbose_asm, options::OPT_fno_verbose_asm,
 4056   if (Args.hasFlag(options::OPT_mms_bitfields, options::OPT_mno_ms_bitfields,
 4061   if (Args.hasFlag(options::OPT_mpie_copy_relocations,
 4067   if (Args.hasFlag(options::OPT_fno_plt, options::OPT_fplt, false)) {
 4075       Args.hasFlag(options::OPT_ffreestanding, options::OPT_fhosted, false) ||
 4084       Args.hasFlag(options::OPT_fasynchronous_unwind_tables,
 4089   if (Args.hasFlag(options::OPT_funwind_tables, options::OPT_fno_unwind_tables,
 4186   if (Args.hasFlag(options::OPT_ffunction_sections,
 4191   if (Args.hasFlag(options::OPT_fdata_sections, options::OPT_fno_data_sections,
 4196   if (!Args.hasFlag(options::OPT_funique_section_names,
 4279   if (Args.hasFlag(options::OPT_pedantic, options::OPT_no_pedantic, false))
 4285   if (Args.hasFlag(options::OPT_ffixed_point, options::OPT_fno_fixed_point,
 4352       Args.hasFlag(options::OPT_Wdeprecated, options::OPT_Wno_deprecated,
 4441   if (Args.hasFlag(options::OPT_fstack_size_section,
 4533       if (!Args.hasFlag(options::OPT_fopenmp_use_tls,
 4543       if (Args.hasFlag(options::OPT_fopenmp_optimistic_collapse,
 4550       if (Args.hasFlag(options::OPT_fopenmp_cuda_mode,
 4556       if (Args.hasFlag(options::OPT_fopenmp_cuda_force_full_runtime,
 4631   if (Args.hasFlag(options::OPT_mspeculative_load_hardening, options::OPT_mno_speculative_load_hardening,
 4639   if (Args.hasFlag(options::OPT_mstackrealign, options::OPT_mno_stackrealign,
 4657   if (!Args.hasFlag(options::OPT_mstack_arg_probe,
 4681   if (Args.hasFlag(options::OPT_fhip_new_launch_api,
 4711   if (!Args.hasFlag(options::OPT_fassume_sane_operator_new,
 4716   if (Args.hasFlag(options::OPT_fblocks, options::OPT_fno_blocks,
 4731   if (Args.hasFlag(options::OPT_fcoroutines_ts, options::OPT_fno_coroutines_ts,
 4741   if (Args.hasFlag(options::OPT_fno_access_control,
 4746   if (Args.hasFlag(options::OPT_fno_elide_constructors,
 4757   if (Args.hasFlag(options::OPT_fshort_enums, options::OPT_fno_short_enums,
 4764   if (!Args.hasFlag(
 4773   if (Args.hasFlag(options::OPT_fregister_global_dtors_with_atexit,
 4779   if (Args.hasFlag(options::OPT_fms_extensions, options::OPT_fno_ms_extensions,
 4784   if (Args.hasFlag(options::OPT_fuse_line_directives,
 4789   bool IsMSVCCompat = Args.hasFlag(
 4791       (IsWindowsMSVC && Args.hasFlag(options::OPT_fms_extensions,
 4850   if (Args.hasFlag(options::OPT_fborland_extensions,
 4855   if (Args.hasFlag(options::OPT_fdeclspec, options::OPT_fno_declspec,
 4863   if (!Args.hasFlag(options::OPT_fthreadsafe_statics,
 4872   if (Args.hasFlag(options::OPT_fdelayed_template_parsing,
 4881   if (Args.hasFlag(options::OPT_fgnu89_inline, options::OPT_fno_gnu89_inline,
 4898   if (Args.hasFlag(options::OPT_fpch_validate_input_files_content,
 4909   if (Args.hasFlag(options::OPT_fapplication_extension,
 4948   if (!Args.hasFlag(options::OPT_fassume_sane_operator_new,
 4955   if (Args.hasFlag(options::OPT_frelaxed_template_template_args,
 4961   if (Args.hasFlag(options::OPT_fsized_deallocation,
 4985   if (!Args.hasFlag(options::OPT_fconstant_cfstrings,
 4987       !Args.hasFlag(options::OPT_mconstant_cfstrings,
 4992   if (Args.hasFlag(options::OPT_fpascal_strings,
 5002   } else if (Args.hasFlag(options::OPT_fpack_struct,
 5022   if (!Args.hasFlag(options::OPT_Qy, options::OPT_Qn, true))
 5027   if (!Args.hasFlag(options::OPT_fcommon, options::OPT_fno_common,
 5033   if (!Args.hasFlag(options::OPT_fsigned_bitfields,
 5039   if (!Args.hasFlag(options::OPT_ffor_scope, options::OPT_fno_for_scope))
 5062   if (Args.hasFlag(options::OPT_fasm_blocks, options::OPT_fno_asm_blocks,
 5067   if (!Args.hasFlag(options::OPT_fgnu_inline_asm,
 5113   if (Args.hasFlag(options::OPT_fapple_pragma_pack,
 5121       Args.hasFlag(options::OPT_fsave_optimization_record_EQ,
 5123       Args.hasFlag(options::OPT_foptimization_record_passes_EQ,
 5179   bool RewriteImports = Args.hasFlag(options::OPT_frewrite_imports,
 5188   if (Args.hasFlag(options::OPT_frewrite_includes,
 5289       Args.hasFlag(options::OPT_grecord_command_line,
 5292       Args.hasFlag(options::OPT_frecord_command_line,
 5327       if (Args.hasFlag(options::OPT_fgpu_rdc, options::OPT_fno_gpu_rdc, false))
 5332     if (Args.hasFlag(options::OPT_fcuda_short_ptr,
 5373       Args.hasFlag(options::OPT_fvirtual_function_elimination,
 5387   bool WholeProgramVTables = Args.hasFlag(
 5408       Args.hasFlag(options::OPT_fsplit_lto_unit,
 5464   if (Args.hasFlag(options::OPT_fcomplete_member_pointers,
 5468   if (!Args.hasFlag(options::OPT_fcxx_static_destructors,
 5491   if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig,
 5555       Args.hasFlag(options::OPT__SLASH_showFilenames,
 5645     if (args.hasFlag(options::OPT_fobjc_nonfragile_abi,
 5772       Args.hasFlag(options::OPT__SLASH_GX, options::OPT__SLASH_GX_,
 5841   if (Args.hasFlag(options::OPT__SLASH_GR_, options::OPT__SLASH_GR,
 5847   if (Args.hasFlag(options::OPT__SLASH_GS, options::OPT__SLASH_GS_,
 5895  if (Args.hasFlag(options::OPT__SLASH_Zc_dllexportInlines_,
 6228     if (Args.hasFlag(options::OPT_mdefault_build_attributes,
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
  430   if (Args.hasFlag(options::OPT_ffunction_sections,
  435   if (Args.hasFlag(options::OPT_fdata_sections, options::OPT_fno_data_sections,
  479   if (Args.hasFlag(options::OPT_fexperimental_new_pass_manager,
  503   if (!Args.hasFlag(options::OPT_frtlib_add_rpath,
 1155   return Args.hasFlag(options::OPT_fobjc_arc, options::OPT_fno_objc_arc, false);
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  306                         Args.hasFlag(options::OPT_cuda_noopt_device_debug,
  410     Relocatable = Args.hasFlag(options::OPT_fopenmp_relocatable_target,
  414     Relocatable = Args.hasFlag(options::OPT_fgpu_rdc,
  616     if (DriverArgs.hasFlag(options::OPT_fcuda_flush_denormals_to_zero,
  620     if (DriverArgs.hasFlag(options::OPT_fcuda_approx_transcendentals,
  624     if (DriverArgs.hasFlag(options::OPT_fgpu_rdc, options::OPT_fno_gpu_rdc,
  670   if (DriverArgs.hasFlag(options::OPT_fcuda_short_ptr,
tools/clang/lib/Driver/ToolChains/Darwin.cpp
  223   if (Args.hasFlag(options::OPT_fapplication_extension,
 2398     if (Args.hasFlag(options::OPT_fomit_frame_pointer,
 2412           Args.hasFlag(options::OPT_fexceptions, options::OPT_fno_exceptions,
tools/clang/lib/Driver/ToolChains/Fuchsia.cpp
  211       Args.hasFlag(options::OPT_fexceptions, options::OPT_fno_exceptions, true),
  261   if (DriverArgs.hasFlag(options::OPT_fuse_init_array,
tools/clang/lib/Driver/ToolChains/Gnu.cpp
 1475       Args.hasFlag(options::OPT_mthumb, options::OPT_mno_thumb, false) ||
 2731   if (DriverArgs.hasFlag(options::OPT_fuse_init_array,
tools/clang/lib/Driver/ToolChains/HIP.cpp
  283   if (DriverArgs.hasFlag(options::OPT_fcuda_flush_denormals_to_zero,
  287   if (DriverArgs.hasFlag(options::OPT_fcuda_approx_transcendentals,
  291   if (DriverArgs.hasFlag(options::OPT_fgpu_rdc, options::OPT_fno_gpu_rdc,
  295   if (DriverArgs.hasFlag(options::OPT_fgpu_allow_device_init,
tools/clang/lib/Driver/ToolChains/MSVC.cpp
  366   if (!Args.hasFlag(options::OPT_mincremental_linker_compatible,
  644   if (Args.hasFlag(options::OPT__SLASH_GR_, options::OPT__SLASH_GR,
  648   if (Args.hasFlag(options::OPT__SLASH_GS_, options::OPT__SLASH_GS,
 1329       Args.hasFlag(options::OPT_fms_extensions, options::OPT_fno_ms_extensions,
tools/clang/lib/Driver/ToolChains/NetBSD.cpp
  508   if (DriverArgs.hasFlag(options::OPT_fuse_init_array,
tools/clang/lib/Driver/ToolChains/PS4CPU.cpp
   30   if ((Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs,
   32        Args.hasFlag(options::OPT_fprofile_generate,
   34        Args.hasFlag(options::OPT_fprofile_generate_EQ,
   36        Args.hasFlag(options::OPT_fprofile_instr_generate,
   38        Args.hasFlag(options::OPT_fprofile_instr_generate_EQ,
tools/clang/lib/Driver/ToolChains/WebAssembly.cpp
  140   if (DriverArgs.hasFlag(clang::driver::options::OPT_fuse_init_array,
  145   if (DriverArgs.hasFlag(options::OPT_pthread, options::OPT_no_pthread,
  147     if (DriverArgs.hasFlag(options::OPT_mno_atomics, options::OPT_matomics,
  152     if (DriverArgs.hasFlag(options::OPT_mno_bulk_memory,
  157     if (DriverArgs.hasFlag(options::OPT_mno_mutable_globals,
  162     if (DriverArgs.hasFlag(options::OPT_mno_sign_ext, options::OPT_msign_ext,
  179     if (DriverArgs.hasFlag(options::OPT_mno_exception_handing,
tools/clang/lib/Driver/ToolChains/XCore.cpp
   45   if (Args.hasFlag(options::OPT_fverbose_asm, options::OPT_fno_verbose_asm,
   76   if (Args.hasFlag(options::OPT_fexceptions, options::OPT_fno_exceptions,
tools/clang/lib/Driver/XRayArgs.cpp
   35   if (Args.hasFlag(options::OPT_fxray_instrument,
   86     if (Args.hasFlag(options::OPT_fxray_always_emit_customevents,
   90     if (Args.hasFlag(options::OPT_fxray_always_emit_typedevents,
   94     if (!Args.hasFlag(options::OPT_fxray_link_deps,
tools/clang/lib/Frontend/CompilerInvocation.cpp
  707   Opts.ExperimentalNewPassManager = Args.hasFlag(
  712       Args.hasFlag(OPT_fdebug_pass_manager, OPT_fno_debug_pass_manager,
  803       Args.hasFlag(OPT_ffine_grained_bitfield_accesses,
  816       Args.hasFlag(OPT_funroll_loops, OPT_fno_unroll_loops,
  823   Opts.DebugInfoForProfiling = Args.hasFlag(
  849       Args.hasFlag(OPT_fcoverage_mapping, OPT_fno_coverage_mapping, false);
  954   Opts.FunctionSections = Args.hasFlag(OPT_ffunction_sections,
  956   Opts.DataSections = Args.hasFlag(OPT_fdata_sections,
  959       Args.hasFlag(OPT_fstack_size_section, OPT_fno_stack_size_section, false);
  960   Opts.UniqueSectionNames = Args.hasFlag(OPT_funique_section_names,
  980   Opts.LTOUnit = Args.hasFlag(OPT_flto_unit, OPT_fno_lto_unit, false);
 1171       Args.hasFlag(OPT_fsanitize_memory_use_after_dtor,
 1243         Args.hasFlag(OPT_femulated_tls, OPT_fno_emulated_tls, false);
 1367   Opts.EmitVersionIdentMetadata = Args.hasFlag(OPT_Qy, OPT_Qn, true);
 1522   Opts.ShowColumn = Args.hasFlag(OPT_fshow_column,
 1529       Args.hasFlag(OPT_fdiagnostics_show_option,
 2511   Opts.GNUKeywords = Args.hasFlag(OPT_fgnu_keywords, OPT_fno_gnu_keywords,
 2514   Opts.Digraphs = Args.hasFlag(OPT_fdigraphs, OPT_fno_digraphs, Opts.Digraphs);
 2694       Args.hasFlag(OPT_ftrigraphs, OPT_fno_trigraphs, Opts.Trigraphs);
 2696   Opts.DollarIdents = Args.hasFlag(OPT_fdollars_in_identifiers,
 2703   Opts.ConstStrings = Args.hasFlag(OPT_fconst_strings, OPT_fno_const_strings,
 2725       Args.hasFlag(OPT_ffixed_point, OPT_fno_fixed_point, /*Default=*/false) &&
 2728       Args.hasFlag(OPT_fpadding_on_unsigned_fixed_point,
 2761       Args.hasFlag(OPT_fdouble_square_bracket_attributes,
 2786   Opts.Char8 = Args.hasFlag(OPT_fchar8__t, OPT_fno_char8__t, Opts.CPlusPlus2a);
 2796   Opts.WCharIsSigned = Args.hasFlag(OPT_fsigned_wchar, OPT_fno_signed_wchar, true);
 2807       Args.hasFlag(OPT_faligned_allocation, OPT_fno_aligned_allocation,
 2898       Args.hasFlag(OPT_fdeclspec, OPT_fno_declspec,
 2989       Args.hasFlag(options::OPT_fopenmp_simd, options::OPT_fno_openmp_simd,
 3086   Opts.Deprecated = Args.hasFlag(OPT_fdeprecated_macro,
 3165       Args.hasFlag(OPT_fxray_instrument, OPT_fnoxray_instrument, false);
 3169       Args.hasFlag(OPT_fxray_always_emit_customevents,
 3174       Args.hasFlag(OPT_fxray_always_emit_typedevents,
 3414   Opts.NVPTXUseShortPointers = Args.hasFlag(
tools/lld/COFF/Driver.cpp
 1133   lld::threadsEnabled = args.hasFlag(OPT_threads, OPT_threads_no, true);
 1225   config->demangle = args.hasFlag(OPT_demangle, OPT_demangle_no);
 1270   bool fixed = args.hasFlag(OPT_fixed, OPT_fixed_no, false);
 1283       args.hasFlag(OPT_appcontainer, OPT_appcontainer_no, false);
 1512   config->allowBind = args.hasFlag(OPT_allowbind, OPT_allowbind_no, true);
 1514       args.hasFlag(OPT_allowisolation, OPT_allowisolation_no, true);
 1516       args.hasFlag(OPT_incremental, OPT_incremental_no,
 1520       args.hasFlag(OPT_integritycheck, OPT_integritycheck_no, false);
 1521   config->nxCompat = args.hasFlag(OPT_nxcompat, OPT_nxcompat_no, true);
 1525       !config->dll && args.hasFlag(OPT_tsaware, OPT_tsaware_no, true);
 1631       args.hasFlag(OPT_safeseh, OPT_safeseh_no, !config->mingw))
 1644   config->largeAddressAware = args.hasFlag(
 1650       args.hasFlag(OPT_highentropyva, OPT_highentropyva_no, true);
tools/lld/COFF/DriverUtils.cpp
  839   errorHandler().fatalWarnings = args.hasFlag(OPT_WX, OPT_WX_no, false);
tools/lld/ELF/Driver.cpp
  517   UnresolvedPolicy errorOrWarn = args.hasFlag(OPT_error_unresolved_symbols,
  819       args.hasFlag(OPT_fatal_warnings, OPT_no_fatal_warnings, false);
  822   threadsEnabled = args.hasFlag(OPT_threads, OPT_no_threads, true);
  825       args.hasFlag(OPT_allow_multiple_definition,
  829       args.hasFlag(OPT_allow_shlib_undefined, OPT_no_allow_shlib_undefined,
  835       args.hasFlag(OPT_check_sections, OPT_no_check_sections, true);
  838   config->cref = args.hasFlag(OPT_cref, OPT_no_cref, false);
  839   config->defineCommon = args.hasFlag(OPT_define_common, OPT_no_define_common,
  841   config->demangle = args.hasFlag(OPT_demangle, OPT_no_demangle, true);
  842   config->dependentLibraries = args.hasFlag(OPT_dependent_libraries, OPT_no_dependent_libraries, true);
  848       args.hasFlag(OPT_eh_frame_hdr, OPT_no_eh_frame_hdr, false);
  851   config->callGraphProfileSort = args.hasFlag(
  854       args.hasFlag(OPT_enable_new_dtags, OPT_disable_new_dtags, true);
  857       args.hasFlag(OPT_execute_only, OPT_no_execute_only, false);
  859       args.hasFlag(OPT_export_dynamic, OPT_no_export_dynamic, false);
  866   config->gcSections = args.hasFlag(OPT_gc_sections, OPT_no_gc_sections, false);
  867   config->gnuUnique = args.hasFlag(OPT_gnu_unique, OPT_no_gnu_unique, true);
  868   config->gdbIndex = args.hasFlag(OPT_gdb_index, OPT_no_gdb_index, false);
  888       args.hasFlag(OPT_merge_exidx_entries, OPT_no_merge_exidx_entries, true);
  889   config->nmagic = args.hasFlag(OPT_nmagic, OPT_no_nmagic, false);
  893   config->omagic = args.hasFlag(OPT_omagic, OPT_no_omagic, false);
  902   config->pie = args.hasFlag(OPT_pie, OPT_no_pie, false);
  904       args.hasFlag(OPT_print_icf_sections, OPT_no_print_icf_sections, false);
  906       args.hasFlag(OPT_print_gc_sections, OPT_no_print_gc_sections, false);
  921   config->target1Rel = args.hasFlag(OPT_target1_rel, OPT_target1_abs, false);
  939       args.hasFlag(OPT_undefined_version, OPT_no_undefined_version, true);
  940   config->useAndroidRelrTags = args.hasFlag(
  944       args.hasFlag(OPT_warn_backrefs, OPT_no_warn_backrefs, false);
  945   config->warnCommon = args.hasFlag(OPT_warn_common, OPT_no_warn_common, false);
  947       args.hasFlag(OPT_warn_ifunc_textrel, OPT_no_warn_ifunc_textrel, false);
  949       args.hasFlag(OPT_warn_symbol_ordering, OPT_no_warn_symbol_ordering, true);
 1128   config->writeAddends = args.hasFlag(OPT_apply_dynamic_relocs,
 1133       args.hasFlag(OPT_toc_optimize, OPT_no_toc_optimize, m == EM_PPC64);
tools/lld/MinGW/Driver.cpp
  285   if (args.hasFlag(OPT_no_insert_timestamp, OPT_insert_timestamp, false))
  288   if (args.hasFlag(OPT_gc_sections, OPT_no_gc_sections, false))
tools/lld/wasm/Driver.cpp
  307       args.hasFlag(OPT_check_features, OPT_no_check_features, true);
  309   config->demangle = args.hasFlag(OPT_demangle, OPT_no_demangle, true);
  317       args.hasFlag(OPT_fatal_warnings, OPT_no_fatal_warnings, false);
  327       args.hasFlag(OPT_gc_sections, OPT_no_gc_sections, !config->relocatable);
  329       args.hasFlag(OPT_merge_data_segments, OPT_no_merge_data_segments,
  331   config->pie = args.hasFlag(OPT_pie, OPT_no_pie, false);
  333       args.hasFlag(OPT_print_gc_sections, OPT_no_print_gc_sections, false);
  348   threadsEnabled = args.hasFlag(OPT_threads, OPT_no_threads, true);
  358       args.hasFlag(OPT_export_dynamic, OPT_no_export_dynamic, config->shared);
tools/llvm-objcopy/CopyConfig.cpp
  623         InputArgs.hasFlag(OBJCOPY_discard_all, OBJCOPY_discard_locals)
  701   Config.DeterministicArchives = InputArgs.hasFlag(
  814         InputArgs.hasFlag(STRIP_discard_all, STRIP_discard_locals)
  854       InputArgs.hasFlag(STRIP_enable_deterministic_archives,