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

bwendlin at cs.uiuc.edu bwendlin at cs.uiuc.edu
Wed Jul 11 09:45:44 PDT 2007


Author: bwendlin
Date: Wed Jul 11 11:45:44 2007
New Revision: 39571

URL: http://llvm.org/viewvc/llvm-project?rev=39571&view=rev
Log:
Submitted by: Bill Wendling
Reviewed by: Chris Lattner

- Diagnostic messages for invalid reference usage.

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=39571&r1=39570&r2=39571&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/Basic/DiagnosticKinds.def (original)
+++ cfe/cfe/trunk/include/clang/Basic/DiagnosticKinds.def Wed Jul 11 11:45:44 2007
@@ -419,6 +419,8 @@
      "'static' may not be used with an unspecified variable length array size")
 DIAG(err_invalid_storage_class_in_func_decl, ERROR,
      "invalid storage class specifier in function declarator")
+DIAG(err_invalid_reference_qualifier_application, ERROR,
+     "'%0' qualifier may not be applied to a reference")
 
 // Function Parameter Semantic Analysis.
 DIAG(err_void_param_with_identifier, ERROR,
@@ -496,7 +498,13 @@
      "'%0' declared as array of functions")
 DIAG(err_illegal_decl_array_incomplete_type, ERROR,
      "array has incomplete element type '%0'")
-     
+DIAG(err_illegal_decl_array_of_references, ERROR,
+     "'%0' declared as array of references")
+DIAG(err_illegal_decl_pointer_to_reference, ERROR,
+     "'%0' declared as a pointer to a reference")
+DIAG(err_illegal_decl_reference_to_reference, ERROR,
+     "'%0' declared as a reference to a reference")
+
 // Expressions.
 DIAG(ext_sizeof_function_type, EXTENSION,
      "invalid application of 'sizeof' to a function type")





More information about the cfe-commits mailing list