diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-17 19:15:26 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-17 19:15:26 +0000 |
| commit | f4ffdf357c98e30fd8a67d41ab51e55932f8d2d4 (patch) | |
| tree | 69301404a4e37a67f4877489dcd4b1d064f76942 /clang/test/SemaObjC/unused.m | |
| parent | 42782343606a4c50fb5f237bbda37823b67e845b (diff) | |
| download | bcm5719-llvm-f4ffdf357c98e30fd8a67d41ab51e55932f8d2d4.tar.gz bcm5719-llvm-f4ffdf357c98e30fd8a67d41ab51e55932f8d2d4.zip | |
objective-C: issue warning when there is no whitespace
between objc method parameter name and colon.
// rdar://12263549
llvm-svn: 164047
Diffstat (limited to 'clang/test/SemaObjC/unused.m')
| -rw-r--r-- | clang/test/SemaObjC/unused.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/unused.m b/clang/test/SemaObjC/unused.m index efaf9c8f3ef..23d7e8cbe50 100644 --- a/clang/test/SemaObjC/unused.m +++ b/clang/test/SemaObjC/unused.m @@ -29,8 +29,9 @@ void test2() { @end @implementation foo -- (int) meth: (int)x: -(int)y: // expected-warning{{unused}} +- (int) meth: (int)x: // expected-warning {{parameter name used as selector may result in incomplete method selector name}} \ + // expected-note {{did you mean to use meth:Name2:Name3: as the selector name instead of meth:::}} +(int)y: // expected-warning{{unused}} expected-warning {{parameter name used as selector may result in incomplete method selector name}} (int) __attribute__((unused))z { return x; } @end |

