Skip to content

Commit 0bc8d0a

Browse files
committed
Updated diagnostic wording
1 parent f2e6731 commit 0bc8d0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3806,7 +3806,7 @@ def err_alias_not_supported_on_darwin : Error <
38063806
"aliases are not supported on darwin">;
38073807
def warn_attribute_non_character_array : Warning<
38083808
"%0%select{ attribute|}1 only applies to fields or variables of character "
3809-
"array type; type here is %2">, InGroup<IgnoredAttributes>;
3809+
"array type; type is %2">, InGroup<IgnoredAttributes>;
38103810
def warn_attribute_wrong_decl_type_str : Warning<
38113811
"%0%select{ attribute|}1 only applies to %2">, InGroup<IgnoredAttributes>;
38123812
def err_attribute_wrong_decl_type_str : Error<

clang/test/Sema/attr-nonstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ unsigned char ucfoo[3] = "foo"; // no-nonstring-warning {{initializer-string fo
3333
// Show that we properly diagnose incorrect uses of nonstring.
3434
__attribute__((nonstring)) void func(void); // expected-warning {{'nonstring' attribute only applies to variables and non-static data members}}
3535
__attribute__((nonstring("test"))) char eek1[2]; // expected-error {{'nonstring' attribute takes no arguments}}
36-
__attribute__((nonstring)) int eek2; // expected-warning {{'nonstring' attribute only applies to fields or variables of character array type; type here is 'int'}}
36+
__attribute__((nonstring)) int eek2; // expected-warning {{'nonstring' attribute only applies to fields or variables of character array type; type is 'int'}}
3737

3838
// Note, these diagnostics are separate from the "too many initializers"
3939
// diagnostic when you overwrite more than just the null terminator.

0 commit comments

Comments
 (0)