[cfe-commits] r125688 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/Sema/array-bounds.c
Ted Kremenek
kremenek at apple.com
Wed Feb 16 14:08:28 PST 2011
Author: kremenek
Date: Wed Feb 16 16:08:28 2011
New Revision: 125688
URL: http://llvm.org/viewvc/llvm-project?rev=125688&view=rev
Log:
Placate Doug and change capitalization of diagnostic note.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/Sema/array-bounds.c
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=125688&r1=125687&r2=125688&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Wed Feb 16 16:08:28 2011
@@ -3386,7 +3386,7 @@
"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)">,
Modified: cfe/trunk/test/Sema/array-bounds.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/array-bounds.c?rev=125688&r1=125687&r2=125688&view=diff
==============================================================================
--- cfe/trunk/test/Sema/array-bounds.c (original)
+++ cfe/trunk/test/Sema/array-bounds.c Wed Feb 16 16:08:28 2011
@@ -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)}}
More information about the cfe-commits
mailing list