Add #pragma clang module build/endbuild pragmas for performing a module build
as part of a compilation. This is intended for two purposes: 1) Writing self-contained test cases for modules: we can now write a single source file test that builds some number of module files on the side and imports them. 2) Debugging / test case reduction. A single-source testcase is much more amenable to reduction, compared to a VFS tarball or .pcm files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305101 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticLexKinds.td 4 additions, 0 deletionsinclude/clang/Basic/DiagnosticLexKinds.td
- include/clang/Frontend/ASTUnit.h 6 additions, 18 deletionsinclude/clang/Frontend/ASTUnit.h
- include/clang/Frontend/CompilerInstance.h 7 additions, 0 deletionsinclude/clang/Frontend/CompilerInstance.h
- include/clang/Lex/ModuleLoader.h 34 additions, 0 deletionsinclude/clang/Lex/ModuleLoader.h
- include/clang/Lex/Preprocessor.h 1 addition, 0 deletionsinclude/clang/Lex/Preprocessor.h
- lib/Frontend/ASTUnit.cpp 1 addition, 1 deletionlib/Frontend/ASTUnit.cpp
- lib/Frontend/CompilerInstance.cpp 165 additions, 69 deletionslib/Frontend/CompilerInstance.cpp
- lib/Lex/Pragma.cpp 117 additions, 0 deletionslib/Lex/Pragma.cpp
- test/Modules/preprocess-build.cpp 35 additions, 0 deletionstest/Modules/preprocess-build.cpp
- unittests/Basic/SourceManagerTest.cpp 3 additions, 21 deletionsunittests/Basic/SourceManagerTest.cpp
- unittests/Lex/LexerTest.cpp 1 addition, 19 deletionsunittests/Lex/LexerTest.cpp
- unittests/Lex/PPCallbacksTest.cpp 2 additions, 21 deletionsunittests/Lex/PPCallbacksTest.cpp
- unittests/Lex/PPConditionalDirectiveRecordTest.cpp 1 addition, 19 deletionsunittests/Lex/PPConditionalDirectiveRecordTest.cpp
Loading
Please register or sign in to comment