[PATCH] D37025: [analyzer] Support more pointer arithmetic in bugreporter::getDerefExpr().

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 22 14:10:30 PDT 2017


NoQ added inline comments.


================
Comment at: test/Analysis/nullptr.cpp:54
 void zoo1() {
-  char **p = 0;
+  char **p = 0; // expected-note{{'p' initialized to a null pointer value}}
   delete *(p + 0); // expected-warning{{Dereference of null pointer}}
----------------
This note has been added by the patch. Other newly displayed notes in the old tests here have always been there, but just now got displayed.


https://reviews.llvm.org/D37025





More information about the cfe-commits mailing list