[analyzer] Fix macro names in diagnostics within bigger macros.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 23 Apr 2019 21:30:30 +0000 (21:30 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 23 Apr 2019 21:30:30 +0000 (21:30 +0000)
commita746f2b73c39c2043cb75cd4210f87c2b3e347cc
tree37d4dc27ad47a5f4dd4d9b8ba8a0783504d7456d
parentace7a086ca38738385b84d72b8e2df57ee14bf43
[analyzer] Fix macro names in diagnostics within bigger macros.

If macro "CHECK_X(x)" expands to something like "if (x != NULL) ...",
the "Assuming..." note no longer says "Assuming 'x' is equal to CHECK_X".

Differential Revision: https://reviews.llvm.org/D59121

llvm-svn: 359037
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/test/Analysis/diagnostics/macros.cpp