Skip to content

Conversation

YexuanXiao
Copy link
Contributor

The merged PR #117387 in Clang warnings when a parameter of memcpy is pointer to non-trivial-copyable types. This PR suppress the warning to avoid test failures.

Also, the <filesystem> and <span> headers were not properly guarded, and this PR guards them as seen in L166 and L182. The above two issues would cause this test to fail.

#if _HAS_CXX20
test_iterator<span<int>::iterator>();
#endif // _HAS_CXX20

@StephanTLavavej StephanTLavavej changed the title Add header guard for tests/Dev11_0000000_null_forward_iterators and suppress Clang warnings Dev11_0000000_null_forward_iterators: Avoid Clang warnings, guard headers for C++17/20 Aug 2, 2025
@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews Aug 2, 2025
@StephanTLavavej StephanTLavavej added the test Related to test code label Aug 2, 2025
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews Aug 7, 2025
@StephanTLavavej
Copy link
Member

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

@StephanTLavavej StephanTLavavej merged commit eadd3be 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
Member

⚠️ 😸 ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Related to test code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants