When comparing the source range of a declaration against the region of
interest (e.g., as used by clang_getCursor()), count the decl-specifier-seq as part of the source range, as we do for clang_annotateTokens(). Makes clang_getCursor() work properly for the result types of functions, for example. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119514 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- test/Index/TestClassDecl.m 2 additions, 2 deletionstest/Index/TestClassDecl.m
- test/Index/TestClassForwardDecl.m 2 additions, 2 deletionstest/Index/TestClassForwardDecl.m
- test/Index/c-index-getCursor-test.m 5 additions, 5 deletionstest/Index/c-index-getCursor-test.m
- tools/libclang/CIndex.cpp 47 additions, 7 deletionstools/libclang/CIndex.cpp
Loading
Please register or sign in to comment