diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2017-10-13 19:10:42 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2017-10-13 19:10:42 +0000 |
commit | 2041cbdcf54905617112179a85e2075c3a46a23d (patch) | |
tree | faa8ca11508659808a782e0c633a54c2e5da36f5 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 7c9c05888c15a5f8681a06b4aa611179aacf55fa (diff) | |
download | bcm5719-llvm-2041cbdcf54905617112179a85e2075c3a46a23d.tar.gz bcm5719-llvm-2041cbdcf54905617112179a85e2075c3a46a23d.zip |
[analyzer] RetainCount: Ignore annotations on user-made CFRetain wrappers.
It is not uncommon for the users to make their own wrappers around
CoreFoundation's CFRetain and CFRelease functions that are defensive
against null references. In such cases CFRetain is often incorrectly
marked as CF_RETURNS_RETAINED. Ignore said annotation and treat such
wrappers similarly to the regular CFRetain.
rdar://problem/31699502
Differential Revision: https://reviews.llvm.org/D38877
llvm-svn: 315736
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions