[modules] If we re-enter a submodule from within itself (when submodule
visibility is enabled) or leave and re-enter it, restore the macro and module visibility state from last time we were in that submodule. This allows mutually-#including header files to stand a chance at being modularized with local visibility enabled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237871 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Lex/Preprocessor.h 31 additions, 17 deletionsinclude/clang/Lex/Preprocessor.h
- lib/Lex/PPLexerChange.cpp 51 additions, 47 deletionslib/Lex/PPLexerChange.cpp
- lib/Lex/PPMacroExpansion.cpp 14 additions, 10 deletionslib/Lex/PPMacroExpansion.cpp
- lib/Lex/Preprocessor.cpp 11 additions, 6 deletionslib/Lex/Preprocessor.cpp
- test/Modules/Inputs/submodule-visibility/cycle1.h 8 additions, 0 deletionstest/Modules/Inputs/submodule-visibility/cycle1.h
- test/Modules/Inputs/submodule-visibility/cycle2.h 8 additions, 0 deletionstest/Modules/Inputs/submodule-visibility/cycle2.h
- test/Modules/Inputs/submodule-visibility/module.modulemap 5 additions, 0 deletionstest/Modules/Inputs/submodule-visibility/module.modulemap
- test/Modules/submodule-visibility-cycles.cpp 10 additions, 0 deletionstest/Modules/submodule-visibility-cycles.cpp
Loading
Please register or sign in to comment