mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-27 18:28:14 +00:00
[clang-tidy] Small cleanup. NFC.
llvm-svn: 298315
This commit is contained in:
parent
35d75aeda2
commit
9bf7037ccd
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user