[PCH] When visiting preprocessed entities, make it possible to avoid deserializing
preprocessed entities that are #included in the range that we are interested. This is useful when we are interested in preprocessed entities of a specific file, e.g when we are annotating tokens. There is also an optimization where we cache the last result of PreprocessingRecord::getPreprocessedEntitiesInRange and we re-use it if there is a call with the same range as before. rdar://10313365 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142887 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/SourceManager.h 12 additions, 0 deletionsinclude/clang/Basic/SourceManager.h
- include/clang/Frontend/ASTUnit.h 5 additions, 0 deletionsinclude/clang/Frontend/ASTUnit.h
- include/clang/Lex/PreprocessingRecord.h 33 additions, 1 deletioninclude/clang/Lex/PreprocessingRecord.h
- include/clang/Serialization/ASTReader.h 10 additions, 0 deletionsinclude/clang/Serialization/ASTReader.h
- lib/Frontend/ASTUnit.cpp 44 additions, 0 deletionslib/Frontend/ASTUnit.cpp
- lib/Lex/PreprocessingRecord.cpp 89 additions, 16 deletionslib/Lex/PreprocessingRecord.cpp
- lib/Serialization/ASTReader.cpp 35 additions, 5 deletionslib/Serialization/ASTReader.cpp
- tools/libclang/CIndex.cpp 82 additions, 14 deletionstools/libclang/CIndex.cpp
Loading
Please register or sign in to comment