[cfe-commits] r86746 - /cfe/trunk/lib/Parse/ParseObjc.cpp
Ted Kremenek
kremenek at apple.com
Tue Nov 10 14:55:49 PST 2009
Author: kremenek
Date: Tue Nov 10 16:55:49 2009
New Revision: 86746
URL: http://llvm.org/viewvc/llvm-project?rev=86746&view=rev
Log:
Add FIXIT hint for -Wsemicolon-before-method-body
Modified:
cfe/trunk/lib/Parse/ParseObjc.cpp
Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=86746&r1=86745&r2=86746&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Tue Nov 10 16:55:49 2009
@@ -1409,8 +1409,10 @@
// parse optional ';'
if (Tok.is(tok::semi)) {
- if (ObjCImpDecl)
- Diag(Tok, diag::warn_semicolon_before_method_body);
+ if (ObjCImpDecl) {
+ Diag(Tok, diag::warn_semicolon_before_method_body)
+ << CodeModificationHint::CreateRemoval(SourceRange(Tok.getLocation()));
+ }
ConsumeToken();
}
More information about the cfe-commits
mailing list