Skip to content

<__msvc_int128.hpp>: Move UDLs to test code - #3252

Merged
Stephan T. Lavavej (StephanTLavavej) merged 4 commits into
microsoft:mainfrom
frederick-vs-ja:move-i128-udl
Dec 6, 2022
Merged

Stephan T. Lavavej (StephanTLavavej) merged 4 commits into
microsoft:mainfrom
frederick-vs-ja:move-i128-udl

Conversation

@frederick-vs-ja

@frederick-vs-ja A. Jiang (frederick-vs-ja) commented Dec 1, 2022

Copy link
Copy Markdown
Contributor

Fixes #3240.

It was my decision to add these UDLs to product code in order to provide a solution for DevCom-879048. But it turns out that this is non-goal, and thus it was my fault to do so.

Per discussions in #3240, these UDLs should be moved into the test code. I decided to make these identifiers non-_Ugly despite that it may be OK not to do so.

@frederick-vs-ja
A. Jiang (frederick-vs-ja) requested a review from a team as a code owner December 1, 2022 15:44

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for moving these over!

@frederick-vs-ja

Copy link
Copy Markdown
Contributor Author

I (again) misused if constexpr in C++14 mode and encountered a clang's bug (probably LLVM-51840).

@CaseyCarter Casey Carter (CaseyCarter) added the throughput Must compile faster label Dec 1, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some minor nits for which I'll push changes.

Comment thread tests/std/tests/P1522R1_difference_type/test.cpp Outdated
Comment thread tests/std/tests/P1522R1_difference_type/test.cpp Outdated
Comment thread tests/std/tests/P1522R1_difference_type/test.cpp Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 54ac725 into microsoft:main Dec 6, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks again for this throughput improvement! 😻 🚀 🎉

@frederick-vs-ja
A. Jiang (frederick-vs-ja) deleted the move-i128-udl branch December 7, 2022 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

throughput Must compile faster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<__msvc_int128.hpp>: UDLs aren't used by product code

4 participants