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 9a5ed03 commit c4e8a99Copy full SHA for c4e8a99
clang-tools-extra/clang-tidy/llvm/PreferStaticOverAnonymousNamespaceCheck.cpp
@@ -52,9 +52,10 @@ void PreferStaticOverAnonymousNamespaceCheck::registerMatchers(
52
hasParent(cxxRecordDecl()))))))
53
.bind("function"),
54
this);
55
- } else
+ } else {
56
Finder->addMatcher(
57
functionDecl(IsDefinitionInAnonymousNamespace).bind("function"), this);
58
+ }
59
60
if (!AllowVariableDeclarations)
61
Finder->addMatcher(varDecl(IsDefinitionInAnonymousNamespace,
0 commit comments