[PATCH] D131067: [analyzer] Treat values passed as parameter as escaped

Bal√°zs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 5 04:49:39 PDT 2022


steakhal added inline comments.


================
Comment at: clang/test/Analysis/dead-stores.cpp:225
+void functionReferenceParameter(int &i) {
+  i = 5; // no warning
+}
----------------
By checking it on godbolt, this line never raised a warning.
https://godbolt.org/z/n7fP5od5q

You must be referring to L230 and L241 instead.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131067



More information about the cfe-commits mailing list