diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-05-18 16:30:22 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-05-18 16:30:22 +0000 |
| commit | 86ad085b402c0f9c4b9a355783347e653e9ca67d (patch) | |
| tree | c5f704b8e71ef17af6afc46f69563b66d6d47dd7 /clang/test/FixIt | |
| parent | 5fd04d48329dc4dbbea7c1a5075a5e9701af06b9 (diff) | |
| download | bcm5719-llvm-86ad085b402c0f9c4b9a355783347e653e9ca67d.tar.gz bcm5719-llvm-86ad085b402c0f9c4b9a355783347e653e9ca67d.zip | |
Give a slight edge to the context-sensitive keyword 'super' over
non-function-local declarations with names similar to what the user
typed. For example, this allows us to correct 'supper' to 'super' in
an Objective-C message send, even though the C function 'isupper' has
the same edit distance.
llvm-svn: 104023
Diffstat (limited to 'clang/test/FixIt')
| -rw-r--r-- | clang/test/FixIt/typo.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/FixIt/typo.m b/clang/test/FixIt/typo.m index 3b73a2a33b6..11447620deb 100644 --- a/clang/test/FixIt/typo.m +++ b/clang/test/FixIt/typo.m @@ -111,7 +111,6 @@ void test2(Collide *a) { @end -#ifdef NON_FIXITS double *isupper(int); @interface Sub2 : Super @@ -120,10 +119,9 @@ double *isupper(int); @implementation Sub2 - (int)method2 { - return [supper method2]; // expected-error{{use of undeclared identifier 'supper'}} + return [supper method2]; // expected-error{{unknown receiver 'supper'; did you mean 'super'?}} } @end -#endif @interface Ivar @end @@ -138,7 +136,7 @@ double *isupper(int); @end @implementation User -@synthesize ivar; +@synthesize ivar; // expected-error{{synthesized property 'ivar' must either be named the same as a compatible ivar or must explicitly name an ivar}} - (void)method { // Test that we don't correct 'ivar' to 'Ivar' e |

