[libcxx-commits] [libcxx] [libc++][math] Add missing `constexpr since C++23` comment for signbit (PR #212458)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 28 05:29:58 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Lucas Mellone (lknknm)

<details>
<summary>Changes</summary>

Adds the missing `// constexpr since C++23` for `std::signbit` in `cmath` documentation.
Follows-up: https://github.com/llvm/llvm-project/pull/105946.

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


1 Files Affected:

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


``````````diff
diff --git a/libcxx/include/cmath b/libcxx/include/cmath
index 992854b0490a3..4d91c34c48bec 100644
--- a/libcxx/include/cmath
+++ b/libcxx/include/cmath
@@ -136,7 +136,7 @@ long double    tanhl(long double x);
 
 //  C99
 
-bool signbit(arithmetic x);
+bool signbit(arithmetic x); // constexpr since C++23
 
 int fpclassify(arithmetic x); // constexpr since C++23
 

``````````

</details>


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


More information about the libcxx-commits mailing list