aboutsummaryrefslogtreecommitdiff
path: root/Driver/clang.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-10-21 10:37:50 +0000
committerSteve Naroff <snaroff@apple.com>2008-10-21 10:37:50 +0000
commitfe6b0dc94a5279f33aba9a3bc0237c9841be3d43 (patch)
tree091174f8436358b15d2b6cb4edc6fc7f5975d66c /Driver/clang.cpp
parent933c3e1dca3bb88bf113290ef0ade8f5262a89c0 (diff)
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
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r--Driver/clang.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index fcd4d5ab72..c2afe5b622 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -595,6 +595,11 @@ static llvm::cl::opt<bool>
WarnImplicitFunctionDeclaration("Wimplicit-function-declaration",
llvm::cl::desc("Warn about uses of implicitly defined functions"));
+static llvm::cl::opt<bool>
+WarnNoStrictSelectorMatch("Wno-strict-selector-match",
+ llvm::cl::desc("Do not warn about duplicate methods that have the same size and alignment"),
+ llvm::cl::init(true));
+
/// InitializeDiagnostics - Initialize the diagnostic object, based on the
/// current command line option settings.
static void InitializeDiagnostics(Diagnostic &Diags) {