[libcxx-commits] [libcxx] [libc++] Use __ugly__ spellings of vendor attributes in verbose_abort.cpp (PR #188396)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 24 19:05:42 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Fady Farag (iidmsa)
<details>
<summary>Changes</summary>
Non-standard attributes should use the _Ugly spelling as per the coding guidelines.
---
Full diff: https://github.com/llvm/llvm-project/pull/188396.diff
1 Files Affected:
- (modified) libcxx/src/verbose_abort.cpp (+1-1)
``````````diff
diff --git a/libcxx/src/verbose_abort.cpp b/libcxx/src/verbose_abort.cpp
index afe20c3cd0b16..3a8f045053595 100644
--- a/libcxx/src/verbose_abort.cpp
+++ b/libcxx/src/verbose_abort.cpp
@@ -23,7 +23,7 @@ extern "C" void android_set_abort_message(const char* msg);
_LIBCPP_BEGIN_NAMESPACE_STD
-[[gnu::weak]] void __libcpp_verbose_abort(char const* format, ...) noexcept {
+[[__gnu__::__weak__]] void __libcpp_verbose_abort(char const* format, ...) noexcept {
// Write message to stderr. We do this before formatting into a
// buffer so that we still get some information out if that fails.
{
``````````
</details>
https://github.com/llvm/llvm-project/pull/188396
More information about the libcxx-commits
mailing list