Commit 82325d10 authored by Erik Verbruggen's avatar Erik Verbruggen

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: default avatarNikolai Kosjar <>
parent c8c2aaaf
......@@ -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)
if (Core::EditorManager::currentEditor() != editor())
const Snapshot semanticSnapshot = d->m_lastSemanticInfo.snapshot;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment