[PATCH] D26503: [Parser][ObjC] Improve diagnostics and recovery when C++ keywords are used as identifiers in Objective-C++
Alex Lorenz via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 10 07:20:22 PST 2016
arphaman created this revision.
arphaman added reviewers: manmanren, bruno.
arphaman added a subscriber: cfe-commits.
arphaman set the repository for this revision to rL LLVM.
This patch improves the 'expected identifier' errors that are presented when a C++ keyword is used as an identifier in Objective-C++ by mentioning that this is a C++ keyword in the diagnostic message. It also improves the error recovery: the parser will treat the C++ keywords as identifiers to prevent unrelated parsing errors.
Repository:
rL LLVM
https://reviews.llvm.org/D26503
Files:
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/IdentifierTable.h
include/clang/Parse/Parser.h
lib/Basic/IdentifierTable.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseObjc.cpp
test/Parser/objc-cxx-keyword-identifiers.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26503.77482.patch
Type: text/x-patch
Size: 14325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161110/5c51f22f/attachment.bin>
More information about the cfe-commits
mailing list