llvm-project/clang/test/Analysis/diagnostics
Anna Zaks 40c74c6d22 [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
2016-12-15 22:55:11 +00:00
..
Inputs/include [analyzer] Add more FileIDs to PlistDiagnostic map to avoid assertion 2016-09-01 12:25:16 +00:00
deref-track-symbolic-region.c [analyzer] Bug identification 2015-10-22 11:53:04 +00:00
deref-track-symbolic-region.cpp
diag-cross-file-boundaries.c [analyzer] Add explanation why analyzer report is not generated (fix for PR12421). 2016-10-06 21:42:21 +00:00
diag-cross-file-boundaries.h [analyzer] Add explanation why analyzer report is not generated (fix for PR12421). 2016-10-06 21:42:21 +00:00
explicit-suppression.cpp [analyzer] Invalidate destination of std::copy() and std::copy_backward(). 2016-02-07 16:55:44 +00:00
false-positive-suppression.c
implicit-cxx-std-suppression.cpp [analyzer] Suppress false positives in std::shared_ptr 2016-07-06 21:52:55 +00:00
macros.cpp [analyzer] Refer to macro names in diagnostics for macros representing a literal 2016-12-15 22:55:11 +00:00
macros.m [analyzer] Refer to macro names in diagnostics for macros representing a literal 2016-12-15 22:55:11 +00:00
no-prune-paths.c
plist-diagnostics-include-check.cpp [analyzer] Add more FileIDs to PlistDiagnostic map to avoid assertion 2016-09-01 12:25:16 +00:00
report-issues-within-main-file.cpp [analyzer] Fix IssueHash generation. 2015-12-01 09:00:41 +00:00
shortest-path-suppression.c
text-diagnostics.c
undef-value-callee.h
undef-value-caller.c [analyzer] Bug identification 2015-10-22 11:53:04 +00:00
undef-value-param.c [analyzer] Bug identification 2015-10-22 11:53:04 +00:00
undef-value-param.m [analyzer] Bug identification 2015-10-22 11:53:04 +00:00