[cfe-commits] [PATCH] Support for universal character names in identifiers

Jordan Rose jordan_rose at apple.com
Wed Jan 23 11:58:01 PST 2013


  Many more tests.

  This is actually now four patches in my git repo, which is how I'm planning to commit it:

  - Unify diagnostics for \x, \u, and \U without any following hex digits.
  - Handle universal character names and Unicode characters outside of literals.
  - As an extension, treat Unicode whitespace characters as whitespace.
  - Add a fixit for \U1234 -> \u1234.

Hi rsmith,

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

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D312?vs=749&id=754#toc

Files:
  include/clang/Basic/ConvertUTF.h
  include/clang/Basic/DiagnosticLexKinds.td
  include/clang/Lex/Lexer.h
  include/clang/Lex/Token.h
  lib/Lex/Lexer.cpp
  lib/Lex/LiteralSupport.cpp
  lib/Lex/Preprocessor.cpp
  test/CXX/over/over.oper/over.literal/p8.cpp
  test/CodeGen/ucn-identifiers.c
  test/FixIt/fixit-unicode.c
  test/Lexer/unicode.c
  test/Lexer/utf8-invalid.c
  test/Preprocessor/ucn-pp-identifier.c
  test/Sema/ucn-cstring.c
  test/Sema/ucn-identifiers.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D312.3.patch
Type: text/x-patch
Size: 34680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130123/260b5204/attachment.bin>


More information about the cfe-commits mailing list