]> granicus.if.org Git - clang/commit
[analyzer] IvarInvalidation: add annotation for partial invalidation
authorAnna Zaks <ganna@apple.com>
Fri, 8 Feb 2013 23:55:43 +0000 (23:55 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 8 Feb 2013 23:55:43 +0000 (23:55 +0000)
commit26db7dbf67b1532b2d617b3a85428699a1ffc997
tree55ce87ed33d5391378539284bc7993983aab5844
parent125643455953069b925b30d2e4ae5674063984ed
[analyzer] IvarInvalidation: add annotation for partial invalidation

The new annotation allows having methods that only partially invalidate
IVars and might not be called from the invalidation methods directly
(instead, are guaranteed to be called before the invalidation occurs).
The checker is going to trust the programmer to call the partial
invalidation method before the invalidator.This is common in cases when
partial object tear down happens before the death of the object.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174779 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp
test/Analysis/objc_invalidation.m