summaryrefslogtreecommitdiff
path: root/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2014-01-10 20:06:06 +0000
committerJordan Rose <jordan_rose@apple.com>2014-01-10 20:06:06 +0000
commitf0708cabe777e551ebe7052407edcf85b39aa95f (patch)
treedb5df7c18bb80d4aec924a73e255279098c49ce5 /lib/Serialization/GlobalModuleIndex.cpp
parent33ab4d05a0f75b13d8c5d3a0e80ad9115716cae1 (diff)
downloadclang-f0708cabe777e551ebe7052407edcf85b39aa95f.tar.gz
clang-f0708cabe777e551ebe7052407edcf85b39aa95f.tar.bz2
clang-f0708cabe777e551ebe7052407edcf85b39aa95f.tar.xz
[analyzer] Model getters of known-@synthesized Objective-C properties.
...by synthesizing their body to be "return self->_prop;", with an extra nudge to RetainCountChecker to still treat the value as +0 if we have no other information. This doesn't handle weak properties, but that's mostly correct anyway, since they can go to nil at any time. This also doesn't apply to properties whose implementations we can't see, since they may not be backed by an ivar at all. And finally, this doesn't handle properties of C++ class type, because we can't invoke the copy constructor. (Sema has actually done this work already, but the AST it synthesizes is one the analyzer doesn't quite handle -- it has an rvalue DeclRefExpr.) Modeling setters is likely to be more difficult (since it requires handling strong/copy), but not impossible. <rdar://problem/11956898> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/GlobalModuleIndex.cpp')
0 files changed, 0 insertions, 0 deletions