[libcxx-commits] [libcxx] [libc++][NFC] Fix synopsis comment for error_condition::message() (PR #210724)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 20 07:06:22 PDT 2026


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/210724

The method was marked as noexcept in the synopsis, but it's neither marked noexcept in the spec nor in our implementation.

>From 75b598e52dbff9241d35570a8192cd7116d486c3 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Tue, 16 Jun 2026 14:01:32 -0400
Subject: [PATCH] [libc++][NFC] Fix synopsis comment for
 error_condition::message()

The method was marked as noexcept in the synopsis, but it's neither
marked noexcept in the spec nor in our implementation.
---
 libcxx/include/system_error | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/include/system_error b/libcxx/include/system_error
index ef760453d9893..208a586af0dc2 100644
--- a/libcxx/include/system_error
+++ b/libcxx/include/system_error
@@ -98,7 +98,7 @@ public:
     // observers:
     int value() const noexcept;
     const error_category& category() const noexcept;
-    string message() const noexcept;
+    string message() const;
     explicit operator bool() const noexcept;
 };
 



More information about the libcxx-commits mailing list