Lines Matching refs:hasArg
135 if (Args.hasArg(Opt)) in normalizeSimpleFlag()
143 if (Args.hasArg(Opt)) in normalizeSimpleNegativeFlag()
165 if (Args.hasArg(Opt)) in operator ()()
326 if (IK.getLanguage() == Language::OpenCL && !Args.hasArg(OPT_cl_opt_disable)) in getOptimizationLevel()
696 Opts.ParseAllComments = Args.hasArg(OPT_fparse_all_comments); in ParseCommentArgs()
907 Opts.DebugColumnInfo = !Args.hasArg(OPT_gno_column_info); in ParseCodeGenArgs()
908 Opts.EmitCodeView = Args.hasArg(OPT_gcodeview); in ParseCodeGenArgs()
909 Opts.CodeViewGHash = Args.hasArg(OPT_gcodeview_ghash); in ParseCodeGenArgs()
910 Opts.MacroDebugInfo = Args.hasArg(OPT_debug_info_macro); in ParseCodeGenArgs()
911 Opts.WholeProgramVTables = Args.hasArg(OPT_fwhole_program_vtables); in ParseCodeGenArgs()
913 Args.hasArg(OPT_fvirtual_function_elimination); in ParseCodeGenArgs()
914 Opts.LTOVisibilityPublicStd = Args.hasArg(OPT_flto_visibility_public_std); in ParseCodeGenArgs()
918 Opts.SplitDwarfInlining = !Args.hasArg(OPT_fno_split_dwarf_inlining); in ParseCodeGenArgs()
919 Opts.DebugTypeExtRefs = Args.hasArg(OPT_dwarf_ext_refs); in ParseCodeGenArgs()
920 Opts.DebugExplicitImport = Args.hasArg(OPT_dwarf_explicit_import); in ParseCodeGenArgs()
921 Opts.DebugFwdTemplateParams = Args.hasArg(OPT_debug_forward_template_params); in ParseCodeGenArgs()
922 Opts.EmbedSource = Args.hasArg(OPT_gembed_source); in ParseCodeGenArgs()
923 Opts.ForceDwarfFrameSection = Args.hasArg(OPT_fforce_dwarf_frame); in ParseCodeGenArgs()
935 Opts.DisableLLVMPasses = Args.hasArg(OPT_disable_llvm_passes); in ParseCodeGenArgs()
936 Opts.DisableLifetimeMarkers = Args.hasArg(OPT_disable_lifetimemarkers); in ParseCodeGenArgs()
949 Args.hasArg(OPT_fexperimental_debug_variable_locations); in ParseCodeGenArgs()
951 Opts.DisableO0ImplyOptNone = Args.hasArg(OPT_disable_O0_optnone); in ParseCodeGenArgs()
952 Opts.DisableRedZone = Args.hasArg(OPT_disable_red_zone); in ParseCodeGenArgs()
953 Opts.IndirectTlsSegRefs = Args.hasArg(OPT_mno_tls_direct_seg_refs); in ParseCodeGenArgs()
954 Opts.ForbidGuardVariables = Args.hasArg(OPT_fforbid_guard_variables); in ParseCodeGenArgs()
955 Opts.UseRegisterSizedBitfieldAccess = Args.hasArg( in ParseCodeGenArgs()
957 Opts.RelaxedAliasing = Args.hasArg(OPT_relaxed_aliasing); in ParseCodeGenArgs()
958 Opts.StructPathTBAA = !Args.hasArg(OPT_no_struct_path_tbaa); in ParseCodeGenArgs()
959 Opts.NewStructPathTBAA = !Args.hasArg(OPT_no_struct_path_tbaa) && in ParseCodeGenArgs()
960 Args.hasArg(OPT_new_struct_path_tbaa); in ParseCodeGenArgs()
968 Opts.MergeAllConstants = Args.hasArg(OPT_fmerge_all_constants); in ParseCodeGenArgs()
969 Opts.NoCommon = !Args.hasArg(OPT_fcommon); in ParseCodeGenArgs()
970 Opts.NoInlineLineTables = Args.hasArg(OPT_gno_inline_line_tables); in ParseCodeGenArgs()
971 Opts.NoImplicitFloat = Args.hasArg(OPT_no_implicit_float); in ParseCodeGenArgs()
973 Opts.SimplifyLibCalls = !(Args.hasArg(OPT_fno_builtin) || in ParseCodeGenArgs()
974 Args.hasArg(OPT_ffreestanding)); in ParseCodeGenArgs()
980 Opts.RerollLoops = Args.hasArg(OPT_freroll_loops); in ParseCodeGenArgs()
982 Opts.DisableIntegratedAS = Args.hasArg(OPT_fno_integrated_as); in ParseCodeGenArgs()
983 Opts.Autolink = !Args.hasArg(OPT_fno_autolink); in ParseCodeGenArgs()
992 Args.hasArg(OPT_ggnu_pubnames) in ParseCodeGenArgs()
994 : Args.hasArg(OPT_gpubnames) in ParseCodeGenArgs()
997 Opts.DebugRangesBaseAddress = Args.hasArg(OPT_fdebug_ranges_base_address); in ParseCodeGenArgs()
1000 Opts.AtomicProfileUpdate = Args.hasArg(OPT_fprofile_update_EQ); in ParseCodeGenArgs()
1017 Opts.DumpCoverageMapping = Args.hasArg(OPT_dump_coverage_mapping); in ParseCodeGenArgs()
1018 Opts.AsmVerbose = !Args.hasArg(OPT_fno_verbose_asm); in ParseCodeGenArgs()
1019 Opts.PreserveAsmComments = !Args.hasArg(OPT_fno_preserve_as_comments); in ParseCodeGenArgs()
1020 Opts.AssumeSaneOperatorNew = !Args.hasArg(OPT_fno_assume_sane_operator_new); in ParseCodeGenArgs()
1021 Opts.ObjCAutoRefCountExceptions = Args.hasArg(OPT_fobjc_arc_exceptions); in ParseCodeGenArgs()
1022 Opts.CXAAtExit = !Args.hasArg(OPT_fno_use_cxa_atexit); in ParseCodeGenArgs()
1024 Args.hasArg(OPT_fregister_global_dtors_with_atexit); in ParseCodeGenArgs()
1025 Opts.CXXCtorDtorAliases = Args.hasArg(OPT_mconstructor_aliases); in ParseCodeGenArgs()
1069 Opts.DisableFree = Args.hasArg(OPT_disable_free); in ParseCodeGenArgs()
1070 Opts.DiscardValueNames = Args.hasArg(OPT_discard_value_names); in ParseCodeGenArgs()
1071 Opts.DisableTailCalls = Args.hasArg(OPT_mdisable_tail_calls); in ParseCodeGenArgs()
1073 Args.hasArg(OPT_fno_escaping_block_tail_calls); in ParseCodeGenArgs()
1079 !Args.hasArg(OPT_fno_strict_float_cast_overflow); in ParseCodeGenArgs()
1081 Opts.NoZeroInitializedInBSS = Args.hasArg(OPT_fno_zero_initialized_in_bss); in ParseCodeGenArgs()
1083 Opts.NoExecStack = Args.hasArg(OPT_mno_exec_stack); in ParseCodeGenArgs()
1086 Opts.FatalWarnings = Args.hasArg(OPT_massembler_fatal_warnings); in ParseCodeGenArgs()
1087 Opts.NoWarn = Args.hasArg(OPT_massembler_no_warn); in ParseCodeGenArgs()
1088 Opts.EnableSegmentedStacks = Args.hasArg(OPT_split_stacks); in ParseCodeGenArgs()
1089 Opts.RelaxAll = Args.hasArg(OPT_mrelax_all); in ParseCodeGenArgs()
1091 Args.hasArg(OPT_mincremental_linker_compatible); in ParseCodeGenArgs()
1093 Args.hasArg(OPT_mpie_copy_relocations); in ParseCodeGenArgs()
1094 Opts.NoPLT = Args.hasArg(OPT_fno_plt); in ParseCodeGenArgs()
1095 Opts.SaveTempLabels = Args.hasArg(OPT_msave_temp_labels); in ParseCodeGenArgs()
1096 Opts.NoDwarfDirectoryAsm = Args.hasArg(OPT_fno_dwarf_directory_asm); in ParseCodeGenArgs()
1097 Opts.SoftFloat = Args.hasArg(OPT_msoft_float); in ParseCodeGenArgs()
1098 Opts.StrictEnums = Args.hasArg(OPT_fstrict_enums); in ParseCodeGenArgs()
1099 Opts.StrictReturn = !Args.hasArg(OPT_fno_strict_return); in ParseCodeGenArgs()
1100 Opts.StrictVTablePointers = Args.hasArg(OPT_fstrict_vtable_pointers); in ParseCodeGenArgs()
1101 Opts.ForceEmitVTables = Args.hasArg(OPT_fforce_emit_vtables); in ParseCodeGenArgs()
1102 Opts.UnwindTables = Args.hasArg(OPT_munwind_tables); in ParseCodeGenArgs()
1104 Opts.UseInitArray = !Args.hasArg(OPT_fno_use_init_array); in ParseCodeGenArgs()
1111 Args.hasArg(OPT_ffunction_sections) || in ParseCodeGenArgs()
1114 Opts.DataSections = Args.hasArg(OPT_fdata_sections); in ParseCodeGenArgs()
1115 Opts.StackSizeSection = Args.hasArg(OPT_fstack_size_section); in ParseCodeGenArgs()
1116 Opts.UniqueSectionNames = !Args.hasArg(OPT_fno_unique_section_names); in ParseCodeGenArgs()
1118 Args.hasArg(OPT_funique_basic_block_section_names); in ParseCodeGenArgs()
1120 Args.hasArg(OPT_funique_internal_linkage_names); in ParseCodeGenArgs()
1122 Opts.SplitMachineFunctions = Args.hasArg(OPT_fsplit_machine_functions); in ParseCodeGenArgs()
1124 Opts.MergeFunctions = Args.hasArg(OPT_fmerge_functions); in ParseCodeGenArgs()
1126 Opts.NoUseJumpTables = Args.hasArg(OPT_fno_jump_tables); in ParseCodeGenArgs()
1128 Opts.NullPointerIsValid = Args.hasArg(OPT_fno_delete_null_pointer_checks); in ParseCodeGenArgs()
1130 Opts.ProfileSampleAccurate = Args.hasArg(OPT_fprofile_sample_accurate); in ParseCodeGenArgs()
1132 Opts.PrepareForLTO = Args.hasArg(OPT_flto, OPT_flto_EQ); in ParseCodeGenArgs()
1142 Opts.EnableSplitLTOUnit = Args.hasArg(OPT_fsplit_lto_unit); in ParseCodeGenArgs()
1161 if (Args.hasArg(OPT_fmemory_profile_EQ)) { in ParseCodeGenArgs()
1166 } else if (Args.hasArg(OPT_fmemory_profile)) in ParseCodeGenArgs()
1169 Opts.MSVolatile = Args.hasArg(OPT_fms_volatile); in ParseCodeGenArgs()
1171 Opts.VectorizeLoop = Args.hasArg(OPT_vectorize_loops); in ParseCodeGenArgs()
1172 Opts.VectorizeSLP = Args.hasArg(OPT_vectorize_slp); in ParseCodeGenArgs()
1178 Opts.VerifyModule = !Args.hasArg(OPT_disable_llvm_verifier); in ParseCodeGenArgs()
1180 Opts.ControlFlowGuardNoChecks = Args.hasArg(OPT_cfguard_no_checks); in ParseCodeGenArgs()
1181 Opts.ControlFlowGuard = Args.hasArg(OPT_cfguard); in ParseCodeGenArgs()
1183 Opts.EmitGcovNotes = Args.hasArg(OPT_ftest_coverage); in ParseCodeGenArgs()
1184 Opts.EmitGcovArcs = Args.hasArg(OPT_fprofile_arcs); in ParseCodeGenArgs()
1194 if (Args.hasArg(OPT_coverage_version_EQ)) { in ParseCodeGenArgs()
1242 Opts.PreserveVec3Type = Args.hasArg(OPT_fpreserve_vec3_type); in ParseCodeGenArgs()
1243 Opts.InstrumentFunctions = Args.hasArg(OPT_finstrument_functions); in ParseCodeGenArgs()
1245 Args.hasArg(OPT_finstrument_functions_after_inlining); in ParseCodeGenArgs()
1247 Args.hasArg(OPT_finstrument_function_entry_bare); in ParseCodeGenArgs()
1269 Opts.InstrumentForProfiling = Args.hasArg(OPT_pg); in ParseCodeGenArgs()
1270 Opts.CallFEntry = Args.hasArg(OPT_mfentry); in ParseCodeGenArgs()
1271 Opts.MNopMCount = Args.hasArg(OPT_mnop_mcount); in ParseCodeGenArgs()
1272 Opts.RecordMCount = Args.hasArg(OPT_mrecord_mcount); in ParseCodeGenArgs()
1273 Opts.PackedStack = Args.hasArg(OPT_mpacked_stack); in ParseCodeGenArgs()
1299 Opts.RelaxELFRelocations = Args.hasArg(OPT_mrelax_relocations); in ParseCodeGenArgs()
1318 Args.hasArg(OPT_fsanitize_coverage_indirect_calls); in ParseCodeGenArgs()
1319 Opts.SanitizeCoverageTraceBB = Args.hasArg(OPT_fsanitize_coverage_trace_bb); in ParseCodeGenArgs()
1320 Opts.SanitizeCoverageTraceCmp = Args.hasArg(OPT_fsanitize_coverage_trace_cmp); in ParseCodeGenArgs()
1321 Opts.SanitizeCoverageTraceDiv = Args.hasArg(OPT_fsanitize_coverage_trace_div); in ParseCodeGenArgs()
1322 Opts.SanitizeCoverageTraceGep = Args.hasArg(OPT_fsanitize_coverage_trace_gep); in ParseCodeGenArgs()
1324 Args.hasArg(OPT_fsanitize_coverage_8bit_counters); in ParseCodeGenArgs()
1325 Opts.SanitizeCoverageTracePC = Args.hasArg(OPT_fsanitize_coverage_trace_pc); in ParseCodeGenArgs()
1327 Args.hasArg(OPT_fsanitize_coverage_trace_pc_guard); in ParseCodeGenArgs()
1328 Opts.SanitizeCoverageNoPrune = Args.hasArg(OPT_fsanitize_coverage_no_prune); in ParseCodeGenArgs()
1330 Args.hasArg(OPT_fsanitize_coverage_inline_8bit_counters); in ParseCodeGenArgs()
1332 Args.hasArg(OPT_fsanitize_coverage_inline_bool_flag); in ParseCodeGenArgs()
1333 Opts.SanitizeCoveragePCTable = Args.hasArg(OPT_fsanitize_coverage_pc_table); in ParseCodeGenArgs()
1335 Args.hasArg(OPT_fsanitize_coverage_stack_depth); in ParseCodeGenArgs()
1346 Opts.SanitizeMinimalRuntime = Args.hasArg(OPT_fsanitize_minimal_runtime); in ParseCodeGenArgs()
1347 Opts.SanitizeCfiCrossDso = Args.hasArg(OPT_fsanitize_cfi_cross_dso); in ParseCodeGenArgs()
1349 Args.hasArg(OPT_fsanitize_cfi_icall_generalize_pointers); in ParseCodeGenArgs()
1351 Args.hasArg(OPT_fsanitize_cfi_canonical_jump_tables); in ParseCodeGenArgs()
1352 Opts.SanitizeStats = Args.hasArg(OPT_fsanitize_stats); in ParseCodeGenArgs()
1366 Args.hasArg(OPT_fsanitize_address_globals_dead_stripping); in ParseCodeGenArgs()
1389 Opts.StackRealignment = Args.hasArg(OPT_mstackrealign); in ParseCodeGenArgs()
1404 Opts.NoStackArgProbe = Args.hasArg(OPT_mno_stack_arg_probe); in ParseCodeGenArgs()
1406 Opts.StackClashProtector = Args.hasArg(OPT_fstack_clash_protection); in ParseCodeGenArgs()
1425 if (Args.hasArg(OPT_fno_objc_convert_messages_to_runtime_calls)) in ParseCodeGenArgs()
1489 if (T.isOSAIX() && (Args.hasArg(OPT_mignore_xcoff_visibility) || in ParseCodeGenArgs()
1490 !Args.hasArg(OPT_fvisibility))) in ParseCodeGenArgs()
1546 Args.hasArg(options::OPT_fdiagnostics_show_hotness); in ParseCodeGenArgs()
1601 Opts.Backchain = Args.hasArg(OPT_mbackchain); in ParseCodeGenArgs()
1608 Opts.Addrsig = Args.hasArg(OPT_faddrsig); in ParseCodeGenArgs()
1610 Opts.KeepStaticConsts = Args.hasArg(OPT_fkeep_static_consts); in ParseCodeGenArgs()
1612 Opts.SpeculativeLoadHardening = Args.hasArg(OPT_mspeculative_load_hardening); in ParseCodeGenArgs()
1621 Opts.ForceAAPCSBitfieldLoad = Args.hasArg(OPT_ForceAAPCSBitfieldLoad); in ParseCodeGenArgs()
1625 Opts.PassByValueIsNoAlias = Args.hasArg(OPT_fpass_by_value_is_noalias); in ParseCodeGenArgs()
1636 if (Args.hasArg(OPT_show_includes)) { in ParseDependencyOutputArgs()
1640 if (Args.hasArg(options::OPT_E) || Args.hasArg(options::OPT_P)) in ParseDependencyOutputArgs()
1653 if (!Args.hasArg(OPT_fno_sanitize_blacklist)) { in ParseDependencyOutputArgs()
1744 Opts.IgnoreWarnings = Args.hasArg(OPT_w); in ParseDiagnosticArgs()
1745 Opts.NoRewriteMacros = Args.hasArg(OPT_Wno_rewrite_macros); in ParseDiagnosticArgs()
1746 Opts.Pedantic = Args.hasArg(OPT_pedantic); in ParseDiagnosticArgs()
1747 Opts.PedanticErrors = Args.hasArg(OPT_pedantic_errors); in ParseDiagnosticArgs()
1748 Opts.ShowCarets = !Args.hasArg(OPT_fno_caret_diagnostics); in ParseDiagnosticArgs()
1750 Opts.ShowColumn = !Args.hasArg(OPT_fno_show_column); in ParseDiagnosticArgs()
1751 Opts.ShowFixits = !Args.hasArg(OPT_fno_diagnostics_fixit_info); in ParseDiagnosticArgs()
1752 Opts.ShowLocation = !Args.hasArg(OPT_fno_show_source_location); in ParseDiagnosticArgs()
1753 Opts.AbsolutePath = Args.hasArg(OPT_fdiagnostics_absolute_paths); in ParseDiagnosticArgs()
1754 Opts.ShowOptionNames = !Args.hasArg(OPT_fno_diagnostics_show_option); in ParseDiagnosticArgs()
1812 Opts.ShowSourceRanges = Args.hasArg(OPT_fdiagnostics_print_source_range_info); in ParseDiagnosticArgs()
1813 Opts.ShowParseableFixits = Args.hasArg(OPT_fdiagnostics_parseable_fixits); in ParseDiagnosticArgs()
1814 Opts.ShowPresumedLoc = !Args.hasArg(OPT_fno_diagnostics_use_presumed_location); in ParseDiagnosticArgs()
1815 Opts.VerifyDiagnostics = Args.hasArg(OPT_verify) || Args.hasArg(OPT_verify_EQ); in ParseDiagnosticArgs()
1817 if (Args.hasArg(OPT_verify)) in ParseDiagnosticArgs()
1831 if (Args.hasArg(OPT_verify_ignore_unexpected)) in ParseDiagnosticArgs()
1834 Opts.ElideType = !Args.hasArg(OPT_fno_elide_type); in ParseDiagnosticArgs()
1835 Opts.ShowTemplateTree = Args.hasArg(OPT_fdiagnostics_show_template_tree); in ParseDiagnosticArgs()
1969 Args.hasArg(OPT_interface_stub_version_EQ) in ParseFrontendArgs()
2070 Opts.ASTDumpDecls = Args.hasArg(OPT_ast_dump, OPT_ast_dump_EQ); in ParseFrontendArgs()
2071 Opts.ASTDumpAll = Args.hasArg(OPT_ast_dump_all, OPT_ast_dump_all_EQ); in ParseFrontendArgs()
2081 Opts.AllowPCMWithCompilerErrors = Args.hasArg(OPT_fallow_pcm_with_errors); in ParseFrontendArgs()
2090 if (Args.hasArg(OPT_aux_target_cpu)) in ParseFrontendArgs()
2092 if (Args.hasArg(OPT_aux_target_feature)) in ParseFrontendArgs()
2251 Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot); in ParseHeaderSearchArgs()
2626 if (Args.hasArg(OPT_fno_dllexport_inlines)) in ParseLangArgs()
2657 Opts.SYCL = Args.hasArg(options::OPT_fsycl); in ParseLangArgs()
2658 Opts.SYCLIsDevice = Opts.SYCL && Args.hasArg(options::OPT_fsycl_is_device); in ParseLangArgs()
2675 Opts.IncludeDefaultHeader = Args.hasArg(OPT_finclude_default_header); in ParseLangArgs()
2676 Opts.DeclareOpenCLBuiltins = Args.hasArg(OPT_fdeclare_opencl_builtins); in ParseLangArgs()
2701 if (Args.hasArg(OPT_fno_operator_names)) in ParseLangArgs()
2704 if (Args.hasArg(OPT_fcuda_is_device)) in ParseLangArgs()
2707 if (Args.hasArg(OPT_fcuda_allow_variadic_functions)) in ParseLangArgs()
2710 if (Args.hasArg(OPT_fno_cuda_host_device_constexpr)) in ParseLangArgs()
2713 if (Args.hasArg(OPT_fgpu_exclude_wrong_side_overloads)) in ParseLangArgs()
2716 if (Args.hasArg(OPT_fgpu_defer_diag)) in ParseLangArgs()
2719 if (Opts.CUDAIsDevice && Args.hasArg(OPT_fcuda_approx_transcendentals)) in ParseLangArgs()
2722 Opts.GPURelocatableDeviceCode = Args.hasArg(OPT_fgpu_rdc); in ParseLangArgs()
2723 if (Args.hasArg(OPT_fgpu_allow_device_init)) { in ParseLangArgs()
2730 Opts.HIPUseNewLaunchAPI = Args.hasArg(OPT_fhip_new_launch_api); in ParseLangArgs()
2734 else if (Args.hasArg(OPT_gpu_max_threads_per_block_EQ)) in ParseLangArgs()
2745 if (Args.hasArg(OPT_fobjc_gc_only)) in ParseLangArgs()
2747 else if (Args.hasArg(OPT_fobjc_gc)) in ParseLangArgs()
2749 else if (Args.hasArg(OPT_fobjc_arc)) { in ParseLangArgs()
2759 if (Args.hasArg(OPT_fobjc_runtime_has_weak)) in ParseLangArgs()
2780 if (Args.hasArg(OPT_fno_objc_infer_related_result_type)) in ParseLangArgs()
2783 if (Args.hasArg(OPT_fobjc_subscripting_legacy_runtime)) in ParseLangArgs()
2803 if (Args.hasArg(OPT_fgnu89_inline)) { in ParseLangArgs()
2811 if (Args.hasArg(OPT_fapple_kext)) { in ParseLangArgs()
2818 if (Args.hasArg(OPT_print_ivar_layout)) in ParseLangArgs()
2821 if (Args.hasArg(OPT_fno_constant_cfstrings)) in ParseLangArgs()
2834 if (Args.hasArg(OPT_fzvector)) in ParseLangArgs()
2837 if (Args.hasArg(OPT_pthread)) in ParseLangArgs()
2854 if (Args.hasArg(OPT_fvisibility_inlines_hidden)) in ParseLangArgs()
2857 if (Args.hasArg(OPT_fvisibility_inlines_hidden_static_local_var)) in ParseLangArgs()
2860 if (Args.hasArg(OPT_fvisibility_global_new_delete_hidden)) in ParseLangArgs()
2863 if (Args.hasArg(OPT_fapply_global_visibility_to_externs)) in ParseLangArgs()
2866 if (Args.hasArg(OPT_fvisibility_from_dllstorageclass)) { in ParseLangArgs()
2898 if (Args.hasArg(OPT_ftrapv)) { in ParseLangArgs()
2904 else if (Args.hasArg(OPT_fwrapv)) in ParseLangArgs()
2907 Opts.MSVCCompat = Args.hasArg(OPT_fms_compatibility); in ParseLangArgs()
2908 Opts.MicrosoftExt = Opts.MSVCCompat || Args.hasArg(OPT_fms_extensions); in ParseLangArgs()
2909 Opts.AsmBlocks = Args.hasArg(OPT_fasm_blocks) || Opts.MicrosoftExt; in ParseLangArgs()
2933 Opts.PascalStrings = Args.hasArg(OPT_fpascal_strings); in ParseLangArgs()
2936 Opts.Borland = Args.hasArg(OPT_fborland_extensions); in ParseLangArgs()
2937 Opts.WritableStrings = Args.hasArg(OPT_fwritable_strings); in ParseLangArgs()
2952 if (Args.hasArg(OPT_fno_threadsafe_statics)) in ParseLangArgs()
2954 Opts.Exceptions = Args.hasArg(OPT_fexceptions); in ParseLangArgs()
2955 Opts.IgnoreExceptions = Args.hasArg(OPT_fignore_exceptions); in ParseLangArgs()
2956 Opts.ObjCExceptions = Args.hasArg(OPT_fobjc_exceptions); in ParseLangArgs()
2957 Opts.CXXExceptions = Args.hasArg(OPT_fcxx_exceptions); in ParseLangArgs()
2986 Opts.ExternCNoUnwind = Args.hasArg(OPT_fexternc_nounwind); in ParseLangArgs()
2987 Opts.TraditionalCPP = Args.hasArg(OPT_traditional_cpp); in ParseLangArgs()
2989 Opts.RTTI = Opts.CPlusPlus && !Args.hasArg(OPT_fno_rtti); in ParseLangArgs()
2990 Opts.RTTIData = Opts.RTTI && !Args.hasArg(OPT_fno_rtti_data); in ParseLangArgs()
2991 Opts.Blocks = Args.hasArg(OPT_fblocks) || (Opts.OpenCL in ParseLangArgs()
2993 Opts.BlocksRuntimeOptional = Args.hasArg(OPT_fblocks_runtime_optional); in ParseLangArgs()
2994 Opts.Coroutines = Opts.CPlusPlus20 || Args.hasArg(OPT_fcoroutines_ts); in ParseLangArgs()
2998 Args.hasArg(OPT_fconvergent_functions); in ParseLangArgs()
3006 Opts.ModulesTS = Args.hasArg(OPT_fmodules_ts); in ParseLangArgs()
3008 Args.hasArg(OPT_fmodules) || Opts.ModulesTS || Opts.CPlusPlusModules; in ParseLangArgs()
3009 Opts.ModulesStrictDeclUse = Args.hasArg(OPT_fmodules_strict_decluse); in ParseLangArgs()
3011 Args.hasArg(OPT_fmodules_decluse) || Opts.ModulesStrictDeclUse; in ParseLangArgs()
3015 Args.hasArg(OPT_fmodules_local_submodule_visibility) || Opts.ModulesTS || in ParseLangArgs()
3017 Opts.ModulesCodegen = Args.hasArg(OPT_fmodules_codegen); in ParseLangArgs()
3018 Opts.ModulesDebugInfo = Args.hasArg(OPT_fmodules_debuginfo); in ParseLangArgs()
3020 !Args.hasArg(OPT_fno_modules_search_all) && in ParseLangArgs()
3021 Args.hasArg(OPT_fmodules_search_all); in ParseLangArgs()
3022 Opts.ModulesErrorRecovery = !Args.hasArg(OPT_fno_modules_error_recovery); in ParseLangArgs()
3023 Opts.ImplicitModules = !Args.hasArg(OPT_fno_implicit_modules); in ParseLangArgs()
3024 Opts.CharIsSigned = Opts.OpenCL || !Args.hasArg(OPT_fno_signed_char); in ParseLangArgs()
3025 Opts.WChar = Opts.CPlusPlus && !Args.hasArg(OPT_fno_wchar); in ParseLangArgs()
3037 Opts.ShortEnums = Args.hasArg(OPT_fshort_enums); in ParseLangArgs()
3038 Opts.Freestanding = Args.hasArg(OPT_ffreestanding); in ParseLangArgs()
3039 Opts.NoBuiltin = Args.hasArg(OPT_fno_builtin) || Opts.Freestanding; in ParseLangArgs()
3042 Opts.NoMathBuiltin = Args.hasArg(OPT_fno_math_builtin); in ParseLangArgs()
3044 Args.hasArg(OPT_frelaxed_template_template_args); in ParseLangArgs()
3045 Opts.SizedDeallocation = Args.hasArg(OPT_fsized_deallocation); in ParseLangArgs()
3050 Opts.AlignedAllocation && Args.hasArg(OPT_aligned_alloc_unavailable); in ParseLangArgs()
3060 !Args.hasArg(OPT_fno_concept_satisfaction_caching); in ParseLangArgs()
3061 if (Args.hasArg(OPT_fconcepts_ts)) in ParseLangArgs()
3066 Opts.HeinousExtensions = Args.hasArg(OPT_fheinous_gnu_extensions); in ParseLangArgs()
3067 Opts.AccessControl = !Args.hasArg(OPT_fno_access_control); in ParseLangArgs()
3068 Opts.ElideConstructors = !Args.hasArg(OPT_fno_elide_constructors); in ParseLangArgs()
3069 Opts.MathErrno = !Opts.OpenCL && Args.hasArg(OPT_fmath_errno); in ParseLangArgs()
3079 Args.hasArg(OPT_fexperimental_new_constant_interpreter); in ParseLangArgs()
3081 Opts.DelayedTemplateParsing = Args.hasArg(OPT_fdelayed_template_parsing); in ParseLangArgs()
3084 Opts.MSBitfields = Args.hasArg(OPT_mms_bitfields); in ParseLangArgs()
3088 !Args.hasArg(OPT_disable_objc_default_synthesize_properties); in ParseLangArgs()
3090 Args.hasArg(OPT_fencode_extended_block_signature); in ParseLangArgs()
3091 Opts.EmitAllDecls = Args.hasArg(OPT_femit_all_decls); in ParseLangArgs()
3094 Opts.AlignDouble = Args.hasArg(OPT_malign_double); in ParseLangArgs()
3096 Opts.LongDoubleSize = Args.hasArg(OPT_mlong_double_128) in ParseLangArgs()
3098 : Args.hasArg(OPT_mlong_double_64) ? 64 : 0; in ParseLangArgs()
3099 Opts.PPCIEEELongDouble = Args.hasArg(OPT_mabi_EQ_ieeelongdouble); in ParseLangArgs()
3100 Opts.EnableAIXExtendedAltivecABI = Args.hasArg(OPT_mabi_EQ_vec_extabi); in ParseLangArgs()
3102 Opts.ROPI = Args.hasArg(OPT_fropi); in ParseLangArgs()
3103 Opts.RWPI = Args.hasArg(OPT_frwpi); in ParseLangArgs()
3104 Opts.PIE = Args.hasArg(OPT_pic_is_pie); in ParseLangArgs()
3105 Opts.Static = Args.hasArg(OPT_static_define); in ParseLangArgs()
3106 Opts.DumpRecordLayoutsSimple = Args.hasArg(OPT_fdump_record_layouts_simple); in ParseLangArgs()
3108 || Args.hasArg(OPT_fdump_record_layouts); in ParseLangArgs()
3109 Opts.DumpVTableLayouts = Args.hasArg(OPT_fdump_vtable_layouts); in ParseLangArgs()
3110 Opts.SpellChecking = !Args.hasArg(OPT_fno_spell_checking); in ParseLangArgs()
3111 Opts.NoBitFieldTypeAlign = Args.hasArg(OPT_fno_bitfield_type_align); in ParseLangArgs()
3114 Opts.HexagonQdsp6Compat = Args.hasArg(OPT_mqdsp6_compat); in ParseLangArgs()
3115 Opts.FakeAddressSpaceMap = Args.hasArg(OPT_ffake_address_space_map); in ParseLangArgs()
3116 Opts.ParseUnknownAnytype = Args.hasArg(OPT_funknown_anytype); in ParseLangArgs()
3117 Opts.DebuggerSupport = Args.hasArg(OPT_fdebugger_support); in ParseLangArgs()
3118 Opts.DebuggerCastResultToId = Args.hasArg(OPT_fdebugger_cast_result_to_id); in ParseLangArgs()
3119 Opts.DebuggerObjCLiteral = Args.hasArg(OPT_fdebugger_objc_literal); in ParseLangArgs()
3120 Opts.ApplePragmaPack = Args.hasArg(OPT_fapple_pragma_pack); in ParseLangArgs()
3123 Opts.AppExt = Args.hasArg(OPT_fapplication_extension); in ParseLangArgs()
3126 Opts.NativeHalfType |= Args.hasArg(OPT_fnative_half_type); in ParseLangArgs()
3127 Opts.NativeHalfArgsAndReturns |= Args.hasArg(OPT_fnative_half_arguments_and_returns); in ParseLangArgs()
3130 Opts.HalfArgsAndReturns = Args.hasArg(OPT_fallow_half_arguments_and_returns) in ParseLangArgs()
3132 Opts.GNUAsm = !Args.hasArg(OPT_fno_gnu_inline_asm); in ParseLangArgs()
3133 Opts.Cmse = Args.hasArg(OPT_mcmse); // Armv8-M Security Extensions in ParseLangArgs()
3219 Opts.SemanticInterposition = Args.hasArg(OPT_fsemantic_interposition); in ParseLangArgs()
3222 Args.hasArg(OPT_fno_semantic_interposition); in ParseLangArgs()
3240 Opts.OpenMP = Args.hasArg(options::OPT_fopenmp) ? 50 : 0; in ParseLangArgs()
3247 Opts.OpenMP && !Args.hasArg(options::OPT_fnoopenmp_use_tls); in ParseLangArgs()
3249 Opts.OpenMP && Args.hasArg(options::OPT_fopenmp_is_device); in ParseLangArgs()
3251 Opts.OpenMP && Args.hasArg(options::OPT_fopenmp_enable_irbuilder); in ParseLangArgs()
3253 Opts.OpenMPIsDevice || Args.hasArg(options::OPT_fopenmp_targets_EQ); in ParseLangArgs()
3298 Args.hasArg(options::OPT_fopenmp_optimistic_collapse) ? 1 : 0; in ParseLangArgs()
3345 Args.hasArg(options::OPT_fopenmp_cuda_mode); in ParseLangArgs()
3351 Args.hasArg(options::OPT_fopenmp_cuda_parallel_target_regions); in ParseLangArgs()
3356 Args.hasArg(options::OPT_fopenmp_cuda_force_full_runtime); in ParseLangArgs()
3394 if (Args.hasArg(OPT_frounding_math)) { in ParseLangArgs()
3399 if (Args.hasArg(OPT_ftrapping_math)) { in ParseLangArgs()
3403 if (Args.hasArg(OPT_fno_trapping_math)) { in ParseLangArgs()
3422 Args.hasArg(OPT_fretain_comments_from_system_headers); in ParseLangArgs()
3475 Opts.ForceEmitVTables = Args.hasArg(OPT_fforce_emit_vtables); in ParseLangArgs()
3478 Opts.AllowEditorPlaceholders = Args.hasArg(OPT_fallow_editor_placeholders); in ParseLangArgs()
3480 Opts.RegisterStaticDestructors = !Args.hasArg(OPT_fno_cxx_static_destructors); in ParseLangArgs()
3517 Opts.CompleteMemberPointers = Args.hasArg(OPT_fcomplete_member_pointers); in ParseLangArgs()
3518 Opts.BuildingPCHWithObjectFile = Args.hasArg(OPT_building_pch_with_obj); in ParseLangArgs()
3519 Opts.PCHInstantiateTemplates = Args.hasArg(OPT_fpch_instantiate_templates); in ParseLangArgs()
3521 Opts.MatrixTypes = Args.hasArg(OPT_fenable_matrix); in ParseLangArgs()
3557 Opts.BranchTargetEnforcement = Args.hasArg(OPT_mbranch_target_enforce); in ParseLangArgs()
3558 Opts.SpeculativeLoadHardening = Args.hasArg(OPT_mspeculative_load_hardening); in ParseLangArgs()
3561 Args.hasArg(OPT_fcompatibility_qualified_id_block_param_type_checking); in ParseLangArgs()
3627 Opts.PCHWithHdrStop = Args.hasArg(OPT_pch_through_hdrstop_create) || in ParsePreprocessorArgs()
3628 Args.hasArg(OPT_pch_through_hdrstop_use); in ParsePreprocessorArgs()
3629 Opts.PCHWithHdrStopCreate = Args.hasArg(OPT_pch_through_hdrstop_create); in ParsePreprocessorArgs()
3632 Opts.UsePredefines = !Args.hasArg(OPT_undef); in ParsePreprocessorArgs()
3633 Opts.DetailedRecord = Args.hasArg(OPT_detailed_preprocessing_record); in ParsePreprocessorArgs()
3634 Opts.DisablePCHValidation = Args.hasArg(OPT_fno_validate_pch); in ParsePreprocessorArgs()
3636 Args.hasArg(OPT_fallow_pch_with_errors, OPT_fallow_pcm_with_errors); in ParsePreprocessorArgs()
3638 Opts.DumpDeserializedPCHDecls = Args.hasArg(OPT_dump_deserialized_pch_decls); in ParsePreprocessorArgs()
3722 Opts.SetUpStaticAnalyzer = Args.hasArg(OPT_setup_static_analyzer); in ParsePreprocessorArgs()
3723 Opts.DisablePragmaDebugCrash = Args.hasArg(OPT_disable_pragma_debug_crash); in ParsePreprocessorArgs()
3730 Opts.ShowCPP = !Args.hasArg(OPT_dM); in ParsePreprocessorOutputArgs()
3734 Opts.ShowComments = Args.hasArg(OPT_C); in ParsePreprocessorOutputArgs()
3735 Opts.ShowLineMarkers = !Args.hasArg(OPT_P); in ParsePreprocessorOutputArgs()
3736 Opts.ShowMacroComments = Args.hasArg(OPT_CC); in ParsePreprocessorOutputArgs()
3737 Opts.ShowMacros = Args.hasArg(OPT_dM) || Args.hasArg(OPT_dD); in ParsePreprocessorOutputArgs()
3738 Opts.ShowIncludeDirectives = Args.hasArg(OPT_dI); in ParsePreprocessorOutputArgs()
3739 Opts.RewriteIncludes = Args.hasArg(OPT_frewrite_includes); in ParsePreprocessorOutputArgs()
3740 Opts.RewriteImports = Args.hasArg(OPT_frewrite_imports); in ParsePreprocessorOutputArgs()
3741 Opts.UseLineDirectives = Args.hasArg(OPT_fuse_line_directives); in ParsePreprocessorOutputArgs()
3864 if (Args.hasArg(OPT_fobjc_arc)) in CreateFromArgs()
3869 LangOpts.PIE = Args.hasArg(OPT_pic_is_pie); in CreateFromArgs()