[clang] [analyzer] `canReasonAbout` does not support `nonloc::LazyCompoundVal` (PR #87521)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 13 12:07:48 PDT 2024
================
@@ -0,0 +1,16 @@
+// RUN: %clang_analyze_cc1 %s \
+// RUN: -analyzer-checker=alpha.cplusplus.InvalidatedIterator \
+// RUN: -analyzer-config aggressive-binary-operation-simplification=true \
+// RUN: 2>&1
+
+struct node {};
+struct prop : node {};
+struct bitvec : node {
+ prop operator==(bitvec) { return prop(); }
+ bitvec extend(); // { return *this; }
----------------
steakhal wrote:
```suggestion
bitvec extend();
```
https://github.com/llvm/llvm-project/pull/87521
More information about the cfe-commits
mailing list