[cfe-commits] [PATCH] Validate C99 and C++03's set of UCNs

Jordan Rose jordan_rose at apple.com
Thu Jan 24 16:14:40 PST 2013


Hi rsmith,

C99 and C++03 are both more restrictive about which UCNs can be used in identifiers. This patch adds tables to check all of the restrictions, along with compatibility warnings under -Wc++11-compat, -Wc++98-compat, and -Wc99-compat.

http://llvm-reviews.chandlerc.com/D327

Files:
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticLexKinds.td
  lib/Lex/CharSets.inc
  lib/Lex/Lexer.cpp
  test/Preprocessor/ucn-allowed-chars.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D327.1.patch
Type: text/x-patch
Size: 26358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130124/93f7760b/attachment.bin>


More information about the cfe-commits mailing list