diff options
author | Anna Zaks <ganna@apple.com> | 2016-12-15 22:55:11 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2016-12-15 22:55:11 +0000 |
commit | 40c74c6d2233f7c228365740f683c4d16c0693c6 (patch) | |
tree | cf6c6c78da6f25cfb692222f59b1a4107bd06dc4 /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | |
parent | 232ecfdf9c29b6cf8d2b9de07012629529085213 (diff) | |
download | llvm-40c74c6d2233f7c228365740f683c4d16c0693c6.zip llvm-40c74c6d2233f7c228365740f683c4d16c0693c6.tar.gz llvm-40c74c6d2233f7c228365740f683c4d16c0693c6.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions