[PATCH] D45179: [libc++] Add _LIBCPP_FORCE_NODISCARD define to force-enable nodiscard in pre-C++17
Marshall Clow via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 25 06:44:39 PDT 2018
mclow.lists added inline comments.
================
Comment at: test/libcxx/diagnostics/force_nodiscard.fail.cpp:22
+
+_LIBCPP_NODISCARD_AFTER_CXX17 int foo() { return 6; }
+
----------------
Shouldn't this be just `_LIBCPP_NODISCARD` ?
Repository:
rCXX libc++
https://reviews.llvm.org/D45179
More information about the cfe-commits
mailing list