[clang-tidy] Small cleanup. NFC.

llvm-svn: 298315
This commit is contained in:
Alexander Kornienko 2017-03-20 22:15:19 +00:00
parent 35d75aeda2
commit 9bf7037ccd

View File

@ -67,16 +67,10 @@ void DeleteNullPointerCheck::check(const MatchFinder::MatchResult &Result) {
*Result.SourceManager,
Result.Context->getLangOpts())));
if (Compound) {
Diag << FixItHint::CreateRemoval(CharSourceRange::getTokenRange(
Compound->getLBracLoc(),
Lexer::getLocForEndOfToken(Compound->getLBracLoc(), 0,
*Result.SourceManager,
Result.Context->getLangOpts())));
Diag << FixItHint::CreateRemoval(CharSourceRange::getTokenRange(
Compound->getRBracLoc(),
Lexer::getLocForEndOfToken(Compound->getRBracLoc(), 0,
*Result.SourceManager,
Result.Context->getLangOpts())));
Diag << FixItHint::CreateRemoval(
CharSourceRange::getTokenRange(Compound->getLBracLoc()));
Diag << FixItHint::CreateRemoval(
CharSourceRange::getTokenRange(Compound->getRBracLoc()));
}
}