Skip to content

Commit 56ecaf4

Browse files
authored
[clang-tidy][NFC] clean up some matchers in modernize-type-traits (#155180)
`dependentNameTypeLoc` is unused. `dependentScopeDeclRefExpr` has appeared in `ASTMatchers.h` since this code was written.
1 parent 0723e81 commit 56ecaf4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

clang-tools-extra/clang-tidy/modernize/TypeTraitsCheck.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,6 @@ AST_MATCHER(TypeLoc, isType) {
189189
static constexpr char Bind[] = "";
190190

191191
void TypeTraitsCheck::registerMatchers(MatchFinder *Finder) {
192-
const ast_matchers::internal::VariadicDynCastAllOfMatcher<
193-
Stmt,
194-
DependentScopeDeclRefExpr>
195-
dependentScopeDeclRefExpr; // NOLINT(readability-identifier-naming)
196-
const ast_matchers::internal::VariadicDynCastAllOfMatcher<
197-
TypeLoc,
198-
DependentNameTypeLoc>
199-
dependentNameTypeLoc; // NOLINT(readability-identifier-naming)
200-
201192
// Only register matchers for trait<...>::value in c++17 mode.
202193
if (getLangOpts().CPlusPlus17) {
203194
Finder->addMatcher(mapAnyOf(declRefExpr, dependentScopeDeclRefExpr)

0 commit comments

Comments
 (0)