[clang] ce1d28e - Fix diagnostic wording style; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue May 21 11:47:34 PDT 2024
Author: Aaron Ballman
Date: 2024-05-21T14:47:15-04:00
New Revision: ce1d28e645b53ba9518d295dad35a4578dd8e8dc
URL: https://github.com/llvm/llvm-project/commit/ce1d28e645b53ba9518d295dad35a4578dd8e8dc
DIFF: https://github.com/llvm/llvm-project/commit/ce1d28e645b53ba9518d295dad35a4578dd8e8dc.diff
LOG: Fix diagnostic wording style; NFC
Added:
Modified:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/Sema/builtins.c
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index c7dea1d54d063..d5973535edce4 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -8853,7 +8853,7 @@ def err_atomic_exclusive_builtin_pointer_size : Error<
"address argument to load or store exclusive builtin must be a pointer to"
" 1,2,4 or 8 byte type (%0 invalid)">;
def err_atomic_builtin_ext_int_size : Error<
- "Atomic memory operand must have a power-of-two size">;
+ "atomic memory operand must have a power-of-two size">;
def err_atomic_builtin_bit_int_prohibit : Error<
"argument to atomic builtin of type '_BitInt' is not supported">;
def err_atomic_op_needs_atomic : Error<
diff --git a/clang/test/Sema/builtins.c b/clang/test/Sema/builtins.c
index 3bee314595291..4f843aeec24e6 100644
--- a/clang/test/Sema/builtins.c
+++ b/clang/test/Sema/builtins.c
@@ -277,9 +277,9 @@ void test21(const int *ptr) {
}
void test_ei_i42i(_BitInt(42) *ptr, int value) {
- __sync_fetch_and_add(ptr, value); // expected-error {{Atomic memory operand must have a power-of-two size}}
+ __sync_fetch_and_add(ptr, value); // expected-error {{atomic memory operand must have a power-of-two size}}
// expected-warning at +1 {{the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here}}
- __sync_nand_and_fetch(ptr, value); // expected-error {{Atomic memory operand must have a power-of-two size}}
+ __sync_nand_and_fetch(ptr, value); // expected-error {{atomic memory operand must have a power-of-two size}}
__atomic_fetch_add(ptr, 1, 0); // expected-error {{argument to atomic builtin of type '_BitInt' is not supported}}
}
@@ -305,9 +305,9 @@ void test_ei_ii64(int *ptr, _BitInt(64) value) {
}
void test_ei_i42i42(_BitInt(42) *ptr, _BitInt(42) value) {
- __sync_fetch_and_add(ptr, value); // expected-error {{Atomic memory operand must have a power-of-two size}}
+ __sync_fetch_and_add(ptr, value); // expected-error {{atomic memory operand must have a power-of-two size}}
// expected-warning at +1 {{the semantics of this intrinsic changed with GCC version 4.4 - the newer semantics are provided here}}
- __sync_nand_and_fetch(ptr, value); // expected-error {{Atomic memory operand must have a power-of-two size}}
+ __sync_nand_and_fetch(ptr, value); // expected-error {{atomic memory operand must have a power-of-two size}}
}
void test_ei_i64i64(_BitInt(64) *ptr, _BitInt(64) value) {
More information about the cfe-commits
mailing list