Extend the preprocessing record and libclang with support for
inclusion directives, keeping track of every #include, #import, etc. in the translation unit. We keep track of the source location and kind of the inclusion, how the file name was spelled, and the underlying file to which the inclusion resolved. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116952 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang-c/Index.h 8 additions, 1 deletioninclude/clang-c/Index.h
- include/clang/Lex/PPCallbacks.h 29 additions, 0 deletionsinclude/clang/Lex/PPCallbacks.h
- include/clang/Lex/PreprocessingRecord.h 74 additions, 1 deletioninclude/clang/Lex/PreprocessingRecord.h
- include/clang/Lex/Preprocessor.h 7 additions, 5 deletionsinclude/clang/Lex/Preprocessor.h
- include/clang/Serialization/ASTBitCodes.h 5 additions, 1 deletioninclude/clang/Serialization/ASTBitCodes.h
- include/clang/Serialization/ASTReader.h 3 additions, 0 deletionsinclude/clang/Serialization/ASTReader.h
- lib/Lex/PPDirectives.cpp 30 additions, 14 deletionslib/Lex/PPDirectives.cpp
- lib/Lex/PPMacroExpansion.cpp 3 additions, 2 deletionslib/Lex/PPMacroExpansion.cpp
- lib/Lex/PreprocessingRecord.cpp 37 additions, 0 deletionslib/Lex/PreprocessingRecord.cpp
- lib/Serialization/ASTReader.cpp 52 additions, 16 deletionslib/Serialization/ASTReader.cpp
- lib/Serialization/ASTWriter.cpp 32 additions, 1 deletionlib/Serialization/ASTWriter.cpp
- test/Index/annotate-tokens-include.c 1 addition, 0 deletionstest/Index/annotate-tokens-include.c
- test/Index/annotate-tokens-pp.c 1 addition, 1 deletiontest/Index/annotate-tokens-pp.c
- tools/c-index-test/c-index-test.c 7 additions, 0 deletionstools/c-index-test/c-index-test.c
- tools/libclang/CIndex.cpp 32 additions, 4 deletionstools/libclang/CIndex.cpp
- tools/libclang/CXCursor.cpp 11 additions, 0 deletionstools/libclang/CXCursor.cpp
- tools/libclang/CXCursor.h 8 additions, 0 deletionstools/libclang/CXCursor.h
- tools/libclang/libclang.darwin.exports 1 addition, 0 deletionstools/libclang/libclang.darwin.exports
- tools/libclang/libclang.exports 1 addition, 0 deletionstools/libclang/libclang.exports
Loading
Please register or sign in to comment