Skip to content
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

Cleanups: #undef macro hygiene #3529

Merged

Conversation

StephanTLavavej
Copy link
Member

  • <fstream> defines _FSTREAM_SUPPORTS_EXPERIMENTAL_FILESYSTEM and is the only consumer of it. We should #undef it when we're done.
    • We do allow users to provide an overriding definition, but we can still #undef it in that case.
  • <vector> shouldn't #undef _ACTIVATE_VECTOR_ANNOTATION.
  • <xstring>: Like <vector>, we should #undef _ASAN_STRING_MEOW and _INSERT_STRING_ANNOTATION.
    • _ASAN_STRING_MEOW is defined by <xstring> and used nowhere else.
    • _INSERT_STRING_ANNOTATION is defined by <__msvc_sanitizer_annotate_container.hpp>, used by it and <xstring> and then nowhere else.

@StephanTLavavej StephanTLavavej added enhancement Something can be improved ASan Address Sanitizer labels Mar 3, 2023
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner March 3, 2023 20:20
@StephanTLavavej StephanTLavavej self-assigned this Mar 7, 2023
@StephanTLavavej
Copy link
Member Author

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

@StephanTLavavej StephanTLavavej merged commit b660336 into microsoft:main Mar 7, 2023
@StephanTLavavej StephanTLavavej deleted the stl-cleanups-macro-hygiene branch March 7, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASan Address Sanitizer enhancement Something can be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
  翻译: