aboutsummaryrefslogtreecommitdiff
path: root/Driver/clang.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-11 22:40:47 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-11 22:40:47 +0000
commit0d8019e55c0f465bafc11b04aed691de95b9131d (patch)
tree67854def92c93e2096a354c201a6de323e349ee8 /Driver/clang.cpp
parent75a4881047deeb3a300ff9293dc6ba8570048bb5 (diff)
Add new check: -check-objc-methodsigs. This check scans methods in
ObjCImplementationDecls and sees if a ancestor class defines a method with the same selector but with a different type signature. Right now it just compares return types, and mainly looks at differences in primitive values. The checking will be expanded in the future. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r--Driver/clang.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 6efab74864..d92d5d62e6 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -170,6 +170,8 @@ clEnumValN(WarnDeadStores, "warn-dead-stores",
"Flag warnings of stores to dead variables"),
clEnumValN(WarnUninitVals, "warn-uninit-values",
"Flag warnings of uses of unitialized variables"),
+clEnumValN(CheckObjCMethSigs, "check-objc-methodsigs",
+ "Check the Objective-C method signatures for type incompatibilities."),
clEnumValN(CheckerSimple, "checker-simple",
"Perform simple path-sensitive checks."),
clEnumValN(CheckerCFRef, "checker-cfref",