From 82325d10464f96ee43bd2add9f65134f7abc0568 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 27 Aug 2014 12:00:15 +0200 Subject: [PATCH] C++: add env. var. to disable decl/def link tracking. When the environment variable QTC_NO_FUNCTION_DECL_DEF_LINK_TRACKING is set, no method declaration/definition tracking is performed. This is to see if QTCREATORBUG-11262 is triggered due to the tracking. Task-number: QTCREATORBUG-11262 Change-Id: Id4cb1fabf9304f8bf42393cb65c402adf8818e2a Reviewed-by: Nikolai Kosjar --- src/plugins/cppeditor/cppeditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 153928c11b..c835b97dee 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -1031,6 +1031,10 @@ void CPPEditorWidget::updateFunctionDeclDefLink() void CPPEditorWidget::updateFunctionDeclDefLinkNow() { + static bool noTracking = qgetenv("QTC_NO_FUNCTION_DECL_DEF_LINK_TRACKING").trimmed() == "1"; + if (noTracking) + return; + if (Core::EditorManager::currentEditor() != editor()) return; const Snapshot semanticSnapshot = d->m_lastSemanticInfo.snapshot; -- GitLab