[PATCH] D66333: NonNullParamChecker and CStringChecker parameter number in checker message
Tibor Brunner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 16 01:15:49 PDT 2019
bruntib created this revision.
bruntib added reviewers: alexfh, NoQ, Szelethus, xazax.hun.
Herald added subscribers: cfe-commits, rnkovacs.
Herald added a project: clang.
There are some functions which can't be given a null pointer as parameter either because it has a nonnull attribute or it is declared to have undefined behavior (e.g. strcmp()). Sometimes it is hard to determine from the checker message which parameter is null at the invocation, so now this information is included in the message.
This commit fixes https://bugs.llvm.org/show_bug.cgi?id=39358
Repository:
rC Clang
https://reviews.llvm.org/D66333
Files:
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp
clang/test/Analysis/Inputs/expected-plists/edges-new.mm.plist
clang/test/Analysis/Inputs/expected-plists/plist-output.m.plist
clang/test/Analysis/misc-ps-region-store.m
clang/test/Analysis/null-deref-ps.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66333.215539.patch
Type: text/x-patch
Size: 10437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190816/63603401/attachment-0001.bin>
More information about the cfe-commits
mailing list