This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][test] Auto-detect _LIBCPP_HAS_NO_UNICODE for MSVC STL
ClosedPublic

Authored by CaseyCarter on Jan 9 2022, 1:00 AM.

Details

Summary

... by examining _MSVC_EXECUTION_CHARACTER_SET in the force-include header.

Diff Detail

Event Timeline

CaseyCarter requested review of this revision.Jan 9 2022, 1:00 AM
CaseyCarter created this revision.
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptJan 9 2022, 1:00 AM
ldionne accepted this revision.Jan 10 2022, 5:36 AM
ldionne added a subscriber: ldionne.

LGTM. In the future, we should create a TEST_HAS_NO_UNICODE macro in test_macros.h and use that throughout the test suite instead (like we do for TEST_HAS_NO_WIDE_CHARACTERS).

libcxx/test/support/msvc_stdlib_force_include.h
109

For such a small #if - #endif block, I would drop the closing comment.

This revision is now accepted and ready to land.Jan 10 2022, 5:36 AM