forked from qt-creator/qt-creator
Clang: Use new libclang code completion fix-its feature
Each completion coming from libclang now has it's own list of fix-its which are required to be applied before completion itself. This saves one extra reparse cycle and gives an ability to provide both kinds of completion (initial and corrected one) for cases like shared_ptr, unique_ptr or any other class with overloaded arrow operator. Each of these extra fix-its is applied together with corresponding completion dircetly before completion itself. Change-Id: Ide37e45bb15fa2f1375cd6b86ecd43ced3593046 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -187,10 +187,8 @@ void BackendReceiver::completions(const CompletionsMessage &message)
|
||||
|
||||
const quint64 ticket = message.ticketNumber;
|
||||
QScopedPointer<ClangCompletionAssistProcessor> processor(m_assistProcessorsTable.take(ticket));
|
||||
if (processor) {
|
||||
processor->handleAvailableCompletions(message.codeCompletions,
|
||||
message.neededCorrection);
|
||||
}
|
||||
if (processor)
|
||||
processor->handleAvailableCompletions(message.codeCompletions);
|
||||
}
|
||||
|
||||
void BackendReceiver::annotations(const AnnotationsMessage &message)
|
||||
|
||||
Reference in New Issue
Block a user