Skip to content

<xlocale>: Use static_cast to eliminate implicit conversions between different charN_t types - #5653

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
YexuanXiao:xlocale_charN_t
Aug 8, 2025
Merged

<xlocale>: Use static_cast to eliminate implicit conversions between different charN_t types#5653
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
YexuanXiao:xlocale_charN_t

Conversation

@YexuanXiao

Copy link
Copy Markdown
Contributor

The merged PR #138708 in Clang will generate warnings for implicit conversions between different charN_t types. This PR eliminates the implicit conversions that would produce warnings in <xlocale>. Some tests will fail due to this reason, such as GH_002769_handle_deque_block_pointers (though not all).

@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the enhancement Something can be improved label Aug 2, 2025
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Initial Review to Ready To Merge in STL Code Reviews Aug 2, 2025
@StephanTLavavej

Copy link
Copy Markdown
Member

Perfect, thanks! 😻

@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 a0168f1 into microsoft:main Aug 8, 2025
39 checks passed
@github-project-automation github-project-automation Bot moved this from Merging to Done in STL Code Reviews Aug 8, 2025
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for scouting out this new version of Clang and improving our warning resistance! 🎉 🐈 🐈‍⬛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Something can be improved

2 participants