Skip to content

Commit 8f0118a

Browse files
committed
Use different names for bound nodes
1 parent 4bae981 commit 8f0118a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang-tools-extra/clang-tidy/readability/RedundantTypenameCheck.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace clang::tidy::readability {
2121
void RedundantTypenameCheck::registerMatchers(MatchFinder *Finder) {
2222
// NOLINTNEXTLINE(readability-identifier-naming)
2323
const VariadicDynCastAllOfMatcher<TypeLoc, TypedefTypeLoc> typedefTypeLoc;
24-
Finder->addMatcher(typedefTypeLoc().bind("typeloc"), this);
24+
Finder->addMatcher(typedefTypeLoc().bind("typedefTypeLoc"), this);
2525

2626
if (!getLangOpts().CPlusPlus20)
2727
return;
@@ -44,7 +44,8 @@ void RedundantTypenameCheck::registerMatchers(MatchFinder *Finder) {
4444

4545
void RedundantTypenameCheck::check(const MatchFinder::MatchResult &Result) {
4646
const SourceLocation TypenameKeywordLoc = [&] {
47-
if (const auto *TTL = Result.Nodes.getNodeAs<TypedefTypeLoc>("typeloc"))
47+
if (const auto *TTL =
48+
Result.Nodes.getNodeAs<TypedefTypeLoc>("typedefTypeLoc"))
4849
return TTL->getElaboratedKeywordLoc();
4950

5051
TypeLoc InnermostTypeLoc = *Result.Nodes.getNodeAs<TypeLoc>("typeloc");

0 commit comments

Comments
 (0)