]> granicus.if.org Git - clang/commit
In Objective-C, pull arbitrary attributes from overridden
authorJohn McCall <rjmccall@apple.com>
Fri, 22 Jul 2011 02:45:48 +0000 (02:45 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 22 Jul 2011 02:45:48 +0000 (02:45 +0000)
commit6c2c250db1e2d0138bbfaadbbec3118db7e8a8c9
treea67ea5cf0a0af1a46b95c3b6166de4613a64b23a
parentdb8264e4c5ffd7af6fbad4ca4306bd382bb02691
In Objective-C, pull arbitrary attributes from overridden
methods, including indirectly overridden methods like those
declared in protocols and categories.  There are mismatches
that we would like to diagnose but aren't yet, but this
is fine for now.

I looked at approaches that avoided doing this lookup
unless we needed it, but the infer-related-result-type
checks were doing it anyway, so I left it with the same
fast-path check for no previous declartions of that
selector.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135743 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclObjC.cpp
lib/StaticAnalyzer/Core/CFRefCount.cpp
test/Analysis/retain-release.m
test/CodeGenObjC/arc.m