[PATCH] D102242: [clang] p1099 5/5: feature macro & web page
Nathan Sidwell via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 9 05:41:30 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc1cd743519af: [clang] p1099 using-enum feature macro & web page (authored by urnathan).
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102242/new/
https://reviews.llvm.org/D102242
Files:
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/Lexer/cxx-features.cpp
clang/www/cxx_status.html
Index: clang/www/cxx_status.html
===================================================================
--- clang/www/cxx_status.html
+++ clang/www/cxx_status.html
@@ -1205,7 +1205,7 @@
<tr>
<td><tt>using enum</tt></td>
<td><a href="https://wg21.link/p1099r5">P1099R5</a></td>
- <td class="none" align="center">No</td>
+ <td class="unreleased" align="center">Clang 13</td>
</tr>
<tr>
<td rowspan=2>Class template argument deduction for aggregates</td>
Index: clang/test/Lexer/cxx-features.cpp
===================================================================
--- clang/test/Lexer/cxx-features.cpp
+++ clang/test/Lexer/cxx-features.cpp
@@ -98,8 +98,7 @@
#error "wrong value for __cpp_modules"
#endif
-#if check(using_enum, 0, 0, 0, 0, 0, 0)
-// FIXME: 201907 in C++20
+#if check(using_enum, 0, 0, 0, 0, 201907, 201907)
#error "wrong value for __cpp_using_enum"
#endif
Index: clang/lib/Frontend/InitPreprocessor.cpp
===================================================================
--- clang/lib/Frontend/InitPreprocessor.cpp
+++ clang/lib/Frontend/InitPreprocessor.cpp
@@ -594,7 +594,7 @@
Builder.defineMacro("__cpp_designated_initializers", "201707L");
Builder.defineMacro("__cpp_impl_three_way_comparison", "201907L");
//Builder.defineMacro("__cpp_modules", "201907L");
- //Builder.defineMacro("__cpp_using_enum", "201907L");
+ Builder.defineMacro("__cpp_using_enum", "201907L");
}
// C++2b features.
if (LangOpts.CPlusPlus2b)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102242.350866.patch
Type: text/x-patch
Size: 1513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210609/cfd5aa37/attachment.bin>
More information about the cfe-commits
mailing list