diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-08-12 22:16:41 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-08-12 22:16:41 +0000 |
commit | 7c33b6163c35fe151b0a22f188065eecab3657f8 (patch) | |
tree | 4aae7749a8085ae015dcec1ed04b0f162b93e32d /test/FixIt | |
parent | fc064f81189a42025332a4dafab3ad8492e39ba4 (diff) | |
download | clang-7c33b6163c35fe151b0a22f188065eecab3657f8.tar.gz |
Objective-C [qoi]. Patch to not do Fix-It for fixing
a messaging expression except in the simple case
of a unary selector. We cannot reliably provide such a fixit due
to numerous reasons where a matching selector could not be found.
rdar://15756038
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215480 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt')
-rw-r--r-- | test/FixIt/multiarg-selector-fixit.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/FixIt/multiarg-selector-fixit.m b/test/FixIt/multiarg-selector-fixit.m new file mode 100644 index 0000000000..d60d31282c --- /dev/null +++ b/test/FixIt/multiarg-selector-fixit.m @@ -0,0 +1,15 @@ +// RUN: cp %s %t +// RUN: %clang_cc1 -x objective-c -fixit %t +// RUN: diff %t %s +// rdar://15756038 + +#define nil (void *)0 + +@interface NSObject +- (void)testDataSource:(id)object withMultipleArguments:(id)arguments; +@end + +int main() { + id obj; + [obj TestDataSource:nil withMultipleArguments:nil]; +} |