]> granicus.if.org Git - clang/commit
[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)
commitf7cbf839e8a5a043c1bb83deae99a904735f89cb
tree0903ff239aceb4ad8e95a18191c2bfccaaa10d0c
parentac703ee6db1d20aa8884f017ac2329d188e4ceef
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359037 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/diagnostics/macros.cpp