From: Ted Kremenek Date: Tue, 10 Nov 2009 22:55:49 +0000 (+0000) Subject: Add FIXIT hint for -Wsemicolon-before-method-body X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=496e45ef3350fabc312c5a807d308c65c50af4db;p=clang Add FIXIT hint for -Wsemicolon-before-method-body git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86746 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index 478bdcbff7..29f3fc0a57 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -1409,8 +1409,10 @@ Parser::DeclPtrTy Parser::ParseObjCMethodDefinition() { // 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(); }