commit | 6653798ff5ce6deb58112777e21307ccc453133d | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Wed Nov 17 17:14:07 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Wed Nov 17 17:14:07 2010 +0000 |
tree | 2b4e077bca278663506bc796f0d3f8a7ae92fba3 | |
parent | db85e058ed244931c81cefecbebf1a4a3030ea2d [diff] |
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