There are quite a few functions marked [[gnu::const]] inside the compiler. This patch adds [[nodiscard]] to libc++-provided overloads of these functions to match the diagnostics produced.
Details
Details
- Reviewers
ldionne Mordante var-const - Group Reviewers
Restricted Project - Commits
- rG633927db844e: [libc++] Add [[nodiscard]] extensions in <math.h>
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/test/libcxx/diagnostics/math_nodiscard_extensions.verify.cpp | ||
---|---|---|
19 | Can you update the documentation for the nodiscard extension? |
Can you update the documentation for the nodiscard extension?