[clang] 01c600d - Reword a diagnostic for style; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue May 21 12:01:28 PDT 2024
Author: Aaron Ballman
Date: 2024-05-21T15:01:13-04:00
New Revision: 01c600dec6f506ae305abf04cf955e08aa59b234
URL: https://github.com/llvm/llvm-project/commit/01c600dec6f506ae305abf04cf955e08aa59b234
DIFF: https://github.com/llvm/llvm-project/commit/01c600dec6f506ae305abf04cf955e08aa59b234.diff
LOG: Reword a diagnostic for style; NFC
Added:
Modified:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/Parser/altivec.c
clang/test/Parser/cxx-altivec.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index d5973535edce4..b2e9bed522206 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -310,7 +310,7 @@ def err_invalid_vector_long_double_decl_spec : Error<
def err_invalid_vector_complex_decl_spec : Error<
"cannot use '_Complex' with '__vector'">;
def warn_vector_long_decl_spec_combination : Warning<
- "Use of 'long' with '__vector' is deprecated">, InGroup<Deprecated>;
+ "use of 'long' with '__vector' is deprecated">, InGroup<Deprecated>;
def err_redeclaration_
diff erent_type : Error<
"redeclaration of %0 with a
diff erent type%
diff {: $ vs $|}1,2">;
diff --git a/clang/test/Parser/altivec.c b/clang/test/Parser/altivec.c
index 445369f0dc066..9291b9b69160f 100644
--- a/clang/test/Parser/altivec.c
+++ b/clang/test/Parser/altivec.c
@@ -56,40 +56,40 @@ void f_a2(int b, vector int a);
vector int v = (vector int)(-1);
// These should have errors on AIX and warnings otherwise.
-__vector long vv_l; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector long vv_l; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector signed long vv_sl; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector signed long vv_sl; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector unsigned long vv_ul; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector unsigned long vv_ul; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector long int vv_li; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector long int vv_li; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector signed long int vv_sli; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector signed long int vv_sli; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector unsigned long int vv_uli; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector unsigned long int vv_uli; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector long v_l; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector long v_l; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector signed long v_sl; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector signed long v_sl; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector unsigned long v_ul; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector unsigned long v_ul; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector long int v_li; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector long int v_li; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector signed long int v_sli; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector signed long int v_sli; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector unsigned long int v_uli; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector unsigned long int v_uli; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
diff --git a/clang/test/Parser/cxx-altivec.cpp b/clang/test/Parser/cxx-altivec.cpp
index 5cb760dababbb..15a6bf6d1be80 100644
--- a/clang/test/Parser/cxx-altivec.cpp
+++ b/clang/test/Parser/cxx-altivec.cpp
@@ -59,40 +59,40 @@ void f_a2(int b, vector int a);
vector int v = (vector int)(-1);
// These should have errors on AIX and warnings otherwise.
-__vector long vv_l; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector long vv_l; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector signed long vv_sl; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector signed long vv_sl; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector unsigned long vv_ul; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector unsigned long vv_ul; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector long int vv_li; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector long int vv_li; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector signed long int vv_sli; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector signed long int vv_sli; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-__vector unsigned long int vv_uli; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+__vector unsigned long int vv_uli; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector long v_l; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector long v_l; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector signed long v_sl; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector signed long v_sl; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector unsigned long v_ul; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector unsigned long v_ul; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector long int v_li; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector long int v_li; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector signed long int v_sli; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector signed long int v_sli; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
-vector unsigned long int v_uli; // nonaix-warning {{Use of 'long' with '__vector' is deprecated}}
+vector unsigned long int v_uli; // nonaix-warning {{use of 'long' with '__vector' is deprecated}}
// aix-error at -1 {{cannot use 'long' with '__vector'}}
// novsx-error at -2 {{cannot use 'long' with '__vector'}}
More information about the cfe-commits
mailing list