Skip to content

Commit

Permalink
Fix issue Andersbakken#837. Use reffed cursor for cxtype when kind is…
Browse files Browse the repository at this point in the history
… CXCursor_MemberRefExpr
  • Loading branch information
Andersbakken committed Dec 18, 2016
1 parent 7399ee2 commit 1c261a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.6)
project(rtags)
set(RTAGS_VERSION_MAJOR 2)
set(RTAGS_VERSION_MINOR 5)
set(RTAGS_VERSION_DATABASE 108)
set(RTAGS_VERSION_DATABASE 109)
set(RTAGS_VERSION_SOURCES_FILE 7)
set(RTAGS_VERSION ${RTAGS_VERSION_MAJOR}.${RTAGS_VERSION_MINOR}.${RTAGS_VERSION_DATABASE})

Expand Down
2 changes: 1 addition & 1 deletion src/ClangIndexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ bool ClangIndexer::handleReference(const CXCursor &cursor, CXCursorKind kind, Lo
*cursorPtr = 0;
return false;
}
setType(*c, clang_getCursorType(cursor));
setType(*c, clang_getCursorType(kind == CXCursor_MemberRefExpr ? ref : cursor));
if (RTags::isFunction(refKind)) {
mLastCallExprSymbol = c;
}
Expand Down

0 comments on commit 1c261a4

Please sign in to comment.