@@ -1507,8 +1507,9 @@ def fconstexpr_steps_EQ : Joined<["-"], "fconstexpr-steps=">, Group<f_Group>;
1507
1507
def fexperimental_new_constant_interpreter : Flag<["-"], "fexperimental-new-constant-interpreter">, Group<f_Group>,
1508
1508
HelpText<"Enable the experimental new constant interpreter">, Flags<[CC1Option]>,
1509
1509
MarshallingInfoFlag<LangOpts<"EnableNewConstInterp">>;
1510
- def fconstexpr_backtrace_limit_EQ : Joined<["-"], "fconstexpr-backtrace-limit=">,
1511
- Group<f_Group>;
1510
+ def fconstexpr_backtrace_limit_EQ : Joined<["-"], "fconstexpr-backtrace-limit=">, Group<f_Group>, Flags<[CC1Option]>,
1511
+ HelpText<"Set the maximum number of entries to print in a constexpr evaluation backtrace (0 = no limit)">,
1512
+ MarshallingInfoInt<DiagnosticOpts<"ConstexprBacktraceLimit">, "DiagnosticOptions::DefaultConstexprBacktraceLimit">;
1512
1513
def fcrash_diagnostics_EQ : Joined<["-"], "fcrash-diagnostics=">, Group<f_clang_Group>, Flags<[NoArgumentUnused, CoreOption]>,
1513
1514
HelpText<"Set level of crash diagnostic reporting, (option: off, compiler, all)">;
1514
1515
def fcrash_diagnostics : Flag<["-"], "fcrash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused, CoreOption]>,
@@ -2289,7 +2290,9 @@ def fthin_link_bitcode_EQ : Joined<["-"], "fthin-link-bitcode=">,
2289
2290
HelpText<"Write minimized bitcode to <file> for the ThinLTO thin link only">,
2290
2291
MarshallingInfoString<CodeGenOpts<"ThinLinkBitcodeFile">>;
2291
2292
def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">,
2292
- Group<f_Group>, Flags<[NoXarchOption, CoreOption]>;
2293
+ Group<f_Group>, Flags<[NoXarchOption, CC1Option, CoreOption]>,
2294
+ HelpText<"Set the maximum number of entries to print in a macro expansion backtrace (0 = no limit)">,
2295
+ MarshallingInfoInt<DiagnosticOpts<"MacroBacktraceLimit">, "DiagnosticOptions::DefaultMacroBacktraceLimit">;
2293
2296
defm merge_all_constants : BoolFOption<"merge-all-constants",
2294
2297
CodeGenOpts<"MergeAllConstants">, DefaultFalse,
2295
2298
PosFlag<SetTrue, [CC1Option, CoreOption], "Allow">, NegFlag<SetFalse, [], "Disallow">,
@@ -2893,7 +2896,9 @@ defm show_source_location : BoolFOption<"show-source-location",
2893
2896
defm spell_checking : BoolFOption<"spell-checking",
2894
2897
LangOpts<"SpellChecking">, DefaultTrue,
2895
2898
NegFlag<SetFalse, [CC1Option], "Disable spell-checking">, PosFlag<SetTrue>>;
2896
- def fspell_checking_limit_EQ : Joined<["-"], "fspell-checking-limit=">, Group<f_Group>;
2899
+ def fspell_checking_limit_EQ : Joined<["-"], "fspell-checking-limit=">, Group<f_Group>, Flags<[CC1Option]>,
2900
+ HelpText<"Set the maximum number of times to perform spell checking on unrecognized identifiers (0 = no limit)">,
2901
+ MarshallingInfoInt<DiagnosticOpts<"SpellCheckingLimit">, "DiagnosticOptions::DefaultSpellCheckingLimit">;
2897
2902
def fsigned_bitfields : Flag<["-"], "fsigned-bitfields">, Group<f_Group>;
2898
2903
defm signed_char : BoolFOption<"signed-char",
2899
2904
LangOpts<"CharIsSigned">, DefaultTrue,
@@ -2962,10 +2967,13 @@ def fsyntax_only : Flag<["-"], "fsyntax-only">,
2962
2967
Flags<[NoXarchOption,CoreOption,CC1Option,FC1Option,FlangOption]>, Group<Action_Group>,
2963
2968
HelpText<"Run the preprocessor, parser and semantic analysis stages">;
2964
2969
def ftabstop_EQ : Joined<["-"], "ftabstop=">, Group<f_Group>;
2965
- def ftemplate_depth_EQ : Joined<["-"], "ftemplate-depth=">, Group<f_Group>;
2966
- def ftemplate_depth_ : Joined<["-"], "ftemplate-depth-">, Group<f_Group>;
2967
- def ftemplate_backtrace_limit_EQ : Joined<["-"], "ftemplate-backtrace-limit=">,
2968
- Group<f_Group>;
2970
+ def ftemplate_depth_EQ : Joined<["-"], "ftemplate-depth=">, Group<f_Group>, Flags<[CC1Option]>,
2971
+ HelpText<"Set the maximum depth of recursive template instantiation">,
2972
+ MarshallingInfoInt<LangOpts<"InstantiationDepth">, "1024">;
2973
+ def : Joined<["-"], "ftemplate-depth-">, Group<f_Group>, Alias<ftemplate_depth_EQ>;
2974
+ def ftemplate_backtrace_limit_EQ : Joined<["-"], "ftemplate-backtrace-limit=">, Group<f_Group>, Flags<[CC1Option]>,
2975
+ HelpText<"Set the maximum number of entries to print in a template instantiation backtrace (0 = no limit)">,
2976
+ MarshallingInfoInt<DiagnosticOpts<"TemplateBacktraceLimit">, "DiagnosticOptions::DefaultTemplateBacktraceLimit">;
2969
2977
def foperator_arrow_depth_EQ : Joined<["-"], "foperator-arrow-depth=">,
2970
2978
Group<f_Group>;
2971
2979
@@ -5926,18 +5934,6 @@ def ftabstop : Separate<["-"], "ftabstop">, MetaVarName<"<N>">,
5926
5934
def ferror_limit : Separate<["-"], "ferror-limit">, MetaVarName<"<N>">,
5927
5935
HelpText<"Set the maximum number of errors to emit before stopping (0 = no limit).">,
5928
5936
MarshallingInfoInt<DiagnosticOpts<"ErrorLimit">>;
5929
- def fmacro_backtrace_limit : Separate<["-"], "fmacro-backtrace-limit">, MetaVarName<"<N>">,
5930
- HelpText<"Set the maximum number of entries to print in a macro expansion backtrace (0 = no limit).">,
5931
- MarshallingInfoInt<DiagnosticOpts<"MacroBacktraceLimit">, "DiagnosticOptions::DefaultMacroBacktraceLimit">;
5932
- def ftemplate_backtrace_limit : Separate<["-"], "ftemplate-backtrace-limit">, MetaVarName<"<N>">,
5933
- HelpText<"Set the maximum number of entries to print in a template instantiation backtrace (0 = no limit).">,
5934
- MarshallingInfoInt<DiagnosticOpts<"TemplateBacktraceLimit">, "DiagnosticOptions::DefaultTemplateBacktraceLimit">;
5935
- def fconstexpr_backtrace_limit : Separate<["-"], "fconstexpr-backtrace-limit">, MetaVarName<"<N>">,
5936
- HelpText<"Set the maximum number of entries to print in a constexpr evaluation backtrace (0 = no limit).">,
5937
- MarshallingInfoInt<DiagnosticOpts<"ConstexprBacktraceLimit">, "DiagnosticOptions::DefaultConstexprBacktraceLimit">;
5938
- def fspell_checking_limit : Separate<["-"], "fspell-checking-limit">, MetaVarName<"<N>">,
5939
- HelpText<"Set the maximum number of times to perform spell checking on unrecognized identifiers (0 = no limit).">,
5940
- MarshallingInfoInt<DiagnosticOpts<"SpellCheckingLimit">, "DiagnosticOptions::DefaultSpellCheckingLimit">;
5941
5937
def fcaret_diagnostics_max_lines :
5942
5938
Separate<["-"], "fcaret-diagnostics-max-lines">, MetaVarName<"<N>">,
5943
5939
HelpText<"Set the maximum number of source lines to show in a caret diagnostic">,
@@ -6395,9 +6391,6 @@ def ftype_visibility : Joined<["-"], "ftype-visibility=">,
6395
6391
def fapply_global_visibility_to_externs : Flag<["-"], "fapply-global-visibility-to-externs">,
6396
6392
HelpText<"Apply global symbol visibility to external declarations without an explicit visibility">,
6397
6393
MarshallingInfoFlag<LangOpts<"SetVisibilityForExternDecls">>;
6398
- def ftemplate_depth : Separate<["-"], "ftemplate-depth">,
6399
- HelpText<"Maximum depth of recursive template instantiation">,
6400
- MarshallingInfoInt<LangOpts<"InstantiationDepth">, "1024">;
6401
6394
def foperator_arrow_depth : Separate<["-"], "foperator-arrow-depth">,
6402
6395
HelpText<"Maximum number of 'operator->'s to call for a member access">,
6403
6396
MarshallingInfoInt<LangOpts<"ArrowDepth">, "256">;
0 commit comments