[libcxx-commits] [libcxx] [libc++] Use __datasizeof for __libcpp_datasizeof if available (PR #72104)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 13 03:32:40 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff cc5c2efe4aacb6be7340bbcbe72a5be15f5a8bee 5a9c7de11fcdd134c6c4e396e611668b40d7277c -- libcxx/include/__type_traits/datasizeof.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__type_traits/datasizeof.h b/libcxx/include/__type_traits/datasizeof.h
index 628e2326c0..3a8b151601 100644
--- a/libcxx/include/__type_traits/datasizeof.h
+++ b/libcxx/include/__type_traits/datasizeof.h
@@ -57,7 +57,7 @@ struct __libcpp_datasizeof {
_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Winvalid-offsetof")
static const size_t value = offsetof(_FirstPaddingByte<>, __first_padding_byte_);
_LIBCPP_DIAGNOSTIC_POP
-#endif // __has_extension(datasizeof)
+#endif // __has_extension(datasizeof)
};
_LIBCPP_END_NAMESPACE_STD
``````````
</details>
https://github.com/llvm/llvm-project/pull/72104
More information about the libcxx-commits
mailing list