[libcxx-commits] [libcxx] 76e7bdd - [libc++][NFC] Replace __attribute__((__const__)) with [[__gnu__::__const__]]
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 31 11:46:13 PDT 2025
Author: Nikolas Klauser
Date: 2025-03-31T20:46:04+02:00
New Revision: 76e7bddf9d36074e0d67c21c5d67c2171abd70c4
URL: https://github.com/llvm/llvm-project/commit/76e7bddf9d36074e0d67c21c5d67c2171abd70c4
DIFF: https://github.com/llvm/llvm-project/commit/76e7bddf9d36074e0d67c21c5d67c2171abd70c4.diff
LOG: [libc++][NFC] Replace __attribute__((__const__)) with [[__gnu__::__const__]]
Added:
Modified:
libcxx/include/__system_error/error_category.h
Removed:
################################################################################
diff --git a/libcxx/include/__system_error/error_category.h b/libcxx/include/__system_error/error_category.h
index bfe7bc24a5d3d..7233e22110447 100644
--- a/libcxx/include/__system_error/error_category.h
+++ b/libcxx/include/__system_error/error_category.h
@@ -67,8 +67,8 @@ class _LIBCPP_HIDDEN __do_message : public error_category {
string message(int __ev) const override;
};
-__attribute__((__const__)) _LIBCPP_EXPORTED_FROM_ABI const error_category& generic_category() _NOEXCEPT;
-__attribute__((__const__)) _LIBCPP_EXPORTED_FROM_ABI const error_category& system_category() _NOEXCEPT;
+[[__gnu__::__const__]] _LIBCPP_EXPORTED_FROM_ABI const error_category& generic_category() _NOEXCEPT;
+[[__gnu__::__const__]] _LIBCPP_EXPORTED_FROM_ABI const error_category& system_category() _NOEXCEPT;
_LIBCPP_END_NAMESPACE_STD
More information about the libcxx-commits
mailing list