This is an archive of the discontinued LLVM Phabricator instance.

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 Timeline

nlewycky updated this revision to Diff 60756.Jun 14 2016, 2:37 PM
nlewycky retitled this revision from to Add a "declared 'nonnull' here" note to warnings where an expression is checked against null..
nlewycky updated this object.
nlewycky added a subscriber: cfe-commits.

LGTM, thanks for the patch!

This revision is now accepted and ready to land.Jun 14 2016, 5:53 PM
nlewycky closed this revision.Jun 14 2016, 10:25 PM

Closed by r272755.