Skip to content

Commit 27f092f

Browse files
committed
fix
1 parent 04acf88 commit 27f092f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clang-tools-extra/clang-tidy/misc/UseInternalLinkageCheck.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ void UseInternalLinkageCheck::registerMatchers(MatchFinder *Finder) {
100100
isExternStorageClass(), isExternC(),
101101
// 3. template
102102
isExplicitTemplateSpecialization(),
103-
// 4. friend
104-
hasAncestor(decl(anyOf(friendDecl(), exportDecl()))))));
103+
hasAncestor(decl(anyOf(
104+
// 4. friend
105+
friendDecl(),
106+
// 5. module export decl
107+
exportDecl()))))));
105108
Finder->addMatcher(
106109
functionDecl(Common, hasBody(), unless(cxxMethodDecl()), unless(isMain()))
107110
.bind("fn"),

0 commit comments

Comments
 (0)