This is an archive of the discontinued LLVM Phabricator instance.

[sanitizers] Avoid macro clash in SignalContext::WriteFlag (NFC)
ClosedPublic

Authored by nikic on Feb 2 2022, 6:09 AM.

Details

Summary

D116208 may cause a macro clash on older versions of linux, where fs.h defines a READ macro. I'm resolving this by switching to a more typical casing style for non-macro symbols. If preferred, I can prefix them instead.

Diff Detail

Event Timeline

nikic requested review of this revision.Feb 2 2022, 6:09 AM
nikic created this revision.
vitalybuka accepted this revision.Feb 8 2022, 1:05 PM
vitalybuka added inline comments.
compiler-rt/lib/sanitizer_common/sanitizer_common.h
959

I guess we use WRITE_FLAG_UNKNOWN style for C-enums.
However proposed names seems consistent with "enum class".

This revision is now accepted and ready to land.Feb 8 2022, 1:05 PM
This revision was landed with ongoing or failed builds.Feb 9 2022, 12:46 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2022, 12:46 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript