summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2014-03-05 08:13:08 +0000
committerTed Kremenek <kremenek@apple.com>2014-03-05 08:13:08 +0000
commit9d33e30aba42a968017b1bfe51951337322f06eb (patch)
tree80d4aa6469ac34c36e9d604f6b811743c8e9081a /lib/CodeGen/CodeGenFunction.cpp
parent2c9a039c9bdfb19c769cd0224e30fc66e5ad49d4 (diff)
downloadclang-9d33e30aba42a968017b1bfe51951337322f06eb.tar.gz
clang-9d33e30aba42a968017b1bfe51951337322f06eb.tar.bz2
clang-9d33e30aba42a968017b1bfe51951337322f06eb.tar.xz
Adjust logic for 'objc_protocol_requires_explicit_implementation' for inherited protocols and protocols already conformed in the class hierarchy.
Per more discussion, 'objc_protocol_requires_explicit_implementation' is refinement that it mainly adds that requirement that a protocol must be explicitly satisfied at the moment the first class in the class hierarchy conforms to it. Any subclasses that also conform to that protocol, either directly or via conforming to a protocol that inherits that protocol, do not need to re-implement that protocol. Doing this requires first doing a pass on the super class hierarchy, gathering the set of protocols conformed to by the super classes, and then culling those out when determining conformance. This two-pass algorithm could be generalized for all protocol checking, and could possibly be a performance win in some cases. For now we restrict this change to protocols with this attribute to isolate the change in logic (especially as the design continues to evolve). This change needs to be adjusted for properties as well; this only impacts methods right now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions