[PATCH] D27726: [analyzer] Refer to macro names in diagnostics for macros representing a literal
Anna Zaks via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 13 12:50:49 PST 2016
zaks.anna created this revision.
zaks.anna added reviewers: dergachev.a, dcoughlin.
zaks.anna added a subscriber: cfe-commits.
When a macro expending to a literal is used in a comparison, use the macro name in the diagnostic rather than the literal. This improves readability of path notes.
Added tests for various macro literals that could occur. Only BOOl, Int, and NULL tests have changed behavior with this patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9819 bytes
Desc: not available
More information about the cfe-commits