[libcxx-commits] [libcxx] [libc++][cmath] Adding `[[nodicard]]` (PR #171763)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 16 21:21:13 PST 2025


H-G-Hristov wrote:

> I'm not convinced we should extend the annotations in cmath for now. The current ones have been added to reflect what Clang diagnoses on its own and I'm hesitant to do anything more, since any functions not annotated currently have side-effects.

OK. This means then we need to abandon/close this PR. I understood that math functions need to be marked from previous comments.

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


More information about the libcxx-commits mailing list