Point to the relevant 'nonnull' or 'returns_nonnull' attribute when complaining about 'a == 0' or 'f() == 0' expressions.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D21352
Add a "declared 'nonnull' here" note to warnings where an expression is checked against null. ClosedPublic Authored by nlewycky on Jun 14 2016, 2:37 PM.
Details
Summary Point to the relevant 'nonnull' or 'returns_nonnull' attribute when complaining about 'a == 0' or 'f() == 0' expressions.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jun 14 2016, 5:53 PM
Revision Contents
Diff 60756 include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Sema/nonnull.c
|