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

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 08:58:51 PDT 2024


================
@@ -4429,6 +4433,218 @@ class FunctionNoProtoType : public FunctionType, public llvm::FoldingSetNode {
   }
 };
 
+// ------------------------------------------------------------------------------
+
+// TODO: Should FunctionEffect be located elsewhere, where Decl is not
+// forward-declared?
+class Decl;
----------------
Sirraide wrote:

Not entirely sure what you mean here; imo it’s fine in this file since it’s part of the function type—unless you’re talking about factoring effects out into a separate file entirely, which might be reasonable if the implementation gets too big (but that’s probably not the case now).

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


More information about the cfe-commits mailing list