[libclang, bindings]: add spelling location
o) Add a 'Location' class that represents the four properties of a physical location o) Enhance 'SourceLocation' to provide 'expansion' and 'spelling' locations, maintaining backwards compatibility with existing code by forwarding the four properties to 'expansion'. o) Update the implementation to use 'clang_getExpansionLocation' instead of the deprecated 'clang_getInstantiationLocation', which has been present since 2011. o) Update the implementation of 'clang_getSpellingLocation' to actually obtain spelling location instead of file location. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316278 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- bindings/python/clang/cindex.py 96 additions, 24 deletionsbindings/python/clang/cindex.py
- bindings/python/tests/cindex/test_location.py 7 additions, 0 deletionsbindings/python/tests/cindex/test_location.py
- tools/libclang/CXSourceLocation.cpp 1 addition, 2 deletionstools/libclang/CXSourceLocation.cpp
Loading
Please register or sign in to comment