[PATCH] D84520: [Analyzer] Improve invalid dereference bug reporting in DereferenceChecker.
Kristóf Umann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 4 03:29:44 PDT 2020
Szelethus added a comment.
We definitely need more tests. The idea overall however is amazing, thanks!
================
Comment at: clang/test/Analysis/misc-ps-region-store.m:1160
struct list_pr8141 *items;
- for (;; items = ({ do { } while (0); items->tail; })) // expected-warning{{Dereference of undefined pointer value}}
+ for (;; items = ({ do { } while (0); items->tail; })) // expected-warning{{dereference of an undefined pointer value}}
{
----------------
Is this the entire message? Because traditionally, analyzer warnings start with an upper case and don't terminate.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84520/new/
https://reviews.llvm.org/D84520
More information about the cfe-commits
mailing list