[clang] nonblocking/nonallocating attributes (was: nolock/noalloc) (PR #84983)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 1 13:14:57 PDT 2024


================
@@ -27,6 +27,8 @@
 #include "clang/AST/StmtObjC.h"
 #include "clang/AST/StmtVisitor.h"
 #include "clang/AST/Type.h"
+#include "clang/ASTMatchers/ASTMatchFinder.h"
----------------
Sirraide wrote:

No yeah, that part makes sense; I’d assume that you need to link to clangASTMatchers to be able to use AST matchers. I’m just saying I’m not sure whether we want to use AST matchers in Sema as there doesn’t seem to be a precedent for it—though I’m not familiar enough w/ the analysis part of Sema to know whether we’ve just never needed them or whether there’s another reason why you might not want to use them (afaik AST matchers are one of those components like libclang that are maintained on a best-effort basis, but I could be wrong).

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


More information about the cfe-commits mailing list