aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangcompletionassistprocessor.h
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2018-06-15 14:35:58 +0200
committerIvan Donchevskii <ivan.donchevskii@qt.io>2018-07-27 07:34:44 +0000
commitda4be3fdb726cc7c8e381d42c8997e31d7dc08c2 (patch)
tree2b6b6423299270dd86188a5c5aea3aaf3f1a53ba /src/plugins/clangcodemodel/clangcompletionassistprocessor.h
parentee0f386aad73e743db6e89e88c6ad02357aa0c77 (diff)
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>
Diffstat (limited to 'src/plugins/clangcodemodel/clangcompletionassistprocessor.h')
-rw-r--r--src/plugins/clangcodemodel/clangcompletionassistprocessor.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/clangcodemodel/clangcompletionassistprocessor.h b/src/plugins/clangcodemodel/clangcompletionassistprocessor.h
index d406422aa3..f5f7b06684 100644
--- a/src/plugins/clangcodemodel/clangcompletionassistprocessor.h
+++ b/src/plugins/clangcodemodel/clangcompletionassistprocessor.h
@@ -50,8 +50,7 @@ public:
TextEditor::IAssistProposal *perform(const TextEditor::AssistInterface *interface) override;
- void handleAvailableCompletions(const CodeCompletions &completions,
- CompletionCorrection neededCorrection);
+ void handleAvailableCompletions(const CodeCompletions &completions);
bool running() final { return m_requestSent; }
const TextEditor::TextEditorWidget *textEditorWidget() const;
@@ -62,8 +61,7 @@ private:
int findStartOfName(int pos = -1) const;
bool accepts() const;
- TextEditor::IAssistProposal *createProposal(
- CompletionCorrection neededCorrection = CompletionCorrection::NoCorrection);
+ TextEditor::IAssistProposal *createProposal();
TextEditor::IAssistProposal *createFunctionHintProposal(
const CodeCompletions &completions);