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)
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)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits