[clang] [clang-tools-extra] [clang] Make 'fileScopeAsmDecl' matcher public (PR #165319)

Davide Cunial via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 30 12:45:57 PDT 2025


================
@@ -2478,6 +2478,16 @@ extern const internal::VariadicDynCastAllOfMatcher<Stmt, NullStmt> nullStmt;
 ///   matches '__asm("mov al, 2")'
 extern const internal::VariadicDynCastAllOfMatcher<Stmt, AsmStmt> asmStmt;
 
+/// Matches top level asm declarations.
----------------
capitan-davide wrote:

> Could we provide here example of non-top level declaration which wouldn't match

Added a negative test

https://github.com/llvm/llvm-project/pull/165319


More information about the cfe-commits mailing list