diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-20 05:45:34 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-20 05:45:34 +0000 |
| commit | bc002ebd0379fc6b617df70e87c821510482d002 (patch) | |
| tree | 638c0b1e24737dd5566e913e16762ddb003f7a59 /clang | |
| parent | ac1294318d36e91e0cbbde5c5c451c79fbba1d3b (diff) | |
| download | bcm5719-llvm-bc002ebd0379fc6b617df70e87c821510482d002.tar.gz bcm5719-llvm-bc002ebd0379fc6b617df70e87c821510482d002.zip | |
Add option groups for -Wimplicit-int and -Wimplicit.
remove special case hack for -Werror-implicit-function-declaration
llvm-svn: 69571
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticGroups.td | 17 | ||||
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 3 |
2 files changed, 16 insertions, 4 deletions
diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td index 5f17a406ec4..141875a0f7e 100644 --- a/clang/include/clang/Basic/DiagnosticGroups.td +++ b/clang/include/clang/Basic/DiagnosticGroups.td @@ -7,9 +7,19 @@ // //===----------------------------------------------------------------------===// -def ImplicitFunctionDeclare : DiagGroup<"implicit-function-declaration">; def Trigraphs : DiagGroup<"trigraphs">; +def ImplicitFunctionDeclare : DiagGroup<"implicit-function-declaration">; +def ImplicitInt : DiagGroup<"implicit-int">; + +// Aggregation warning settings. +def Implicit : DiagGroup<"implicit", [ + ImplicitFunctionDeclare, + ImplicitInt +]>; + + + // Empty DiagGroups: these are recognized by clang but ignored. def : DiagGroup<"aggregate-return">; def : DiagGroup<"bad-function-cast">; @@ -19,11 +29,12 @@ def : DiagGroup<"char-align">; def : DiagGroup<"char-subscripts">; def Comment : DiagGroup<"comment">; def : DiagGroup<"declaration-after-statement">; -def : DiagGroup<"error-implicit-function-declaration">; def : DiagGroup<"format-security">; def : DiagGroup<"format=2">; def : DiagGroup<"format">; def : DiagGroup<"four-char-constants">; + + def : DiagGroup<"init-self">; def : DiagGroup<"inline">; def : DiagGroup<"int-to-pointer-cast">; @@ -69,7 +80,7 @@ def : DiagGroup<"", [Extra]>; // -W = -Wextra // Aggregation warning settings. def Most : DiagGroup<"most", [ Comment, - ImplicitFunctionDeclare, + Implicit, Switch, Trigraphs, Uninitialized, diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 09624cfca78..b07b3320c0c 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -1599,7 +1599,8 @@ def ext_invalid_sign_spec : Extension<"'%0' cannot be signed or unsigned">; def warn_missing_declspec : Warning< "declaration specifier missing, defaulting to 'int'">; def warn_missing_type_specifier : Warning< - "type specifier missing, defaults to 'int'">; + "type specifier missing, defaults to 'int'">, + InGroup<ImplicitInt>; def err_missing_type_specifier : Error< "C++ requires a type specifier for all declarations">; def err_missing_param_declspec : Error< |

