This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Avoid including <Block.h> from <functional>
ClosedPublic

Authored by ldionne on Jul 31 2020, 10:06 AM.

Details

Summary

Block.h is a pretty common name, which can lead to nasty collisions with
user provided headers. Since we're only getting a few simple declarations
from the header, it's better to declare them manually than to include the
header.

rdar://66384326

Diff Detail

Event Timeline

ldionne created this revision.Jul 31 2020, 10:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2020, 10:06 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne requested review of this revision.Jul 31 2020, 10:06 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jul 31 2020, 11:22 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.