[PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 17 10:19:35 PST 2015


mclow.lists added inline comments.

================
Comment at: test/support/noexcept.h:43
@@ +42,3 @@
+#define try if(!setjmp(try_buf))
+#define catch(ex) else
+
----------------
This is explicitly forbidden by the standard.
[macro.names]/2:
A translation unit shall not #define or #undef names lexically identical to keywords, to the identifiers listed in Table 2, or to the attribute-tokens described in 7.6.


http://reviews.llvm.org/D14653





More information about the cfe-commits mailing list