summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppsemanticinfo.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2014-03-12 12:40:33 -0300
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-03-17 14:39:19 +0100
commit18e6be55d7260a6f21e0021d6eba7da002125ab2 (patch)
treedc6994e749b6c5396ab7e9bdf6ea9ba90574173c /src/plugins/cpptools/cppsemanticinfo.cpp
parent1f0fd959fa9c8f4de6b448671ec63746ff42299a (diff)
downloadqt-creator-18e6be55d7260a6f21e0021d6eba7da002125ab2.tar.gz
CppTools: Tag incomplete semantic info
...in order to be able to full-rehighlight on the next turn. The following sequence was problematic: 1. recalculateSemanticInfoDetached(true) * e.g. triggered by opening the document 2. recalculateSemanticInfoDetached(false) * e.g. triggered by moving the cursor * cancels 1. and leads to incompletely parsed/checked document - OK 3. startHighlighting() * triggered by 1.; starts highlighting on incomplete document - OK 4. startHighlighting() * gets a completely parsed/checked document - OK * not forced, so just compare revisions; they are the same, so skip/return - a partly highlighted document is left behind. Task-number: QTCREATORBUG-11367 Change-Id: Ic56e00e862ec4a1ffa197b2fc8b48be56a3562de Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppsemanticinfo.cpp')
-rw-r--r--src/plugins/cpptools/cppsemanticinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppsemanticinfo.cpp b/src/plugins/cpptools/cppsemanticinfo.cpp
index 1607251074..09407681c3 100644
--- a/src/plugins/cpptools/cppsemanticinfo.cpp
+++ b/src/plugins/cpptools/cppsemanticinfo.cpp
@@ -32,6 +32,6 @@
using namespace CppTools;
SemanticInfo::SemanticInfo()
- : revision(0), forced(false)
+ : revision(0), forced(false), complete(true)
{
}