]> granicus.if.org Git - clang/commitdiff
a minor grammar fix
authorChris Lattner <sabre@nondot.org>
Sun, 7 Dec 2008 00:59:53 +0000 (00:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 7 Dec 2008 00:59:53 +0000 (00:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60646 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticKinds.def
test/Sema/array-constraint.c
test/Sema/typedef-variable-type.c
test/Sema/vla.c

index 63bf48c75777b0f530ee6efc29b2ae8d43a14f82..03787dfa62effd50da7dbba6e167fc802a9a3e6a 100644 (file)
@@ -999,13 +999,13 @@ DIAG(warn_enum_too_large, WARNING,
 DIAG(warn_illegal_constant_array_size, EXTENSION,
      "size of static array must be an integer constant expression")
 DIAG(err_vla_decl_in_file_scope, ERROR,
-     "variable length array declaration not allowed in file scope")
+     "variable length array declaration not allowed at file scope")
 DIAG(err_vla_decl_has_static_storage, ERROR,
      "variable length array declaration can not have 'static' storage duration")
 DIAG(err_vla_decl_has_extern_linkage, ERROR,
      "variable length array declaration can not have 'extern' linkage")
 DIAG(err_vm_decl_in_file_scope, ERROR,
-     "variably modified type declaration not allowed in file scope")
+     "variably modified type declaration not allowed at file scope")
 DIAG(err_vm_decl_has_extern_linkage, ERROR,
      "variably modified type declaration can not have 'extern' linkage")
 DIAG(err_typecheck_field_variable_size, ERROR,
index 7763e7923d18a2eb5c31a7d43bb5c704ff3c33f6..596d19f77c618d63291457846b74885df39d8459 100644 (file)
@@ -41,7 +41,7 @@ void check_size() {
 }
 
 static int I;
-typedef int TA[I]; // expected-error {{variable length array declaration not allowed in file scope}}
+typedef int TA[I]; // expected-error {{variable length array declaration not allowed at file scope}}
 
 void strFunc(char *);
 const char staticAry[] = "test";
index 346117ef18a2628589a968b682ea3e72afc387ce..e982637feb36333d09ba1c52b7e6780ddac5bf12 100644 (file)
@@ -1,3 +1,3 @@
 // RUN: clang %s -verify -fsyntax-only -pedantic
 
-typedef int (*a)[!.0]; // expected-error{{variably modified type declaration not allowed in file scope}}
+typedef int (*a)[!.0]; // expected-error{{variably modified type declaration not allowed at file scope}}
index bccd5e65669e9901b6877c57ccc7894e121d5e60..4b7a746b463fb116ade8055d5c8a3d661edb66fd 100644 (file)
@@ -27,10 +27,10 @@ void f2(unsigned int m)
 
 // PR2361
 int i; 
-int c[][i]; // expected-error {{variably modified type declaration not allowed in file scope}}
-int d[i]; // expected-error {{variable length array declaration not allowed in file scope}}
+int c[][i]; // expected-error {{variably modified type declaration not allowed at file scope}}
+int d[i]; // expected-error {{variable length array declaration not allowed at file scope}}
 
-int (*e)[i]; // expected-error {{variably modified type declaration not allowed in file scope}}
+int (*e)[i]; // expected-error {{variably modified type declaration not allowed at file scope}}
 
 void f3()
 {