[analyzer] Bugfix for an overly eager suppression for null pointer return from macros.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 16 Jul 2018 20:33:25 +0000 (20:33 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 16 Jul 2018 20:33:25 +0000 (20:33 +0000)
commitbccd6ec351dcd1223d59b4d4a48ac59c3817e521
treefd1f6de441fda28309585e3540ac0722bbea03b9
parent09885d05cebe699a61a09fd8f796b40d8de798b4
[analyzer] Bugfix for an overly eager suppression for null pointer return from macros.

Only suppress those cases where the null which came from the macro is
relevant to the bug, and was not overwritten in between.

rdar://41497323

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

llvm-svn: 337213
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/test/Analysis/diagnostics/macro-null-return-suppression.cpp