When loading an AST file, set SourceManager::MainFileID to the main file of the AST file,
as suggested by Tom Honermann. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147612 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/SourceManager.h 6 additions, 0 deletionsinclude/clang/Basic/SourceManager.h
- lib/Frontend/FrontendAction.cpp 1 addition, 10 deletionslib/Frontend/FrontendAction.cpp
- lib/Lex/Preprocessor.cpp 16 additions, 12 deletionslib/Lex/Preprocessor.cpp
- lib/Serialization/ASTReader.cpp 10 additions, 7 deletionslib/Serialization/ASTReader.cpp
Loading
Please register or sign in to comment