]> granicus.if.org Git - clang/commit
[libclang] In clang_equalCursors, clear out the "FirstInDeclGroup" part in a declarat...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 8 Jan 2013 18:23:28 +0000 (18:23 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 8 Jan 2013 18:23:28 +0000 (18:23 +0000)
commitd1d9df688baf384f1ca1220e51104c3b30d6a81a
tree2c060c35f1902dbbd42f7c8538505bed45703555
parent7cdc45751cb5b200ad5fff0de28c5d1a64b6fce3
[libclang] In clang_equalCursors, clear out the "FirstInDeclGroup" part in a declaration cursor
before doing the comparison.

This is because we can't set "FirstInDeclGroup" consistently; for example, when visiting a DeclStmt we will set
it but we don't set it on the result of clang_getCursorDefinition for a reference of the same declaration.

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