[PATCH] Don't restrict legal UCNs when preprocessing assembly

Justin Bogner mail at justinbogner.com
Fri Oct 18 17:43:47 PDT 2013


The C and C++ standards disallow using universal character names to
refer to some characters, such as basic ascii and control characters,
so we reject these sequences in the lexer. However, when the
preprocessor isn't being used on C or C++, it doesn't make sense to
apply these restrictions.

Notably, accepting these characters avoids issues with unicode escapes
when GHC uses the compiler as a preprocessor on haskell sources.

Okay to commit?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ucn-asmcpp.patch
Type: text/x-patch
Size: 1271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131018/e40864cd/attachment.bin>


More information about the cfe-commits mailing list