]> granicus.if.org Git - clang/commit
[libclang] evalute compound statement cursors before trying to evaluate
authorAlex Lorenz <arphaman@gmail.com>
Mon, 9 Jul 2018 19:41:28 +0000 (19:41 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 9 Jul 2018 19:41:28 +0000 (19:41 +0000)
commit0b6fe1495ec1565f554715b650e7e13b391e0ab1
tree473860b38322c2b5665ccd41ef27688b2f2a6775
parentf983ca81222092615a93802c6820e9a46b5b9ac2
[libclang] evalute compound statement cursors before trying to evaluate
the cursor like a declaration

This change fixes a bug in libclang in which it tries to evaluate a statement
cursor as a declaration cursor, because that statement still has a pointer to
the declaration parent.

rdar://38888477

Differential Revision: https://reviews.llvm.org/D49051

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336590 91177308-0d34-0410-b5e6-96231b3b80d8
tools/libclang/CIndex.cpp
unittests/libclang/LibclangTest.cpp