]> granicus.if.org Git - clang/commit
[Modules] Prevent #import to reenter header if not building a module.
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 10 Aug 2017 15:16:24 +0000 (15:16 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 10 Aug 2017 15:16:24 +0000 (15:16 +0000)
commit15f32a5cedf2ebf7f24cf76a91dbdd49d70a33de
tree8d1e37cac3ebc683630c108d800018657dc695f2
parent1956004b069fcc8a49f0ee364d9ed924ce096ac9
[Modules] Prevent #import to reenter header if not building a module.

When non-modular headers are imported while not building a module but
in -fmodules mode, be conservative and preserve the default #import
semantic: do not reenter headers.

rdar://problem/33745031

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310605 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/HeaderSearch.cpp
test/Modules/Inputs/import-textual/x.h [new file with mode: 0644]
test/Modules/import-textual-nomodules.m [new file with mode: 0644]