summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppsemanticinfo.h
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.h
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.h')
-rw-r--r--src/plugins/cpptools/cppsemanticinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppsemanticinfo.h b/src/plugins/cpptools/cppsemanticinfo.h
index f67e8717a0..c0968edb3a 100644
--- a/src/plugins/cpptools/cppsemanticinfo.h
+++ b/src/plugins/cpptools/cppsemanticinfo.h
@@ -79,6 +79,7 @@ public:
unsigned revision;
bool forced;
+ bool complete;
CPlusPlus::Snapshot snapshot;
CPlusPlus::Document::Ptr doc;
LocalUseMap localUses;