[PATCH] D21352: Add a "declared 'nonnull' here" note to warnings where an expression is checked against null.
Nick Lewycky via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 14 14:37:03 PDT 2016
nlewycky created this revision.
nlewycky added a subscriber: cfe-commits.
Point to the relevant 'nonnull' or 'returns_nonnull' attribute when complaining about 'a == 0' or 'f() == 0' expressions.
http://reviews.llvm.org/D21352
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Sema/nonnull.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21352.60756.patch
Type: text/x-patch
Size: 4884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160614/ef6d77b8/attachment.bin>
More information about the cfe-commits
mailing list