]> granicus.if.org Git - clang/commit
When a bad UTF-8 encoding or bogus escape sequence is encountered in a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 8 Sep 2012 07:16:20 +0000 (07:16 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 8 Sep 2012 07:16:20 +0000 (07:16 +0000)
commite5f0588840b20897631cc8110344fd2745ef4caa
tree8fb7656a4564a1c23cb52532ca9622efe9f9ba67
parent49f9434a4a69d56779aa37feb2d85e06e7289fce
When a bad UTF-8 encoding or bogus escape sequence is encountered in a
string literal, produce a diagnostic pointing at the erroneous character
range, not at the start of the literal.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163459 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/ConvertUTF.h
include/clang/Lex/LiteralSupport.h
lib/Basic/ConvertUTF.c
lib/Basic/ConvertUTFWrapper.cpp
lib/CodeGen/CGExpr.cpp
lib/Lex/LiteralSupport.cpp
test/Lexer/string-literal-errors.cpp [new file with mode: 0644]
test/Misc/wrong-encoding.c