]> granicus.if.org Git - clang/commit
Implement typo correction for id-expressions, e.g.,
authorDouglas Gregor <dgregor@apple.com>
Thu, 31 Dec 2009 05:20:13 +0000 (05:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 31 Dec 2009 05:20:13 +0000 (05:20 +0000)
commitbb092bafa984e9fa05136b5cef40fd4374dea0f6
tree101d11d5723f9939fd7778f6a45991c9153a309a
parent8c3f89032c8822c443fb8a1633d297b60e5ca90c
Implement typo correction for id-expressions, e.g.,

typo.cpp:22:10: error: use of undeclared identifier 'radious'; did
      you mean 'radius'?
  return radious * pi;
         ^~~~~~~
         radius

This was super-easy, since we already had decent recovery by looking
for names in dependent base classes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92341 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaOverload.cpp
test/FixIt/typo.cpp
test/Sema/var-redecl.c