[cfe-commits] r68180 - /cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td

Eli Friedman eli.friedman at gmail.com
Tue Mar 31 19:59:02 PDT 2009


Author: efriedma
Date: Tue Mar 31 21:59:02 2009
New Revision: 68180

URL: http://llvm.org/viewvc/llvm-project?rev=68180&view=rev
Log:
Follow gcc's example and warn by default on unknown escapes.  Inspired 
by mailing list message about "\phello" style strings.


Modified:
    cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td?rev=68180&r1=68179&r2=68180&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td Tue Mar 31 21:59:02 2009
@@ -50,7 +50,7 @@
 // Literal
 def ext_nonstandard_escape : Extension<
   "use of non-standard escape character '\\%0'">;
-def ext_unknown_escape : Extension<"unknown escape sequence '\\%0'">;
+def ext_unknown_escape : ExtWarn<"unknown escape sequence '\\%0'">;
 def err_hex_escape_no_digits : Error<"\\x used with no following hex digits">;
 def err_ucn_escape_no_digits : Error<"\\u used with no following hex digits">;
 def err_ucn_escape_invalid : Error<"invalid universal character">;





More information about the cfe-commits mailing list