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

via cfe-commits cfe-commits at lists.llvm.org
Sat May 4 07:31:33 PDT 2024


================
@@ -18347,7 +18347,7 @@ void Sema::SetFunctionBodyKind(Decl *D, SourceLocation Loc, FnBodyKind BodyKind,
   }
 }
 
-bool Sema::CheckOverridingFunctionAttributes(const CXXMethodDecl *New,
+bool Sema::CheckOverridingFunctionAttributes(CXXMethodDecl *New,
----------------
Sirraide wrote:

Afaik there are a bunch of `Check...` functions that mutate their arguments, so this doesn’t seem too strange to me—that said, if this function never actually mutates anything, then I’m fine w/ adding the `const` to document that.

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


More information about the cfe-commits mailing list