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 {
2121void 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
4545void 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" );
You can’t perform that action at this time.
0 commit comments