[clang] nolock/noalloc attributes (PR #84983)

Doug Wyatt via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 17:51:51 PDT 2024


================
@@ -339,6 +349,11 @@ namespace {
 
     bool didParseNoDeref() const { return parsedNoDeref; }
 
+    void setParsedNolock(unsigned char v) { parsedNolock = v; }
+    unsigned char getParsedNolock() const { return parsedNolock; }
+    void setParsedNoalloc(unsigned char v) { parsedNoalloc = v; }
+    unsigned char getParsedNoalloc() const { return parsedNoalloc; }
----------------
dougsonos wrote:

Yeah I thought I was trying to hide implementation details but this struct is local to the (giant) source file and it would definitely be better to just use the enum everywhere.

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


More information about the cfe-commits mailing list