[clang] [clang-tools-extra] [clang-tidy][use-internal-linkage]fix false positives for ExportDecl (PR #117901)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 27 09:43:33 PST 2024
================
@@ -1236,6 +1236,17 @@ AST_MATCHER_P(TemplateArgument, equalsIntegralValue,
extern const internal::VariadicDynCastAllOfMatcher<Stmt,
ObjCAutoreleasePoolStmt> autoreleasePoolStmt;
+/// Matches any export declaration.
+///
+/// Example matches following declarations.
+/// \code
+/// export void foo();
+/// export { void foo(); }
+/// export namespace { void foo(); }
+/// export int v;
+/// \endcode
+extern const internal::VariadicDynCastAllOfMatcher<Decl, ExportDecl> exportDecl;
----------------
PiotrZSL wrote:
Documentation for this matcher need to be updated so it would be visible on https://clang.llvm.org/docs/LibASTMatchersReference.html
https://github.com/llvm/llvm-project/pull/117901
More information about the cfe-commits
mailing list