aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2019-03-21 17:55:24 +0100
committerMarco Bubke <marco.bubke@qt.io>2019-04-02 13:08:44 +0000
commit56b01f74633c310807cf3fc00766cfa01002297f (patch)
treea8e0a09154f4c95dd8b16db2a8512c2f5b5b0946 /src/plugins/clangcodemodel
parent7595c9f3052cf7c2ca05f3157c945371952ca0b5 (diff)
Clang: Minimize reindexing
We optimal indexer is only reindexing if the index would be changed. This patch is a step in that direction. We only reindex now if the file or project has changed. It fixes some typos too. Task-number: QTCREATORBUG-21150 Change-Id: I6ea1c13282fbcd70253b9b2939aed37580dbd160 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel')
-rw-r--r--src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.cpp4
-rw-r--r--src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.cpp b/src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.cpp
index 5af48386bd..ad5ee50476 100644
--- a/src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.cpp
+++ b/src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.cpp
@@ -47,7 +47,7 @@ void CompletionChunksToTextConverter::parseChunks(
m_codeCompletionChunks.cend(),
[this] (const ClangBackEnd::CodeCompletionChunk &chunk)
{
- parseDependendOnTheOptionalState(chunk);
+ parseDependentOnTheOptionalState(chunk);
m_previousCodeCompletionChunk = chunk;
});
}
@@ -200,7 +200,7 @@ void CompletionChunksToTextConverter::parse(
}
}
-void CompletionChunksToTextConverter::parseDependendOnTheOptionalState(
+void CompletionChunksToTextConverter::parseDependentOnTheOptionalState(
const ClangBackEnd::CodeCompletionChunk &codeCompletionChunk)
{
wrapInCursiveTagIfOptional(codeCompletionChunk);
diff --git a/src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.h b/src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.h
index 88654ed3fd..09ad15e30f 100644
--- a/src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.h
+++ b/src/plugins/clangcodemodel/clangcompletionchunkstotextconverter.h
@@ -75,7 +75,7 @@ public:
private:
void parse(const ClangBackEnd::CodeCompletionChunk &codeCompletionChunk);
- void parseDependendOnTheOptionalState(const ClangBackEnd::CodeCompletionChunk &codeCompletionChunk);
+ void parseDependentOnTheOptionalState(const ClangBackEnd::CodeCompletionChunk &codeCompletionChunk);
void parseResultType(const Utf8String &text);
void parseText(const Utf8String &text);
void wrapInCursiveTagIfOptional(const ClangBackEnd::CodeCompletionChunk &codeCompletionChunk);