Skip to content

Commit c1cd743

Browse files
committed
[clang] p1099 using-enum feature macro & web page
This completes the series implementing p1099, by adding the feature macro and updating the web page. Differential Revision: https://reviews.llvm.org/D102242
1 parent 64dbd64 commit c1cd743

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clang/lib/Frontend/InitPreprocessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
594594
Builder.defineMacro("__cpp_designated_initializers", "201707L");
595595
Builder.defineMacro("__cpp_impl_three_way_comparison", "201907L");
596596
//Builder.defineMacro("__cpp_modules", "201907L");
597-
//Builder.defineMacro("__cpp_using_enum", "201907L");
597+
Builder.defineMacro("__cpp_using_enum", "201907L");
598598
}
599599
// C++2b features.
600600
if (LangOpts.CPlusPlus2b)

clang/test/Lexer/cxx-features.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@
9898
#error "wrong value for __cpp_modules"
9999
#endif
100100

101-
#if check(using_enum, 0, 0, 0, 0, 0, 0)
102-
// FIXME: 201907 in C++20
101+
#if check(using_enum, 0, 0, 0, 0, 201907, 201907)
103102
#error "wrong value for __cpp_using_enum"
104103
#endif
105104

clang/www/cxx_status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ <h2 id="cxx20">C++20 implementation status</h2>
12051205
<tr>
12061206
<td><tt>using enum</tt></td>
12071207
<td><a href="https://wg21.link/p1099r5">P1099R5</a></td>
1208-
<td class="none" align="center">No</td>
1208+
<td class="unreleased" align="center">Clang 13</td>
12091209
</tr>
12101210
<tr>
12111211
<td rowspan=2>Class template argument deduction for aggregates</td>

0 commit comments

Comments
 (0)