Skip to content

Commit

Permalink
Merge branch 'code_completion' from Swassie
Browse files Browse the repository at this point in the history
  • Loading branch information
casch-at committed Jun 17, 2018
2 parents d95329f + bc67042 commit b6f5781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CompletionThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void CompletionThread::process(Request *request)
completionFlags |= CXCodeComplete_IncludeMacros;

CXCodeCompleteResults *results = clang_codeCompleteAt(cache->translationUnit->unit, sourceFile.constData(),
request->location.line(), request->location.column() - request->prefix.length(),
request->location.line(), request->location.column(),
&unsaved, unsaved.Length ? 1 : 0, completionFlags);
completeTime = cache->codeCompleteTime = sw.restart();
LOG() << "Generated" << (results ? results->NumResults : 0) << "completions for" << request->location << (results ? "successfully" : "unsuccessfully") << "in" << completeTime << "ms";
Expand Down

0 comments on commit b6f5781

Please sign in to comment.