[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 25 15:50:28 PDT 2024


================
@@ -78,22 +78,19 @@ class ViolationSite {
 // be inferred as holding that effect.
 struct Violation {
   FunctionEffect Effect;
-  FunctionEffect
+  std::optional<FunctionEffect>
       CalleeEffectPreventingInference; // Only for certain IDs; can be None.
----------------
Sirraide wrote:

```suggestion
      CalleeEffectPreventingInference; // Only for certain IDs; can be nullopt.
```
Comment still needs updating

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


More information about the cfe-commits mailing list