]> granicus.if.org Git - clang/commit
Implement UCN support for C string literals (C99 6.4.3) and add some very basic tests...
authorSteve Naroff <snaroff@apple.com>
Mon, 30 Mar 2009 23:46:03 +0000 (23:46 +0000)
committerSteve Naroff <snaroff@apple.com>
Mon, 30 Mar 2009 23:46:03 +0000 (23:46 +0000)
commit0e3e3eb3879d5a7aaca4a393706149ddef8544f1
treee361b93a75ceb829bf7c4c1b6ea61c1d72b08e87
parente1646da3bb0fe97b372e5fe8cefc537b22048fc4
Implement UCN support for C string literals (C99 6.4.3) and add some very basic tests. Chris Goller has graciously offered to write some test to help validate UCN support.

From a front-end perspective, I believe this code should work for ObjC @-strings. At the moment, I believe we need to tweak the code generation for @-strings (which doesn't appear to handle them). Will be investigating.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68076 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticLexKinds.td
lib/Lex/LiteralSupport.cpp
test/Sema/ucn-cstring.c [new file with mode: 0644]