[cfe-commits] r173400 - /cfe/trunk/lib/Lex/Lexer.cpp

Jordan Rose jordan_rose at apple.com
Thu Jan 24 16:20:28 PST 2013


Author: jrose
Date: Thu Jan 24 18:20:28 2013
New Revision: 173400

URL: http://llvm.org/viewvc/llvm-project?rev=173400&view=rev
Log:
Clarify comment: "diagnose" is better than "warn" when emitting an error.

Thanks, Dmitri.

Modified:
    cfe/trunk/lib/Lex/Lexer.cpp

Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=173400&r1=173399&r2=173400&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Thu Jan 24 18:20:28 2013
@@ -3535,7 +3535,7 @@
     
     // Non-ASCII characters tend to creep into source code unintentionally.
     // Instead of letting the parser complain about the unknown token,
-    // just warn that we don't have valid UTF-8, then drop the character.
+    // just diagnose the invalid UTF-8, then drop the character.
     if (!isLexingRawMode())
       Diag(CurPtr, diag::err_invalid_utf8);
 





More information about the cfe-commits mailing list