[PATCH] Offer typo suggestions for 'using'.
Luke Zarko
zarko at google.com
Wed Jun 26 12:35:10 PDT 2013
I found a case where Clang doesn't yet help with typo correction:
tests/base_using.cc:
namespace Q { class AAA {}; }
using Q::AAB;
Before:
tests/base_using.cc:2:10: error: no member named 'AAB' in namespace 'Q'
using Q::AAB;
~~~^
After:
tests/base_using.cc:2:10: error: no member named 'AAB' in namespace
'Q'; did you mean 'AAA'?
using Q::AAB;
~~~^
tests/base_using.cc:1:21: note: 'AAA' declared here
namespace Q { class AAA {}; }
^
Luke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: using-typo.patch
Type: application/octet-stream
Size: 3013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130626/f236db2b/attachment.obj>
More information about the cfe-commits
mailing list