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
Paths
| Differential D85035
[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 rdar://66384326
Diff Detail
Event TimelineThis 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. Closed by commit rG19bc9ea480b6: [libc++] Avoid including <Block.h> from <functional> (authored by ldionne). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 282276 libcxx/include/functional
libcxx/test/libcxx/utilities/function.objects/func.blocks.sh.cpp
|