[PATCH] D32411: [libcxx] Provide #include_next alternative for MSVC
Ben Craig via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 23 18:58:56 PDT 2017
bcraig created this revision.
Herald added a subscriber: mgorny.
Visual Studio 2015 and 2017 don't implement include_next, so we'll use a combination of a computed include and a CMAKE input to make it work. Also, retrofit all the existing invocations of #include_next that we could hit in a hypothetical MSVC build.
This relies on implementation defined behavior in the MSVC preprocessor.
See C11, 6.10.2.4 ("Source file inclusion") for the statement on implementation defined vs. undefined.
https://reviews.llvm.org/D32411
Files:
CMakeLists.txt
include/__config
include/__config_site.in
include/complex.h
include/cstddef
include/ctype.h
include/errno.h
include/float.h
include/inttypes.h
include/limits.h
include/locale.h
include/math.h
include/setjmp.h
include/stdbool.h
include/stddef.h
include/stdint.h
include/stdio.h
include/stdlib.h
include/string.h
include/wchar.h
include/wctype.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32411.96335.patch
Type: text/x-patch
Size: 9495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170424/47b8afd1/attachment.bin>
More information about the cfe-commits
mailing list