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 04acf88 commit 27f092fCopy full SHA for 27f092f
clang-tools-extra/clang-tidy/misc/UseInternalLinkageCheck.cpp
@@ -100,8 +100,11 @@ void UseInternalLinkageCheck::registerMatchers(MatchFinder *Finder) {
100
isExternStorageClass(), isExternC(),
101
// 3. template
102
isExplicitTemplateSpecialization(),
103
- // 4. friend
104
- hasAncestor(decl(anyOf(friendDecl(), exportDecl()))))));
+ hasAncestor(decl(anyOf(
+ // 4. friend
105
+ friendDecl(),
106
+ // 5. module export decl
107
+ exportDecl()))))));
108
Finder->addMatcher(
109
functionDecl(Common, hasBody(), unless(cxxMethodDecl()), unless(isMain()))
110
.bind("fn"),
0 commit comments