forked from OSchip/llvm-project
Add FIXIT hint for -Wsemicolon-before-method-body
llvm-svn: 86746
This commit is contained in:
parent
d76f438369
commit
0b61a805b9
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue