[clang] [clang]: implement std::meta::is_type (PR #211653)

Ambrose Leeb via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 16 08:59:22 PDT 2026


================
@@ -0,0 +1,35 @@
+/*===---- meta - header for reflection metafunctions -----------------------===
+ *
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+ * See https://llvm.org/LICENSE.txt for license information.
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+ *
+ *===-----------------------------------------------------------------------===
+ */
+
+#ifndef __CLANG_META
+#define __CLANG_META
+
+#if !defined(__cplusplus)
+#error "meta header is only available in C++ mode"
+#endif
+
+#if !defined(__cpp_impl_reflection)
+#error "meta header is only available when -freflection is enabled"
+#endif
+
+#define __cpp_lib_reflection 202506L
----------------
Sirraide wrote:

Likewise here probably.


https://github.com/llvm/llvm-project/pull/211653


More information about the cfe-commits mailing list