[clang] nonblocking/nonallocating attributes (was: nolock/noalloc) (PR #84983)
Doug Wyatt via cfe-commits
cfe-commits at lists.llvm.org
Sat May 4 12:38:50 PDT 2024
================
@@ -10510,6 +10512,8 @@ QualType ASTContext::mergeFunctionTypes(QualType lhs, QualType rhs,
if (lproto->getMethodQuals() != rproto->getMethodQuals())
return {};
+ // TODO: (nonblocking) Does anything need to be done with FunctionEffects?
+
----------------
dougsonos wrote:
I managed to refresh my memory of when this can be called -- it's in C, for redeclarations with attribute mismatches, and in situations like trying to build a type for the result of a conditional expression. There's a good example with how this method handles `noreturn`, which I'll copy.
https://github.com/llvm/llvm-project/pull/84983
More information about the cfe-commits
mailing list