[libcxx-commits] [libcxx] [libc++] Document the strengthened noexcept convention (PR #203869)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 24 08:10:30 PDT 2026
frederick-vs-ja wrote:
> First, how did you get that number?
By searching `strengthened` in comments in MSVC STL's headers, excluding a quite small numbers of potential exceptions. Most occurrences `strengthened` mean "noexcept-specification strengthened". There're currently ~2190 such occurrences, and only ~10 of them refer to strengthening from `noexcept(Cond)` to `noexcept(true)`.
> Second, why is it not helpful?
Perhaps because I'm somehow thinking these along with MSVC STL's defaults...
On the other hand, introducing `// strengthened` is a bit MSVC-STL-ism. I guess the initial introduction of it into libc++ was under the influence of MSVC STL, and the issue is also investigating "whether we want to do the same".
https://github.com/llvm/llvm-project/pull/203869
More information about the libcxx-commits
mailing list