File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ namespace clang::tidy::readability {
21
21
void RedundantTypenameCheck::registerMatchers (MatchFinder *Finder) {
22
22
// NOLINTNEXTLINE(readability-identifier-naming)
23
23
const VariadicDynCastAllOfMatcher<TypeLoc, TypedefTypeLoc> typedefTypeLoc;
24
- Finder->addMatcher (typedefTypeLoc ().bind (" typeloc " ), this );
24
+ Finder->addMatcher (typedefTypeLoc ().bind (" typedefTypeLoc " ), this );
25
25
26
26
if (!getLangOpts ().CPlusPlus20 )
27
27
return ;
@@ -44,7 +44,8 @@ void RedundantTypenameCheck::registerMatchers(MatchFinder *Finder) {
44
44
45
45
void RedundantTypenameCheck::check (const MatchFinder::MatchResult &Result) {
46
46
const SourceLocation TypenameKeywordLoc = [&] {
47
- if (const auto *TTL = Result.Nodes .getNodeAs <TypedefTypeLoc>(" typeloc" ))
47
+ if (const auto *TTL =
48
+ Result.Nodes .getNodeAs <TypedefTypeLoc>(" typedefTypeLoc" ))
48
49
return TTL->getElaboratedKeywordLoc ();
49
50
50
51
TypeLoc InnermostTypeLoc = *Result.Nodes .getNodeAs <TypeLoc>(" typeloc" );
You can’t perform that action at this time.
0 commit comments