Add another keyword-selection flag to CorrectionCandidateCallback.
authorKaelyn Takata <rikka@google.com>
Mon, 28 Jul 2014 18:14:02 +0000 (18:14 +0000)
committerKaelyn Takata <rikka@google.com>
Mon, 28 Jul 2014 18:14:02 +0000 (18:14 +0000)
commitb04846b4cde6879660d82a2f0fc8627b168acd55
treea2a58aefbf3177e2e954653801662cc14bafbd7d
parent2b252ecf6b848e755517111af5191757cd1b3672
Add another keyword-selection flag to CorrectionCandidateCallback.

The new flag, WantFunctionLikeCasts, covers a subset of the keywords
covered by WantTypeSpecifiers that can be used in casts that look like
function calls, e.g. "return long(5);", while excluding the keywords
like "enum" and "const" that would be included when WantTypeSpecifiers
is true but cannot be used in something that looks like a function call.

llvm-svn: 214109
clang/include/clang/Sema/TypoCorrection.h
clang/lib/Sema/SemaLookup.cpp
clang/test/SemaCXX/typo-correction-pt2.cpp