]> granicus.if.org Git - clang/commit
When checking the encoding of an 8-bit string literal, don't just check the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 8 Mar 2012 21:59:28 +0000 (21:59 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 8 Mar 2012 21:59:28 +0000 (21:59 +0000)
commit49d517467c3dcd2c67e8a6c740ba5160e37625f7
treea41241684cb33d87947bea6ae6a0c7caf07a8933
parent188158db29f50443b6e412f2a40c800b2669c957
When checking the encoding of an 8-bit string literal, don't just check the
first codepoint! Also, don't reject empty raw string literals for spurious
"encoding" issues. Also, don't rely on undefined behavior in ConvertUTF.c.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152344 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/ConvertUTF.h
lib/Basic/ConvertUTF.c
lib/Lex/LiteralSupport.cpp
test/Lexer/cxx0x_raw_string_delim_length.cpp
test/Lexer/string-literal-encoding.c