[cfe-commits] r59923 - in /cfe/trunk: include/clang/Basic/DiagnosticKinds.def lib/Sema/SemaDeclObjC.cpp test/SemaObjC/method-lookup-3.m
Chris Lattner
sabre at nondot.org
Sun Nov 23 15:26:13 PST 2008
Author: lattner
Date: Sun Nov 23 17:26:13 2008
New Revision: 59923
URL: http://llvm.org/viewvc/llvm-project?rev=59923&view=rev
Log:
convert some more warnings to NOTEs.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticKinds.def
cfe/trunk/lib/Sema/SemaDeclObjC.cpp
cfe/trunk/test/SemaObjC/method-lookup-3.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticKinds.def?rev=59923&r1=59922&r2=59923&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticKinds.def (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticKinds.def Sun Nov 23 17:26:13 2008
@@ -42,6 +42,10 @@
DIAG(note_matching, NOTE,
"to match this '%0'")
+DIAG(note_using_decl, NOTE,
+ "using")
+DIAG(note_also_found_decl, NOTE,
+ "also found")
//===----------------------------------------------------------------------===//
// Lexer Diagnostics
@@ -486,10 +490,6 @@
"incomplete implementation")
DIAG(warn_multiple_method_decl, WARNING,
"multiple methods named '%0' found")
-DIAG(warn_using_decl, WARNING,
- "using")
-DIAG(warn_also_found_decl, WARNING,
- "also found")
DIAG(err_duplicate_method_decl, ERROR,
"duplicate declaration of method '%0'")
DIAG(err_undeclared_protocol, ERROR,
Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=59923&r1=59922&r2=59923&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Sun Nov 23 17:26:13 2008
@@ -825,10 +825,10 @@
}
if (issueWarning && (MethList.Method && MethList.Next)) {
Diag(R.getBegin(), diag::warn_multiple_method_decl) << Sel.getName() << R;
- Diag(MethList.Method->getLocStart(), diag::warn_using_decl)
+ Diag(MethList.Method->getLocStart(), diag::note_using_decl)
<< MethList.Method->getSourceRange();
for (ObjCMethodList *Next = MethList.Next; Next; Next = Next->Next)
- Diag(Next->Method->getLocStart(), diag::warn_also_found_decl)
+ Diag(Next->Method->getLocStart(), diag::note_also_found_decl)
<< Next->Method->getSourceRange();
}
return MethList.Method;
Modified: cfe/trunk/test/SemaObjC/method-lookup-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/method-lookup-3.m?rev=59923&r1=59922&r2=59923&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/method-lookup-3.m (original)
+++ cfe/trunk/test/SemaObjC/method-lookup-3.m Sun Nov 23 17:26:13 2008
@@ -7,21 +7,21 @@
#define INTERFERE_TYPE Alternate*
@protocol A
- at property Abstract *x; // expected-warning{{using}}
+ at property Abstract *x; // expected-note {{using}}
@end
@interface B
- at property Abstract *y; // expected-warning{{using}}
+ at property Abstract *y; // expected-note {{using}}
@end
@interface B (Category)
- at property Abstract *z; // expected-warning{{using}}
+ at property Abstract *z; // expected-note {{using}}
@end
@interface InterferencePre
--(void) x; // expected-warning{{also found}}
--(void) y; // expected-warning{{also found}}
--(void) z; // expected-warning{{also found}}
+-(void) x; // expected-note {{also found}}
+-(void) y; // expected-note {{also found}}
+-(void) z; // expected-note {{also found}}
-(void) setX: (INTERFERE_TYPE) arg;
-(void) setY: (INTERFERE_TYPE) arg;
-(void) setZ: (INTERFERE_TYPE) arg;
More information about the cfe-commits
mailing list