From ec13e65d9589e45e7842c2e7906e6ce182cdc302 Mon Sep 17 00:00:00 2001
From: Nikolai Kosjar <nikolai.kosjar@digia.com>
Date: Thu, 27 Mar 2014 14:35:07 -0400
Subject: [PATCH] CppTools: Avoid using old incomplete semantic info document

Task-number: QTCREATORBUG-11367
Change-Id: I8b02c30a43a57c547bc07d796f4b29725beca793
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
---
 src/plugins/cpptools/cpptoolseditorsupport.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp
index 4932b21e9a6..e2c33c8ddae 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.cpp
+++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp
@@ -541,6 +541,7 @@ void CppEditorSupport::recalculateSemanticInfoNow(const SemanticInfo::Source &so
         semanticInfo.forced = source.force;
 
         if (!source.force
+                && m_lastSemanticInfo.complete
                 && m_lastSemanticInfo.revision == source.revision
                 && m_lastSemanticInfo.doc
                 && m_lastSemanticInfo.doc->translationUnit()->ast()
-- 
GitLab