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

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 20 07:26:50 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/210724.diff


1 Files Affected:

- (modified) libcxx/include/system_error (+1-1) 


``````````diff
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;
 };
 

``````````

</details>


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


More information about the libcxx-commits mailing list