[PATCH v2 7/9] Add another keyword-selection flag to CorrectionCandidateCallback.

Kaelyn Takata rikka at google.com
Tue Jun 17 17:25:27 PDT 2014


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.
---
 include/clang/Sema/TypoCorrection.h | 11 +++++++----
 lib/Sema/SemaLookup.cpp             | 10 +++++++++-
 2 files changed, 16 insertions(+), 5 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0007-Add-another-keyword-selection-flag-to-CorrectionC.patch
Type: text/x-patch
Size: 2858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140617/cb4219cf/attachment.bin>


More information about the cfe-commits mailing list