We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7a23d9 commit fb68c3cCopy full SHA for fb68c3c
clang-tools-extra/clang-tidy/readability/RedundantTypenameCheck.cpp
@@ -32,7 +32,8 @@ void RedundantTypenameCheck::registerMatchers(MatchFinder *Finder) {
32
hasParent(typedefNameDecl()), hasParent(templateTypeParmDecl()),
33
hasParent(nonTypeTemplateParmDecl()), hasParent(cxxNamedCastExpr()),
34
hasParent(cxxNewExpr()), hasParent(friendDecl()), hasParent(fieldDecl()),
35
- hasParent(varDecl(unless(hasDeclContext(functionDecl())))),
+ hasParent(varDecl(
36
+ hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())))),
37
hasParent(parmVarDecl(hasParent(expr(requiresExpr())))),
38
hasParent(parmVarDecl(hasParent(typeLoc(hasParent(
39
namedDecl(anyOf(cxxMethodDecl(), hasParent(friendDecl()),
0 commit comments