]> granicus.if.org Git - clang/commit
Fix crash on end-of-file after \ in a char literal, fixes PR14369.
authorNico Weber <nicolasweber@gmx.de>
Sat, 17 Nov 2012 20:25:54 +0000 (20:25 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sat, 17 Nov 2012 20:25:54 +0000 (20:25 +0000)
commit6d926ae667cca926e77ddce1734514911706ed0a
tree2a5f1f325132192956b3b09a30aa32005bcf5dc9
parent3f03b586351779be6947466f530f22c491b1b70f
Fix crash on end-of-file after \ in a char literal, fixes PR14369.

This makes LexCharConstant() look more like LexStringLiteral(), which doesn't
have this bug. Add tests for eof after \ for several other cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168269 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/Lexer.cpp
test/Lexer/eof-char.c [new file with mode: 0644]
test/Lexer/eof-file.c [new file with mode: 0644]
test/Lexer/eof-string.c [new file with mode: 0644]