| commit | 40c74c6d2233f7c228365740f683c4d16c0693c6 | [log] [tgz] |
|---|---|---|
| author | Anna Zaks <ganna@apple.com> | Thu Dec 15 22:55:11 2016 +0000 |
| committer | Anna Zaks <ganna@apple.com> | Thu Dec 15 22:55:11 2016 +0000 |
| tree | cf6c6c78da6f25cfb692222f59b1a4107bd06dc4 | |
| parent | 232ecfdf9c29b6cf8d2b9de07012629529085213 [diff] |
[analyzer] Refer to macro names in diagnostics for macros representing a literal 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. Differential Revision: https://reviews.llvm.org/D27726 llvm-svn: 289884