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

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 10 09:54:28 PDT 2024


================
@@ -10798,6 +10798,95 @@ def warn_imp_cast_drops_unaligned : Warning<
   "implicit cast from type %0 to type %1 drops __unaligned qualifier">,
   InGroup<DiagGroup<"unaligned-qualifier-implicit-cast">>;
 
+def warn_func_effect_allocates : Warning<
+  "'%0' function must not allocate or deallocate memory">,
----------------
Sirraide wrote:

Ah, I see; my bad. If it’s the name of an attribute then that makes sense, yeah.

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


More information about the cfe-commits mailing list