]> granicus.if.org Git - clang/commit
Avoid correcting unknown identifiers to types where types aren't allowed.
authorKaelyn Uhrain <rikka@google.com>
Wed, 25 Jan 2012 20:49:08 +0000 (20:49 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 25 Jan 2012 20:49:08 +0000 (20:49 +0000)
commitcd78e612d6fa8e214e6a6bb0e739a0c3e419df91
tree80fe736fdb339888bc309422e146c3753a84396d
parentada4fa7978dc91a5e615af2ec29e12e3c6973c7f
Avoid correcting unknown identifiers to types where types aren't allowed.

Pass a typo correction callback object from ParseCastExpr to
Sema::ActOnIdExpression to be a bit more selective about what kinds of
corrections will be allowed for unknown identifiers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148973 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Sema/SemaExpr.cpp
test/SemaCXX/typo-correction.cpp