[cfe-commits] r72770 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaType.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Jun 3 05:22:12 PDT 2009
Author: efriedma
Date: Wed Jun 3 07:22:01 2009
New Revision: 72770
URL: http://llvm.org/viewvc/llvm-project?rev=72770&view=rev
Log:
Minor cleanup for implicit int warnings.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=72770&r1=72769&r2=72770&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Wed Jun 3 07:22:01 2009
@@ -1789,12 +1789,9 @@
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<
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=72770&r1=72769&r2=72770&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Wed Jun 3 07:22:01 2009
@@ -107,7 +107,7 @@
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 @@
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
More information about the cfe-commits
mailing list