This is an archive of the discontinued LLVM Phabricator instance.

[libc++] [test] Eliminate the libcpp-no-if-constexpr feature flag.
ClosedPublic

Authored by Quuxplusone on Nov 6 2021, 11:43 AM.

Details

Summary

At this point, every supported compiler that claims a -std=c++17 mode should also support if constexpr. This was an issue for GCC 5 and GCC 6, but hasn't been an issue since GCC 7. (Our current minimum supported GCC version, IIUC, is GCC 10 or 11.)

Diff Detail

Event Timeline

Quuxplusone requested review of this revision.Nov 6 2021, 11:43 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptNov 6 2021, 11:43 AM
Mordante accepted this revision as: Mordante.Nov 6 2021, 12:23 PM

Thanks for looking at this! If the CI's happy, I'm happy.

libcxx/utils/libcxx/test/features.py
39

Incidentally I've been looking at this recently and I think libcpp-no-structured-bindings and no-noexcept-function-type can also be removed. Obviously not intended for this patch.

ldionne accepted this revision.Nov 8 2021, 1:27 PM

There's also an instance of __cpp_if_constexpr in libcxx/test/support/container_debug_tests.h you can remove.

libcxx/utils/libcxx/test/features.py
39

Yup, there's some more cleanup we can do!!

This revision is now accepted and ready to land.Nov 8 2021, 1:27 PM