]> granicus.if.org Git - clang/commit
Teach typo correction to properly handle mapping declarations to their
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Dec 2015 19:43:10 +0000 (19:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Dec 2015 19:43:10 +0000 (19:43 +0000)
commitb46f944564af3dfe88d21f05ddfb2f8e4a9ece35
treeedceef2a6cc28797261b72fd7ee51f7f87ef3cb9
parentd493a1e5e5a84f6da9314c78e4d1412e40120e80
Teach typo correction to properly handle mapping declarations to their
underlying decls. Preserve the found declaration throughout, and only map to
the underlying declaration when we want to check whether it's the right kind.
This allows us to provide the right source location for the found declaration,
and prepares for the possibility of underlying decls with a different name
from the found decl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256575 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/TypoCorrection.h
lib/Sema/SemaCXXScopeSpec.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaTemplate.cpp
test/SemaCXX/typo-correction.cpp