forked from OSchip/llvm-project
[libc++][NFC] Remove clang-diagnostic-c++98-compat-extra-semi warnings in experimental/simd
Force semicolons or remove them in `experimental/simd` Reviewed By: Quuxplusone, ldionne, Mordante, #libc Spies: libcxx-commits, miyuki Differential Revision: https://reviews.llvm.org/D117157
This commit is contained in:
parent
fd6ba1d2c0
commit
bdd5b94837
|
@ -689,7 +689,7 @@ class __simd_storage<_Tp, __simd_abi<_StorageKind::_Array, __num_element>> {
|
||||||
friend struct simd_mask;
|
friend struct simd_mask;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
_Tp __get(size_t __index) const noexcept { return __storage_[__index]; };
|
_Tp __get(size_t __index) const noexcept { return __storage_[__index]; }
|
||||||
void __set(size_t __index, _Tp __val) noexcept {
|
void __set(size_t __index, _Tp __val) noexcept {
|
||||||
__storage_[__index] = __val;
|
__storage_[__index] = __val;
|
||||||
}
|
}
|
||||||
|
@ -706,7 +706,7 @@ class __simd_storage<_Tp, __simd_abi<_StorageKind::_Scalar, 1>> {
|
||||||
friend struct simd_mask;
|
friend struct simd_mask;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
_Tp __get(size_t __index) const noexcept { return (&__storage_)[__index]; };
|
_Tp __get(size_t __index) const noexcept { return (&__storage_)[__index]; }
|
||||||
void __set(size_t __index, _Tp __val) noexcept {
|
void __set(size_t __index, _Tp __val) noexcept {
|
||||||
(&__storage_)[__index] = __val;
|
(&__storage_)[__index] = __val;
|
||||||
}
|
}
|
||||||
|
@ -770,7 +770,7 @@ struct __vec_ext_traits {
|
||||||
_LIBCPP_SPECIALIZE_VEC_EXT(_TYPE, 29); \
|
_LIBCPP_SPECIALIZE_VEC_EXT(_TYPE, 29); \
|
||||||
_LIBCPP_SPECIALIZE_VEC_EXT(_TYPE, 30); \
|
_LIBCPP_SPECIALIZE_VEC_EXT(_TYPE, 30); \
|
||||||
_LIBCPP_SPECIALIZE_VEC_EXT(_TYPE, 31); \
|
_LIBCPP_SPECIALIZE_VEC_EXT(_TYPE, 31); \
|
||||||
_LIBCPP_SPECIALIZE_VEC_EXT(_TYPE, 32);
|
_LIBCPP_SPECIALIZE_VEC_EXT(_TYPE, 32)
|
||||||
|
|
||||||
_LIBCPP_SPECIALIZE_VEC_EXT_32(char);
|
_LIBCPP_SPECIALIZE_VEC_EXT_32(char);
|
||||||
_LIBCPP_SPECIALIZE_VEC_EXT_32(char16_t);
|
_LIBCPP_SPECIALIZE_VEC_EXT_32(char16_t);
|
||||||
|
@ -808,7 +808,7 @@ class __simd_storage<_Tp, __simd_abi<_StorageKind::_VecExt, __num_element>> {
|
||||||
friend struct simd_mask;
|
friend struct simd_mask;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
_Tp __get(size_t __index) const noexcept { return __storage_[__index]; };
|
_Tp __get(size_t __index) const noexcept { return __storage_[__index]; }
|
||||||
void __set(size_t __index, _Tp __val) noexcept {
|
void __set(size_t __index, _Tp __val) noexcept {
|
||||||
__storage_[__index] = __val;
|
__storage_[__index] = __val;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue