Skip to content

Commit

Permalink
This one happens for some reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Jan 10, 2017
1 parent 957e3bd commit 487f731
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ClangIndexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1139,8 +1139,7 @@ bool ClangIndexer::handleReference(const CXCursor &cursor, CXCursorKind kind, Lo
const CXTokenKind k = clang_getTokenKind(tokens[i]);
if (k == CXToken_Punctuation) {
const CXStringScope str(clang_getTokenSpelling(tu, tokens[i]));
if (str == "->" || str == "." || str == "::") {
++i;
if ((str == "->" || str == "." || str == "::") && ++i < numTokens) {
assert(i < numTokens);
CXSourceRange memberRange = clang_getTokenExtent(tu, tokens[i]);
unsigned line, column;
Expand Down

0 comments on commit 487f731

Please sign in to comment.