summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-06-24 17:02:19 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-06-24 17:02:19 +0000
commita36053be37f9f3e3fff6aadb90d81d4e06d61d1f (patch)
tree20cfa405e317c267738f38f12924760c9097f274 /include
parente8e398049c5cb9d8ee10a8fcee11cb5df2f8999f (diff)
downloadclang-a36053be37f9f3e3fff6aadb90d81d4e06d61d1f.tar.gz
clang-a36053be37f9f3e3fff6aadb90d81d4e06d61d1f.tar.bz2
clang-a36053be37f9f3e3fff6aadb90d81d4e06d61d1f.tar.xz
Objective-C. When we use @selector(save:), etc. there may be more
than one method with mismatched type of same selector name. clang issues a warning to point this out since it may cause undefined behavior. There are cases though that some APIs don't care about user methods and such warnings are perceived as noise. This patch allows users to add paren delimiters around selector name to turn off such warnings. So, @selector((save:)) will turn off the warning. It also provides 'fixit' so user knows what to do. // rdar://16458579 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Sema/Sema.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h
index b8d31c32a4..fb1fe36304 100644
--- a/include/clang/Sema/Sema.h
+++ b/include/clang/Sema/Sema.h
@@ -4748,7 +4748,8 @@ public:
SourceLocation AtLoc,
SourceLocation SelLoc,
SourceLocation LParenLoc,
- SourceLocation RParenLoc);
+ SourceLocation RParenLoc,
+ bool WarnMultipleSelectors);
/// ParseObjCProtocolExpression - Build protocol expression for \@protocol
ExprResult ParseObjCProtocolExpression(IdentifierInfo * ProtocolName,