[libcxx-commits] [PATCH] D149554: [libc++][test] Selects proper C++23 field.
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Apr 30 12:36:28 PDT 2023
philnik accepted this revision.
philnik added a comment.
This revision is now accepted and ready to land.
LGTM % nit.
================
Comment at: libcxx/test/tools/clang_tidy_checks/uglify_attributes.cpp:33-45
+template <class T>
+bool CPlusPlus23(const T& lang_opts)
+ requires(!std::same_as<decltype(T::CPlusPlus2b), void>)
+{
+ return lang_opts.CPlusPlus2b;
+}
+
----------------
This should also work.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149554/new/
https://reviews.llvm.org/D149554
More information about the libcxx-commits
mailing list