[cfe-commits] r39392 - /cfe/cfe/trunk/include/clang/Basic/DiagnosticKinds.def

clattner at cs.uiuc.edu clattner at cs.uiuc.edu
Wed Jul 11 09:43:53 PDT 2007


Author: clattner
Date: Wed Jul 11 11:43:53 2007
New Revision: 39392

URL: http://llvm.org/viewvc/llvm-project?rev=39392&view=rev
Log:
Implement support for semantic analysis of character constants.

Modified:
    cfe/cfe/trunk/include/clang/Basic/DiagnosticKinds.def

Modified: cfe/cfe/trunk/include/clang/Basic/DiagnosticKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Basic/DiagnosticKinds.def?rev=39392&r1=39391&r2=39392&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/Basic/DiagnosticKinds.def (original)
+++ cfe/cfe/trunk/include/clang/Basic/DiagnosticKinds.def Wed Jul 11 11:43:53 2007
@@ -367,10 +367,19 @@
 // Semantic Analysis
 //===----------------------------------------------------------------------===//
 
+// Semantic analysis of string and character constant literals.
 DIAG(ext_nonstandard_escape, EXTENSION,
      "use of non-standard escape character '\\%s'")
 DIAG(ext_unknown_escape, EXTENSION,
      "unknown escape sequence '\\%s'")
+DIAG(warn_extraneous_wide_char_constant, WARNING,
+     "extraneous characters in wide character constant ignored")
+DIAG(warn_char_constant_too_large, WARNING,
+     "character constant too long for its type")
+DIAG(warn_hex_escape_too_large, WARNING,
+     "hex escape sequence out of range")
+DIAG(warn_octal_escape_too_large, WARNING,
+     "octal escape sequence out of range")
 
 DIAG(err_hex_escape_no_digits, ERROR,
      "\\x used with no following hex digits")





More information about the cfe-commits mailing list