[PATCH] D125318: [analyzer] Add UnarySymExpr

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 16 01:54:24 PDT 2022


steakhal accepted this revision.
steakhal added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/test/Analysis/unary-sym-expr.c:35
+    return;
+  clang_analyzer_eval(-(x + y) == -3); // expected-warning{{TRUE}}
+}
----------------
martong wrote:
> steakhal wrote:
> > Does it work if you swap x and y?
> No, that does not. And the reason of that is we cannot handle commutativity (yet).
We could still test it, and put there a FIXME.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125318/new/

https://reviews.llvm.org/D125318



More information about the cfe-commits mailing list