This is an archive of the discontinued LLVM Phabricator instance.

[libc++][ranges] Sets ranges feature-test macro.
ClosedPublic

Authored by Mordante on Aug 6 2022, 8:49 AM.

Details

Reviewers
ldionne
var-const
Group Reviewers
Restricted Project
Commits
rG195287d90afb: [libc++][ranges] Sets ranges feature-test macro.
Summary

D131234 marked the ranges papers as complete, but it didn't set the
feature-test macro.

Diff Detail

Event Timeline

Mordante created this revision.Aug 6 2022, 8:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2022, 8:49 AM
Herald added a subscriber: arichardson. · View Herald Transcript
Mordante requested review of this revision.Aug 6 2022, 8:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2022, 8:49 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Aug 8 2022, 9:16 AM

LGTM, but let's have @var-const double-check that this is indeed what we want. I think it is.

This revision is now accepted and ready to land.Aug 8 2022, 9:16 AM
var-const accepted this revision.Aug 8 2022, 3:00 PM

LGTM with one comment.

libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.compile.pass.cpp
260

Is this correct? Reading aloud, it seems to say when not defined ... is not defined. The exclamation mark looks unnecessary, and perhaps the first defined is unnecessary as well -- would it read better as should not be defined when _LIBCPP_HAS_NO_INCOMPLETE_RANGES is not defined?

Thanks for the reviews!

libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.compile.pass.cpp
260

I agree it looks weird and we could improve the wording. However I will do that in a followup.

libcxx/utils/generate_feature_test_macro_components.py
984

@var-const here the error is generated.

This revision was automatically updated to reflect the committed changes.
var-const added inline comments.Aug 9 2022, 10:09 AM
libcxx/utils/generate_feature_test_macro_components.py
984

Thanks for explaining!

Mordante marked 2 inline comments as done.Aug 20 2022, 6:21 AM
Mordante added inline comments.
libcxx/utils/generate_feature_test_macro_components.py
984

See D132293.