Skip to content

[libc++][test] Move format.functions ASCII tests to libcxx/test/libcxx #78661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2024

Conversation

StephanTLavavej
Copy link
Member

As @cpplearner explained in microsoft/STL#4328:

libc++'s "ascii" mode (controlled by the _LIBCPP_HAS_NO_UNICODE macro) means "every code unit outside ASCII is treated as a valid printable character". AFAIK we [MSVC's STL] don't support such a mode.

Because these files are testing a non-Standard mode, they should be moved from libcxx/test/std to libcxx/test/libcxx.

They're testing a non-Standard mode.
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner January 19, 2024 02:22
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Jan 19, 2024
@llvmbot
Copy link
Member

llvmbot commented Jan 19, 2024

@llvm/pr-subscribers-libcxx

Author: Stephan T. Lavavej (StephanTLavavej)

Changes

As @cpplearner explained in microsoft/STL#4328:

> libc++'s "ascii" mode (controlled by the _LIBCPP_HAS_NO_UNICODE macro) means "every code unit outside ASCII is treated as a valid printable character". AFAIK we [MSVC's STL] don't support such a mode.

Because these files are testing a non-Standard mode, they should be moved from libcxx/test/std to libcxx/test/libcxx.


Full diff: https://github.com/llvm/llvm-project/pull/78661.diff

2 Files Affected:

  • (renamed) libcxx/test/libcxx/utilities/format/format.functions/ascii.pass.cpp ()
  • (renamed) libcxx/test/libcxx/utilities/format/format.functions/escaped_output.ascii.pass.cpp ()
diff --git a/libcxx/test/std/utilities/format/format.functions/ascii.pass.cpp b/libcxx/test/libcxx/utilities/format/format.functions/ascii.pass.cpp
similarity index 100%
rename from libcxx/test/std/utilities/format/format.functions/ascii.pass.cpp
rename to libcxx/test/libcxx/utilities/format/format.functions/ascii.pass.cpp
diff --git a/libcxx/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp b/libcxx/test/libcxx/utilities/format/format.functions/escaped_output.ascii.pass.cpp
similarity index 100%
rename from libcxx/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp
rename to libcxx/test/libcxx/utilities/format/format.functions/escaped_output.ascii.pass.cpp

Copy link

github-actions bot commented Jan 19, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Member

@mordante mordante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StephanTLavavej StephanTLavavej merged commit 123ab34 into llvm:main Jan 20, 2024
@StephanTLavavej StephanTLavavej deleted the ascii-art branch January 20, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants