[cfe-commits] r69571 - in /cfe/trunk/include/clang/Basic: DiagnosticGroups.td DiagnosticSemaKinds.td

Chris Lattner sabre at nondot.org
Sun Apr 19 22:45:34 PDT 2009


Author: lattner
Date: Mon Apr 20 00:45:34 2009
New Revision: 69571

URL: http://llvm.org/viewvc/llvm-project?rev=69571&view=rev
Log:
Add option groups for -Wimplicit-int and -Wimplicit.
remove special case hack for -Werror-implicit-function-declaration


Modified:
    cfe/trunk/include/clang/Basic/DiagnosticGroups.td
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=69571&r1=69570&r2=69571&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Mon Apr 20 00:45:34 2009
@@ -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-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 @@
 // Aggregation warning settings.
 def Most : DiagGroup<"most", [
     Comment,
-    ImplicitFunctionDeclare,
+    Implicit,
     Switch,
     Trigraphs,
     Uninitialized,

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=69571&r1=69570&r2=69571&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Mon Apr 20 00:45:34 2009
@@ -1599,7 +1599,8 @@
 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<





More information about the cfe-commits mailing list