[clang] [clang-tools-extra] [clang] Make 'fileScopeAsmDecl' matcher public (PR #165319)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 29 14:33:29 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.
----------------
vbvictor wrote:
What is the difference between top-level and not top-level asm declarations?
The ` __asm` isn't top level?
Could we provide here example of non-top level declaration which wouldn't match
https://github.com/llvm/llvm-project/pull/165319
More information about the cfe-commits
mailing list