[PATCH] D15958: u8 character literals

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 7 10:56:25 PST 2016


aaron.ballman created this revision.
aaron.ballman added a reviewer: rsmith.
aaron.ballman added a subscriber: cfe-commits.

While working on a different patch, I noticed that pretty-printing of UTF-8 character literals (from C++1z) did not get the proper u8 prefix. This patch tracks the fact that the character literal is UTF-8, even though the underlying character literal type is char. It adds some additional tests to ensure that character literal prefixes are properly tracked for all prefixes.

http://reviews.llvm.org/D15958

Files:
  include/clang/AST/Expr.h
  include/clang/AST/Stmt.h
  include/clang/Lex/LiteralSupport.h
  lib/AST/StmtPrinter.cpp
  lib/Lex/LiteralSupport.cpp
  lib/Sema/SemaExpr.cpp
  lib/Sema/SemaExprObjC.cpp
  lib/Sema/SemaTemplate.cpp
  test/Misc/ast-print-char-literal.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15958.44230.patch
Type: text/x-patch
Size: 4408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160107/83da1ad3/attachment.bin>


More information about the cfe-commits mailing list