]> granicus.if.org Git - clang/commit
Fix <rdar://problem/6261178> clang-on-xcode: [sema] multiple method warning is over...
authorSteve Naroff <snaroff@apple.com>
Tue, 21 Oct 2008 10:37:50 +0000 (10:37 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 21 Oct 2008 10:37:50 +0000 (10:37 +0000)
commitfe6b0dc94a5279f33aba9a3bc0237c9841be3d43
tree091174f8436358b15d2b6cb4edc6fc7f5975d66c
parent933c3e1dca3bb88bf113290ef0ade8f5262a89c0
Fix <rdar://problem/6261178> clang-on-xcode: [sema] multiple method warning is over enthusiastic.
Fix <rdar://problem/6265257> warnings for ambiguous message send swamp other warnings.

Reworked Sema::MatchTwoMethodDeclarations() to optionally match based on method size and alignment (the default in GCC). Changed Sema::LookupInstanceMethodInGlobalPool() to use this feature.

Added -Wno-struct-selector-match to driver, however didn't hook it up yet. Added a FIXME that says this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57898 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/clang.cpp
lib/Sema/Sema.h
lib/Sema/SemaDeclObjC.cpp
test/SemaObjC/method-lookup-3.m