]> granicus.if.org Git - clang/commit
Encapsulate within CXCursor the notion of whether a VarDecl* is the first Decl in...
authorTed Kremenek <kremenek@apple.com>
Mon, 1 Nov 2010 23:26:51 +0000 (23:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 1 Nov 2010 23:26:51 +0000 (23:26 +0000)
commit007a7c9d8dcdb2e9cd94b6075108bfc4c90e6ccd
treeeb3bf66b6703d61ed0dd1281f655429b870e9e3c
parent90d26a4afdbf6d917a5241ef3b316e1c8337c9b8
Encapsulate within CXCursor the notion of whether a VarDecl* is the first Decl in a DeclGroup.  We use this
to recover some context that is currently not modeled directly in the AST.  Currently VarDecl's cannot
properly determine their source range because they have no context on whether or not they appear in a DeclGroup.
For the meantime, this bandaid suffices in libclang since that is where the correct SourceRange is directly needed.

Fixes <rdar://problem/8595749>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117973 91177308-0d34-0410-b5e6-96231b3b80d8
test/Index/usrs.m
tools/libclang/CIndex.cpp
tools/libclang/CXCursor.cpp
tools/libclang/CXCursor.h