]> granicus.if.org Git - clang/commit
[analyzer] Suppress null reports from defensive checks in function-like macros.
authorDevin Coughlin <dcoughlin@apple.com>
Fri, 29 Jan 2016 18:47:13 +0000 (18:47 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Fri, 29 Jan 2016 18:47:13 +0000 (18:47 +0000)
commitebd178339ba7c4e4f149e5e216851e4e329ad554
treee2e31256edb43ca50af6cfa64e6abf2af55fb146
parent62dda467bc8575aaf83e1a8be86bc7f82d5a83c7
[analyzer] Suppress null reports from defensive checks in function-like macros.

We already do this for case splits introduced as a result of defensive null
checks in functions and methods, so do the same for function-like macros.

rdar://problem/19640441

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259222 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/inlining/false-positive-suppression.c