Add FIXIT hint for -Wsemicolon-before-method-body

llvm-svn: 86746
This commit is contained in:
Ted Kremenek 2009-11-10 22:55:49 +00:00
parent d76f438369
commit 0b61a805b9
1 changed files with 4 additions and 2 deletions

View File

@ -1409,8 +1409,10 @@ Parser::DeclPtrTy Parser::ParseObjCMethodDefinition() {
// parse optional ';' // parse optional ';'
if (Tok.is(tok::semi)) { if (Tok.is(tok::semi)) {
if (ObjCImpDecl) if (ObjCImpDecl) {
Diag(Tok, diag::warn_semicolon_before_method_body); Diag(Tok, diag::warn_semicolon_before_method_body)
<< CodeModificationHint::CreateRemoval(SourceRange(Tok.getLocation()));
}
ConsumeToken(); ConsumeToken();
} }