]> granicus.if.org Git - clang/commitdiff
Minor cleanup for implicit int warnings.
authorEli Friedman <eli.friedman@gmail.com>
Wed, 3 Jun 2009 12:22:01 +0000 (12:22 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 3 Jun 2009 12:22:01 +0000 (12:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72770 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp

index 4095600564bf77891c3cb30b044ca5e4492bb368..41e73c178870c3cb0341696bcffb99fdb1737f99 100644 (file)
@@ -1789,12 +1789,9 @@ def ext_invalid_sign_spec : Extension<"'%0' cannot be signed or unsigned">;
 def warn_receiver_forward_class : Warning<
     "receiver %0 is a forward class and corresponding @interface may not exist">;
 def note_method_sent_forward_class : Note<"method %0 is used for the forward class">;
-def warn_missing_declspec : ExtWarn<
+def ext_missing_declspec : ExtWarn<
   "declaration specifier missing, defaulting to 'int'">;
-def warn_missing_type_specifier : Warning<
-  "type specifier missing, defaults to 'int'">,
-  InGroup<ImplicitInt>;
-def warn_missing_type_specifier_c99 : ExtWarn<
+def ext_missing_type_specifier : ExtWarn<
   "type specifier missing, defaults to 'int'">,
   InGroup<ImplicitInt>;
 def err_decimal_unsupported : Error<
index 81ac21123e9171257c28211fd332e6958222427e..cd19d97c5be9182bfe2623567d760da6344396fd 100644 (file)
@@ -107,7 +107,7 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS,
       if (DS.isEmpty()) {
         if (DeclLoc.isInvalid())
           DeclLoc = DS.getSourceRange().getBegin();
-        Diag(DeclLoc, diag::warn_missing_declspec)
+        Diag(DeclLoc, diag::ext_missing_declspec)
           << DS.getSourceRange()
         << CodeModificationHint::CreateInsertion(DS.getSourceRange().getBegin(),
                                                  "int");
@@ -125,7 +125,7 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS,
         Diag(DeclLoc, diag::err_missing_type_specifier)
           << DS.getSourceRange();
       else
-        Diag(DeclLoc, diag::warn_missing_type_specifier)
+        Diag(DeclLoc, diag::ext_missing_type_specifier)
           << DS.getSourceRange();
 
       // FIXME: If we could guarantee that the result would be well-formed, it