Skip to content

Commit 6631aba

Browse files
committed
Support new visibility attribute in clang-tidy check
1 parent 29751a3 commit 6631aba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/test/tools/clang_tidy_checks/hide_from_abi.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ hide_from_abi::hide_from_abi(llvm::StringRef name, clang::tidy::ClangTidyContext
2323
void hide_from_abi::registerMatchers(clang::ast_matchers::MatchFinder* finder) {
2424
using namespace clang::ast_matchers;
2525

26-
auto has_hide_from_abi_attr = anyOf(hasAttr(clang::attr::Visibility), hasAttr(clang::attr::AbiTag));
26+
auto has_hide_from_abi_attr =
27+
anyOf(hasAttr(clang::attr::Visibility), hasAttr(clang::attr::AbiTag), hasAttr(clang::attr::GNUInline));
2728

2829
finder->addMatcher(
2930
functionDecl(

0 commit comments

Comments
 (0)