diff options
author | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-12-01 13:21:02 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-12-02 16:01:54 +0000 |
commit | a08336fcc2962976a4edd423ab48629b3f38882e (patch) | |
tree | 3f0ffd81d4e0c82f05dfc91870cc5eb72981ff1d /src/plugins/clangcodemodel/clangcompletionassistprocessor.h | |
parent | 03056a6d6419eee8ab7eee1a8ebaf29f752b31ee (diff) |
Clang: Don't send multiple completions for the same position
If we send already a completion we should test if there is already one
sent for the same position.
Change-Id: Ie88f89bff0e1da1c5e747827a45154c7ccaecabc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/plugins/clangcodemodel/clangcompletionassistprocessor.h')
-rw-r--r-- | src/plugins/clangcodemodel/clangcompletionassistprocessor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clangcodemodel/clangcompletionassistprocessor.h b/src/plugins/clangcodemodel/clangcompletionassistprocessor.h index 4cecf8a31e..6a8abddcb7 100644 --- a/src/plugins/clangcodemodel/clangcompletionassistprocessor.h +++ b/src/plugins/clangcodemodel/clangcompletionassistprocessor.h @@ -84,7 +84,7 @@ private: UnsavedFileContentInfo unsavedFileContent(const QByteArray &customFileContent) const; void sendFileContent(const QByteArray &customFileContent); - void sendCompletionRequest(int position, const QByteArray &customFileContent); + bool sendCompletionRequest(int position, const QByteArray &customFileContent); void handleAvailableCompletions(const CodeCompletions &completions); bool handleAvailableFunctionHintCompletions(const CodeCompletions &completions); |