Skip to content

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Sep 5, 2025

[quoted.manip] only specifies that operator<</operator>> is well-formed for operands with suitable types, and leaves it undefined whether they are SFINAE-friendly.

Although it's worthwhile making them SFINAE-friendly, perhaps the SFINAE-friendliness should be considered as a libc++-specific choice at this moment.

Also clang-format the file to make CI happy.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner September 5, 2025 06:38
@frederick-vs-ja frederick-vs-ja added libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. test-suite labels Sep 5, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 5, 2025

@llvm/pr-subscribers-libcxx

Author: A. Jiang (frederick-vs-ja)

Changes

[quoted.manip] only specifies that operator&lt;&lt;/operator&gt;&gt; is well-formed for operands with suitable types, and leaves it undefined whether they are SFINAE-friendly.

Although it's worthwhile making them SFINAE-friendly, perhaps the SFINAE-friendliness should be considered as a libc++-specific choice at this moment.


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

1 Files Affected:

  • (renamed) libcxx/test/libcxx/input.output/iostream.format/quoted.manip/quoted_traits.compile.pass.cpp ()
diff --git a/libcxx/test/std/input.output/iostream.format/quoted.manip/quoted_traits.compile.pass.cpp b/libcxx/test/libcxx/input.output/iostream.format/quoted.manip/quoted_traits.compile.pass.cpp
similarity index 100%
rename from libcxx/test/std/input.output/iostream.format/quoted.manip/quoted_traits.compile.pass.cpp
rename to libcxx/test/libcxx/input.output/iostream.format/quoted.manip/quoted_traits.compile.pass.cpp

Copy link

github-actions bot commented Sep 5, 2025

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

…libcxx/test/libcxx/`

[quoted.manip] only specifies that `operator<<`/`operator>>` is
well-formed for operands with suitable types, and leaves it undefined
whether they are SFINAE-friendly.

Although it's worthwhile making them SFINAE-friendly, perhaps the
SFINAE-friendliness should be considered as a libc++-specific choice at
this moment.

Also clang-format the file to make CI happy.
@frederick-vs-ja frederick-vs-ja force-pushed the libcxx-test-quoted-sfinae branch from 540094d to 2fe1e9e Compare September 5, 2025 06:53
Copy link
Contributor

@philnik777 philnik777 left a comment

Choose a reason for hiding this comment

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

Please don't clang-format anything if you only move files. Also, could we get an LWG issue on this?

@frederick-vs-ja
Copy link
Contributor Author

Please don't clang-format anything if you only move files. Also, could we get an LWG issue on this?

I originally only moved the file, but CI complained.

I'm not sure whether this is worthy filing an LWG issue.

@philnik777
Copy link
Contributor

Please don't clang-format anything if you only move files. Also, could we get an LWG issue on this?

I originally only moved the file, but CI complained.

You can ignore the formatting CI.

I'm not sure whether this is worthy filing an LWG issue.

There is implementation divergence, no? That seems like a good reason to ask LWG whether they would like to specify this any further or not.

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. test-suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants