aboutsummaryrefslogtreecommitdiff
path: root/lib/Tooling/CommonOptionsParser.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-08-24 00:06:12 +0000
committerAnna Zaks <ganna@apple.com>2012-08-24 00:06:12 +0000
commit5a90193ad825656d4a03099cd5e9c928d1782b5e (patch)
tree117e852258e6a0ee104c11f0a0c4499870b1959b /lib/Tooling/CommonOptionsParser.cpp
parent70ff1091315c60fed68d7197c637ec8c588e67a1 (diff)
[analyzer] Make analyzer less aggressive when dealing with [self init].
With inlining, retain count checker starts tracking 'self' through the init methods. The analyser results were too noisy if the developer did not follow 'self = [super init]' pattern (which is common especially in older code bases) - we reported self init anti-pattern AND possible use-after-free. This patch teaches the retain count checker to assume that [super init] does not fail when it's not consumed by another expression. This silences the retain count warning that warns about possibility of use-after-free when init fails, while preserving all the other checking on 'self'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/CommonOptionsParser.cpp')
0 files changed, 0 insertions, 0 deletions