diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-02-16 22:08:28 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-02-16 22:08:28 +0000 |
commit | bac77374729b3bed72f41b66cd80d6e0d38ace3b (patch) | |
tree | 9dd07ed4b58d4bb5b47d2e367126ba83bff7c824 | |
parent | 7dfc9420babe83e236a47e752f8723bd06070d9d (diff) |
Placate Doug and change capitalization of diagnostic note.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125688 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
-rw-r--r-- | test/Sema/array-bounds.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 0efb92462b..9ccbf1e1f4 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -3386,7 +3386,7 @@ def warn_array_index_exceeds_bounds : Warning< "array index of '%0' indexes past the end of an array (that contains %1 elements)">, InGroup<DiagGroup<"array-bounds">>; def note_array_index_out_of_bounds : Note< - "Array %0 declared here">; + "array %0 declared here">; def warn_printf_write_back : Warning< "use of '%%n' in format string discouraged (potentially insecure)">, diff --git a/test/Sema/array-bounds.c b/test/Sema/array-bounds.c index 0ae53d35d8..b9dbe6344a 100644 --- a/test/Sema/array-bounds.c +++ b/test/Sema/array-bounds.c @@ -1,8 +1,8 @@ // RUN: %clang_cc1 -verify %s int foo() { - int x[2]; // expected-note 4 {{Array 'x' declared here}} - int y[2]; // expected-note 2 {{Array 'y' declared here}} + int x[2]; // expected-note 4 {{array 'x' declared here}} + int y[2]; // expected-note 2 {{array 'y' declared here}} int *p = &y[2]; // no-warning (void) sizeof(x[2]); // no-warning y[2] = 2; // expected-warning{{array index of '2' indexes past the end of an array (that contains 2 elements)}} |