[libcxx-commits] [PATCH] D140855: [libc++] Add [[nodiscard]] extensions in <math.h>
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jan 7 04:25:21 PST 2023
Mordante added inline comments.
================
Comment at: libcxx/test/libcxx/diagnostics/math_nodiscard_extensions.verify.cpp:19
+void test() {
+ std::signbit(0.f); // expected-warning-re {{ignoring return value of function declared with {{.*}} attribute}}
+ std::signbit(0.); // expected-warning-re {{ignoring return value of function declared with {{.*}} attribute}}
----------------
Can you update the documentation for the nodiscard extension?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140855/new/
https://reviews.llvm.org/D140855
More information about the libcxx-commits
mailing list