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

Kaelyn Takata rikka at google.com
Mon Jul 14 16:55:39 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 | 12 ++++++++----
 lib/Sema/SemaLookup.cpp             | 10 +++++++++-
 2 files changed, 17 insertions(+), 5 deletions(-)

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


More information about the cfe-commits mailing list