ntroduce clang_getSpellingLocation() into libclang, to provide the
location where we're spelling a token even within a macro. clang_getInstantiationLocation() tells where we instantiated the macro. I'm still not thrilled with the CXSourceLocation/CXSourceRange APIs, since they gloss over macro-instantiation information. Take 2: this time, adjusted tests appropriately and used a "simple" approach to the spelling location. llvm-svn: 118495
Showing
- clang/include/clang-c/Index.h 33 additions, 2 deletionsclang/include/clang-c/Index.h
- clang/test/Index/annotate-tokens-pp.c 1 addition, 1 deletionclang/test/Index/annotate-tokens-pp.c
- clang/test/Index/blocks.c 0 additions, 1 deletionclang/test/Index/blocks.c
- clang/test/Index/code-complete-errors.c 8 additions, 1 deletionclang/test/Index/code-complete-errors.c
- clang/tools/c-index-test/c-index-test.c 22 additions, 22 deletionsclang/tools/c-index-test/c-index-test.c
- clang/tools/libclang/CIndex.cpp 47 additions, 1 deletionclang/tools/libclang/CIndex.cpp
- clang/tools/libclang/CIndexDiagnostic.cpp 7 additions, 7 deletionsclang/tools/libclang/CIndexDiagnostic.cpp
- clang/tools/libclang/libclang.darwin.exports 1 addition, 0 deletionsclang/tools/libclang/libclang.darwin.exports
- clang/tools/libclang/libclang.exports 1 addition, 0 deletionsclang/tools/libclang/libclang.exports
Loading
Please register or sign in to comment