]> granicus.if.org Git - clang/commit
Treat module headers wrapped by our builtin headers as implicitly being textual
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 26 Oct 2016 01:08:55 +0000 (01:08 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 26 Oct 2016 01:08:55 +0000 (01:08 +0000)
commit6fe2a45182c24cfc5c64dabdca8cbc972efdba45
treecc8b1f344fda7e648050d4ed66a1e2c45d1122f9
parent70dc5997653608469839980afdc4aa0e1c0d7e59
Treat module headers wrapped by our builtin headers as implicitly being textual
headers. We previously got this check backwards and treated the wrapper header
as being textual.

This is important because our wrapper headers sometimes inject macros into the
system headers that they #include_next, and sometimes replace them entirely.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285152 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/ModuleMap.cpp
test/Modules/Inputs/System/usr/include/stdbool.h
test/Modules/Inputs/libc-libcxx/sysroot/usr/include/stddef.h
test/Modules/cstd.m