diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-14 02:46:37 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-14 02:46:37 +0000 |
commit | 8aa4ebf0bcf73be3520ee49da0c9ce9cfe66ba31 (patch) | |
tree | f6958f307754255f13c15ea299fc7c98fa15933a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5f40d349588a5625921be5fb486425ae763e29a8 (diff) | |
download | llvm-8aa4ebf0bcf73be3520ee49da0c9ce9cfe66ba31.zip llvm-8aa4ebf0bcf73be3520ee49da0c9ce9cfe66ba31.tar.gz llvm-8aa4ebf0bcf73be3520ee49da0c9ce9cfe66ba31.tar.bz2 |
Implement typo correction for Objective-C message sends when the
receiver is a mis-typed class name. Previously, we would give a non-specific
typo-correction diagnostic from the expression-parsing code, but there
was no fix-it because it was too late to recover. Now, we give a nice
diagnostic
honk.m:6:4: error: unknown receiver 'Hnk'; did you mean 'Honk'?
[Hnk method];
^~~
Honk
honk.m:1:1: note: 'Honk' declared here
@interface Honk
^
which includes a fix-it.
We still need to recover better from mis-typing "super".
llvm-svn: 101211
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions