t.c:1:10: error: missing terminating '>' character
#include <stdio.h
         ^

instead of:

t.c:1:10: error: missing terminating " character
#include <stdio.h
         ^



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-02-19 18:29:56 +00:00
Родитель 167fdc137e
Коммит b66158c299
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -55,9 +55,11 @@ DIAG(ext_token_used, EXTENSION,
"extension used")
DIAG(err_unterminated_string, ERROR,
"missing terminating \" character")
"missing terminating '\"' character")
DIAG(err_unterminated_char, ERROR,
"missing terminating ' character")
DIAG(err_unterminated_angled_string, ERROR,
"missing terminating '>' character")
DIAG(err_empty_character, ERROR,
"empty character constant")
DIAG(err_unterminated_block_comment, ERROR,

Просмотреть файл

@ -687,7 +687,7 @@ void Lexer::LexAngledStringLiteral(Token &Result, const char *CurPtr) {
} else if (C == '\n' || C == '\r' || // Newline.
(C == 0 && CurPtr-1 == BufferEnd)) { // End of file.
if (!isLexingRawMode())
Diag(BufferPtr, diag::err_unterminated_string);
Diag(BufferPtr, diag::err_unterminated_angled_string);
FormTokenWithChars(Result, CurPtr-1, tok::unknown);
return;
} else if (C == 0) {