Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Driver/Options.td
Show First 20 Lines • Show All 917 Lines • ▼ Show 20 Lines | |||||
def fdwarf2_cfi_asm : Flag<["-"], "fdwarf2-cfi-asm">, Group<clang_ignored_f_Group>; | def fdwarf2_cfi_asm : Flag<["-"], "fdwarf2-cfi-asm">, Group<clang_ignored_f_Group>; | ||||
def fno_dwarf2_cfi_asm : Flag<["-"], "fno-dwarf2-cfi-asm">, Group<clang_ignored_f_Group>; | def fno_dwarf2_cfi_asm : Flag<["-"], "fno-dwarf2-cfi-asm">, Group<clang_ignored_f_Group>; | ||||
defm dwarf_directory_asm : OptOutFFlag<"dwarf-directory-asm", "", "">; | defm dwarf_directory_asm : OptOutFFlag<"dwarf-directory-asm", "", "">; | ||||
def felide_constructors : Flag<["-"], "felide-constructors">, Group<f_Group>; | def felide_constructors : Flag<["-"], "felide-constructors">, Group<f_Group>; | ||||
def fno_elide_type : Flag<["-"], "fno-elide-type">, Group<f_Group>, | def fno_elide_type : Flag<["-"], "fno-elide-type">, Group<f_Group>, | ||||
Flags<[CC1Option]>, | Flags<[CC1Option]>, | ||||
HelpText<"Do not elide types when printing diagnostics">; | HelpText<"Do not elide types when printing diagnostics">; | ||||
def feliminate_unused_debug_symbols : Flag<["-"], "feliminate-unused-debug-symbols">, Group<f_Group>; | def feliminate_unused_debug_symbols : Flag<["-"], "feliminate-unused-debug-symbols">, Group<f_Group>; | ||||
defm eliminate_unused_debug_types : OptOutFFlag<"eliminate-unused-debug-types", | |||||
"Do not emit ", "Emit ", " debug info for defined but unused types">; | |||||
probinson: The positive form of the option suppresses info, so "Emit " and "Do not emit " are reversed… | |||||
def femit_all_decls : Flag<["-"], "femit-all-decls">, Group<f_Group>, Flags<[CC1Option]>, | def femit_all_decls : Flag<["-"], "femit-all-decls">, Group<f_Group>, Flags<[CC1Option]>, | ||||
HelpText<"Emit all declarations, even if unused">; | HelpText<"Emit all declarations, even if unused">; | ||||
def femulated_tls : Flag<["-"], "femulated-tls">, Group<f_Group>, Flags<[CC1Option]>, | def femulated_tls : Flag<["-"], "femulated-tls">, Group<f_Group>, Flags<[CC1Option]>, | ||||
HelpText<"Use emutls functions to access thread_local variables">; | HelpText<"Use emutls functions to access thread_local variables">; | ||||
def fno_emulated_tls : Flag<["-"], "fno-emulated-tls">, Group<f_Group>, Flags<[CC1Option]>; | def fno_emulated_tls : Flag<["-"], "fno-emulated-tls">, Group<f_Group>, Flags<[CC1Option]>; | ||||
def fencoding_EQ : Joined<["-"], "fencoding=">, Group<f_Group>; | def fencoding_EQ : Joined<["-"], "fencoding=">, Group<f_Group>; | ||||
def ferror_limit_EQ : Joined<["-"], "ferror-limit=">, Group<f_Group>, Flags<[CoreOption]>; | def ferror_limit_EQ : Joined<["-"], "ferror-limit=">, Group<f_Group>, Flags<[CoreOption]>; | ||||
defm exceptions : OptInFFlag<"exceptions", "Enable", "Disable", " support for exception handling">; | defm exceptions : OptInFFlag<"exceptions", "Enable", "Disable", " support for exception handling">; | ||||
▲ Show 20 Lines • Show All 570 Lines • ▼ Show 20 Lines | def fno_digraphs : Flag<["-"], "fno-digraphs">, Group<f_Group>, Flags<[CC1Option]>, | ||||
HelpText<"Disallow alternative token representations '<:', ':>', '<%', '%>', '%:', '%:%:'">; | HelpText<"Disallow alternative token representations '<:', ':>', '<%', '%>', '%:', '%:%:'">; | ||||
def fno_declspec : Flag<["-"], "fno-declspec">, Group<f_clang_Group>, | def fno_declspec : Flag<["-"], "fno-declspec">, Group<f_clang_Group>, | ||||
HelpText<"Disallow __declspec as a keyword">, Flags<[CC1Option]>; | HelpText<"Disallow __declspec as a keyword">, Flags<[CC1Option]>; | ||||
def fno_dollars_in_identifiers : Flag<["-"], "fno-dollars-in-identifiers">, Group<f_Group>, | def fno_dollars_in_identifiers : Flag<["-"], "fno-dollars-in-identifiers">, Group<f_Group>, | ||||
HelpText<"Disallow '$' in identifiers">, Flags<[CC1Option]>; | HelpText<"Disallow '$' in identifiers">, Flags<[CC1Option]>; | ||||
def fno_elide_constructors : Flag<["-"], "fno-elide-constructors">, Group<f_Group>, | def fno_elide_constructors : Flag<["-"], "fno-elide-constructors">, Group<f_Group>, | ||||
HelpText<"Disable C++ copy constructor elision">, Flags<[CC1Option]>; | HelpText<"Disable C++ copy constructor elision">, Flags<[CC1Option]>; | ||||
def fno_eliminate_unused_debug_symbols : Flag<["-"], "fno-eliminate-unused-debug-symbols">, Group<f_Group>; | def fno_eliminate_unused_debug_symbols : Flag<["-"], "fno-eliminate-unused-debug-symbols">, Group<f_Group>; | ||||
def fno_gnu_keywords : Flag<["-"], "fno-gnu-keywords">, Group<f_Group>, Flags<[CC1Option]>; | def fno_gnu_keywords : Flag<["-"], "fno-gnu-keywords">, Group<f_Group>, Flags<[CC1Option]>; | ||||
def fno_inline_functions : Flag<["-"], "fno-inline-functions">, Group<f_clang_Group>, Flags<[CC1Option]>; | def fno_inline_functions : Flag<["-"], "fno-inline-functions">, Group<f_clang_Group>, Flags<[CC1Option]>; | ||||
def fno_inline : Flag<["-"], "fno-inline">, Group<f_clang_Group>, Flags<[CC1Option]>; | def fno_inline : Flag<["-"], "fno-inline">, Group<f_clang_Group>, Flags<[CC1Option]>; | ||||
dblaikie: I /think/ @MaskRay added some kind of helper to make it easier to define the f/fno pair… | |||||
def fno_global_isel : Flag<["-"], "fno-global-isel">, Group<f_clang_Group>, | def fno_global_isel : Flag<["-"], "fno-global-isel">, Group<f_clang_Group>, | ||||
HelpText<"Disables the global instruction selector">; | HelpText<"Disables the global instruction selector">; | ||||
def fno_experimental_isel : Flag<["-"], "fno-experimental-isel">, Group<f_clang_Group>, | def fno_experimental_isel : Flag<["-"], "fno-experimental-isel">, Group<f_clang_Group>, | ||||
Alias<fno_global_isel>; | Alias<fno_global_isel>; | ||||
def fno_experimental_new_pass_manager : Flag<["-"], "fno-experimental-new-pass-manager">, | def fno_experimental_new_pass_manager : Flag<["-"], "fno-experimental-new-pass-manager">, | ||||
Group<f_clang_Group>, Flags<[CC1Option]>, | Group<f_clang_Group>, Flags<[CC1Option]>, | ||||
HelpText<"Disables an experimental new pass manager in LLVM.">; | HelpText<"Disables an experimental new pass manager in LLVM.">; | ||||
def fveclib : Joined<["-"], "fveclib=">, Group<f_Group>, Flags<[CC1Option]>, | def fveclib : Joined<["-"], "fveclib=">, Group<f_Group>, Flags<[CC1Option]>, | ||||
▲ Show 20 Lines • Show All 1,738 Lines • ▼ Show 20 Lines | |||||
def falign_jumps_EQ : Joined<["-"], "falign-jumps=">, Group<clang_ignored_gcc_optimization_f_Group>; | def falign_jumps_EQ : Joined<["-"], "falign-jumps=">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
// FIXME: This option should be supported and wired up to our diognostics, but | // FIXME: This option should be supported and wired up to our diognostics, but | ||||
// ignore it for now to avoid breaking builds that use it. | // ignore it for now to avoid breaking builds that use it. | ||||
def fdiagnostics_show_location_EQ : Joined<["-"], "fdiagnostics-show-location=">, Group<clang_ignored_f_Group>; | def fdiagnostics_show_location_EQ : Joined<["-"], "fdiagnostics-show-location=">, Group<clang_ignored_f_Group>; | ||||
defm fcheck_new : BooleanFFlag<"check-new">, Group<clang_ignored_f_Group>; | defm fcheck_new : BooleanFFlag<"check-new">, Group<clang_ignored_f_Group>; | ||||
defm caller_saves : BooleanFFlag<"caller-saves">, Group<clang_ignored_gcc_optimization_f_Group>; | defm caller_saves : BooleanFFlag<"caller-saves">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
defm reorder_blocks : BooleanFFlag<"reorder-blocks">, Group<clang_ignored_gcc_optimization_f_Group>; | defm reorder_blocks : BooleanFFlag<"reorder-blocks">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
defm eliminate_unused_debug_types : BooleanFFlag<"eliminate-unused-debug-types">, Group<clang_ignored_f_Group>; | |||||
defm branch_count_reg : BooleanFFlag<"branch-count-reg">, Group<clang_ignored_gcc_optimization_f_Group>; | defm branch_count_reg : BooleanFFlag<"branch-count-reg">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
This group is for ignored options. Add this near other f options. I fixed the FIXME about BooleanFFlag with TableGen special identifier NAME. The way we define boolean options still look verbose to me, so I just created D80883. MaskRay: This group is for ignored options. Add this near other f options.
I fixed the FIXME about… | |||||
defm default_inline : BooleanFFlag<"default-inline">, Group<clang_ignored_gcc_optimization_f_Group>; | defm default_inline : BooleanFFlag<"default-inline">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
defm fat_lto_objects : BooleanFFlag<"fat-lto-objects">, Group<clang_ignored_gcc_optimization_f_Group>; | defm fat_lto_objects : BooleanFFlag<"fat-lto-objects">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
defm float_store : BooleanFFlag<"float-store">, Group<clang_ignored_gcc_optimization_f_Group>; | defm float_store : BooleanFFlag<"float-store">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
defm friend_injection : BooleanFFlag<"friend-injection">, Group<clang_ignored_f_Group>; | defm friend_injection : BooleanFFlag<"friend-injection">, Group<clang_ignored_f_Group>; | ||||
defm function_attribute_list : BooleanFFlag<"function-attribute-list">, Group<clang_ignored_f_Group>; | defm function_attribute_list : BooleanFFlag<"function-attribute-list">, Group<clang_ignored_f_Group>; | ||||
defm gcse : BooleanFFlag<"gcse">, Group<clang_ignored_gcc_optimization_f_Group>; | defm gcse : BooleanFFlag<"gcse">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
defm gcse_after_reload: BooleanFFlag<"gcse-after-reload">, Group<clang_ignored_gcc_optimization_f_Group>; | defm gcse_after_reload: BooleanFFlag<"gcse-after-reload">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
defm gcse_las: BooleanFFlag<"gcse-las">, Group<clang_ignored_gcc_optimization_f_Group>; | defm gcse_las: BooleanFFlag<"gcse-las">, Group<clang_ignored_gcc_optimization_f_Group>; | ||||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |
The positive form of the option suppresses info, so "Emit " and "Do not emit " are reversed here.