[PATCH] D32726: [libcxx] [test] In msvc_stdlib_force_include.hpp, use _HAS_CXX17 to set TEST_STD_VER.

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 3 14:21:33 PDT 2017


EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.

LGTM after addressing inline comments.



================
Comment at: test/support/msvc_stdlib_force_include.hpp:76
 
+#include <ciso646>
+
----------------
Is the `stdlib.h` include above not enough?


================
Comment at: test/support/msvc_stdlib_force_include.hpp:78
+
+#if _HAS_CXX17
+    #define TEST_STD_VER 17
----------------
Should this be `#if defined(_HAS_CXX17) && _HAS_CXX17` since Clang doesn't define it to the best of my knowledge? (Or maybe Clang/C2 does, IDK)


https://reviews.llvm.org/D32726





More information about the cfe-commits mailing list