summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2018-05-31 14:22:17 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2018-06-01 08:30:49 +0000
commit234980699d2c5563baf9ae6d868a9f197f400f7b (patch)
tree4a4d7164fb9f51b3da6a7929ea4e134b76f386f0 /src/tools
parentcf960e478844ce7414093c0f1b71a70d7f46e9ce (diff)
downloadqt-creator-234980699d2c5563baf9ae6d868a9f197f400f7b.tar.gz
Clang: Fix running UpdateExtraDocumentAnnotations job on outdated document
Prior to this change, the UpdateExtraDocumentAnnotations job (e.g. providing the symbol outline information) was running concurrently to UpdateDocumentAnnotations job on the outdated translation unit. Now it runs on the same translation unit after the document was updated. Change-Id: I4d84102423592d8a1310c1ac0ebbce9bd76a3714 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/clangbackend/source/clangjobrequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clangbackend/source/clangjobrequest.cpp b/src/tools/clangbackend/source/clangjobrequest.cpp
index 2a37f8bfb2..b3ec4ac07f 100644
--- a/src/tools/clangbackend/source/clangjobrequest.cpp
+++ b/src/tools/clangbackend/source/clangjobrequest.cpp
@@ -157,7 +157,7 @@ static JobRequest::RunConditions conditionsForType(JobRequest::Type type)
| Conditions(Condition::DocumentVisible);
if (type == Type::RequestReferences || type == Type::FollowSymbol
- || type == Type::RequestToolTip) {
+ || type == Type::RequestToolTip || type == Type::UpdateExtraDocumentAnnotations) {
conditions |= Condition::CurrentDocumentRevision;
}