diff options
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.def | 4 | ||||
-rw-r--r-- | lib/Lex/Lexer.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.def b/include/clang/Basic/DiagnosticLexKinds.def index ad08ba976c..f1d918ea02 100644 --- a/include/clang/Basic/DiagnosticLexKinds.def +++ b/include/clang/Basic/DiagnosticLexKinds.def @@ -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, diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index 5f32522020..efbd84c879 100644 --- a/lib/Lex/Lexer.cpp +++ b/lib/Lex/Lexer.cpp @@ -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) { |