]> granicus.if.org Git - clang/commit
Teach clang_getCursorReferenced() that a
authorDouglas Gregor <dgregor@apple.com>
Fri, 5 Nov 2010 21:11:19 +0000 (21:11 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 5 Nov 2010 21:11:19 +0000 (21:11 +0000)
commit93798e25d68e2d146cff9bd0355d4b7b1ca765f1
treeb19d33d3fe72a46968e0d8dcccd457c3cd733457
parent752c2e930a3ec30b5e338845fd5e7baae532ee69
Teach clang_getCursorReferenced() that a
CXXConstructorExpr/CXXTemporaryObjectExpr references the constructor
it calls. Then, tweak clang_getCursor() to prefer such a call over a
type reference to the type being called.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118297 91177308-0d34-0410-b5e6-96231b3b80d8
test/Index/get-cursor.cpp
test/Index/index-templates.cpp
test/Index/load-stmts.cpp
tools/libclang/CIndex.cpp