[cfe-commits] r69263 - /cfe/trunk/include/clang/Driver/Options.def
Daniel Dunbar
daniel at zuster.org
Wed Apr 15 21:00:30 PDT 2009
Author: ddunbar
Date: Wed Apr 15 23:00:30 2009
New Revision: 69263
URL: http://llvm.org/viewvc/llvm-project?rev=69263&view=rev
Log:
Driver: Remove the majority of -W* options, the driver doesn't
generally need to know about these now we don't have to hold
clang-cc's hand.
Modified:
cfe/trunk/include/clang/Driver/Options.def
Modified: cfe/trunk/include/clang/Driver/Options.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.def?rev=69263&r1=69262&r2=69263&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.def (original)
+++ cfe/trunk/include/clang/Driver/Options.def Wed Apr 15 23:00:30 2009
@@ -287,84 +287,14 @@
OPTION("-V", V, JoinedOrSeparate, INVALID, INVALID, "du", 0, 0, 0)
OPTION("-Wa,", Wa_COMMA, CommaJoined, INVALID, INVALID, "", 0,
"Pass the comma separated arguments in <arg> to the assembler", "<arg>")
-OPTION("-Waggregate-return", Waggregate_return, Flag, W_Group, INVALID, "", 0, 0, 0)
OPTION("-Wall", Wall, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wbad-function-cast", Wbad_function_cast, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wcast-align", Wcast_align, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wcast-qual", Wcast_qual, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wchar-align", Wchar_align, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wchar-subscripts", Wchar_subscripts, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wdeclaration-after-statement", Wdeclaration_after_statement, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wdeprecated-declarations", Wdeprecated_declarations, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Werror-implicit-function-declaration", Werror_implicit_function_declaration, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Werror", Werror, Flag, W_Group, INVALID, "", 0, 0, 0)
OPTION("-Wextra", Wextra, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wfloat-equal", Wfloat_equal, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wformat-security", Wformat_security, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wformat=2", Wformat_EQ2, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wformat", Wformat, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wfour-char-constants", Wfour_char_constants, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wimplicit-function-declaration", Wimplicit_function_declaration, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Winit-self", Winit_self, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Winline", Winline, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wint-to-pointer-cast", Wint_to_pointer_cast, Flag, W_Group, INVALID, "", 0, 0, 0)
OPTION("-Wl,", Wl_COMMA, CommaJoined, INVALID, INVALID, "li", 0,
"Pass the comma separated arguments in <arg> to the linker", "<arg>")
-OPTION("-Wmissing-braces", Wmissing_braces, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wmissing-declarations", Wmissing_declarations, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wmissing-format-attribute", Wmissing_format_attribute, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wmissing-prototypes", Wmissing_prototypes, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wmost", Wmost, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wnested-externs", Wnested_externs, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wnewline-eof", Wnewline_eof, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-#warnings", Wno__HASHwarnings, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-comment", Wno_comment, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-deprecated-declarations", Wno_deprecated_declarations, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-extra-tokens", Wno_extra_tokens, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-format-nonliteral", Wno_format_nonliteral, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-format-y2k", Wno_format_y2k, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-four-char-constants", Wno_four_char_constants, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-long-long", Wno_long_long, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-missing-field-initializers", Wno_missing_field_initializers, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-missing-prototypes", Wno_missing_prototypes, Flag, W_Group, INVALID, "", 0, 0, 0)
OPTION("-Wno-nonportable-cfstrings", Wno_nonportable_cfstrings, Joined, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-parentheses", Wno_parentheses, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-pointer-sign", Wno_pointer_sign, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-strict-selector-match", Wno_strict_selector_match, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-trigraphs", Wno_trigraphs, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-unknown-pragmas", Wno_unknown_pragmas, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-unused-parameter", Wno_unused_parameter, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wno-variadic-macros", Wno_variadic_macros, Flag, W_Group, INVALID, "", 0, 0, 0)
OPTION("-Wnonportable-cfstrings", Wnonportable_cfstrings, Joined, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wold-style-definition", Wold_style_definition, Flag, W_Group, INVALID, "", 0, 0, 0)
OPTION("-Wp,", Wp_COMMA, CommaJoined, INVALID, INVALID, "", 0,
"Pass the comma separated arguments in <arg> to the preprocessor", "<arg>")
-OPTION("-Wpacked", Wpacked, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wparentheses", Wparentheses, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wpointer-arith", Wpointer_arith, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wpointer-to-int-cast", Wpointer_to_int_cast, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wreadonly-setter-attrs", Wreadonly_setter_attrs, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wredundant-decls", Wredundant_decls, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wreturn-type", Wreturn_type, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wshadow", Wshadow, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wshorten-64-to-32", Wshorten_64_to_32, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wsign-compare", Wsign_compare, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wstrict-overflow=", Wstrict_overflow_EQ, Joined, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wstrict-overflow", Wstrict_overflow, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wstrict-prototypes", Wstrict_prototypes, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wswitch", Wswitch, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wundef", Wundef, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wuninitialized", Wuninitialized, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wunknown-pragmas", Wunknown_pragmas, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wunused-function", Wunused_function, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wunused-label", Wunused_label, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wunused-macros", Wunused_macros, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wunused-parameter", Wunused_parameter, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wunused-value", Wunused_value, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wunused-variable", Wunused_variable, Flag, W_Group, INVALID, "", 0, 0, 0)
-OPTION("-Wwrite-strings", Wwrite_strings, Flag, W_Group, INVALID, "", 0, 0, 0)
-// -W by itself is an alias for -Wextra
-OPTION("-W", W_Flag, Flag, INVALID, Wextra, "", 0, 0, 0)
OPTION("-W", W_Joined, Joined, W_Group, INVALID, "", 0, 0, 0)
OPTION("-Xanalyzer", Xanalyzer, Separate, INVALID, INVALID, "", 0,
"Pass <arg> to the static analyzer", "<arg>")
More information about the cfe-commits
mailing list