[clang] nonblocking/nonallocating attributes (was: nolock/noalloc) (PR #84983)
via cfe-commits
cfe-commits at lists.llvm.org
Sat May 4 09:40:31 PDT 2024
================
@@ -5119,6 +5448,62 @@ class FunctionProtoType final
return false;
}
+ unsigned getNumFunctionEffects() const {
+ return hasExtraBitfields()
+ ? getTrailingObjects<FunctionTypeExtraBitfields>()
+ ->NumFunctionEffects
+ : 0;
+ }
+
+ // For serialization.
+ ArrayRef<FunctionEffect> getFunctionEffectsOnly() const {
----------------
Sirraide wrote:
I’d call this `getFunctionEffectsWithoutConditions()` or something like that because ‘only’ is really confusing imo.
https://github.com/llvm/llvm-project/pull/84983
More information about the cfe-commits
mailing list