mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
[clang-tidy] Remove a duplicated if-branch in the unused-using-decl
check, NFC
This commit is contained in:
parent
96484553d9
commit
6527201414
@ -107,9 +107,6 @@ void UnusedUsingDeclsCheck::check(const MatchFinder::MatchResult &Result) {
|
||||
} else if (const auto *Specialization =
|
||||
dyn_cast<ClassTemplateSpecializationDecl>(Used)) {
|
||||
removeFromFoundDecls(Specialization->getSpecializedTemplate());
|
||||
} else if (const auto *FD = dyn_cast<FunctionDecl>(Used)) {
|
||||
if (const auto *FDT = FD->getPrimaryTemplate())
|
||||
removeFromFoundDecls(FDT);
|
||||
} else if (const auto *ECD = dyn_cast<EnumConstantDecl>(Used)) {
|
||||
if (const auto *ET = ECD->getType()->getAs<EnumType>())
|
||||
removeFromFoundDecls(ET->getDecl());
|
||||
|
Loading…
Reference in New Issue
Block a user