Hi, the attached patch adds support for UCN notation to character literals, e.g. L'\u1234'. It splits EncodeUCNEscape() into two pieces and calls only the first piece for character literals.
Note that overflow (e.g. L'\U0010fffe' with -fshort-wchar) is handled differently than in gcc, because the gcc behavior makes no sense to me, and I guess this is implementation-defined anyhow and not used in practice. Please review. Thanks, Nico
clang-ucn-char-literals.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
