summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppsourceprocessor.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-08-18 12:25:11 +0200
committerErik Verbruggen <erik.verbruggen@digia.com>2014-08-18 13:40:37 +0200
commitbe3dbd2699c8daed8ddf61f8cf08f68a481717d2 (patch)
tree3f2a276ef277940ebce1a4a153a0bf835764f136 /src/plugins/cpptools/cppsourceprocessor.cpp
parentbc03271f0e700bbe8bfa58687ec386131887a304 (diff)
downloadqt-creator-be3dbd2699c8daed8ddf61f8cf08f68a481717d2.tar.gz
CppEditor: copy snapshot before FunctionDeclDefLink change calculation.
FunctionDeclDefLink::changes is called from CPPEditorWidget::updateFunctionDeclDefLinkNow() where it receives the snapshot by reference from the semantic info. The semantic info is recalculated in a/the future, so it might change the snapshot or its documents while it's still being used by the decl/def link finder. So, this patch takes a copy of all relevant semantic info (snapshot and document) before starting to calculate the changes. Change-Id: I78244a4ca8149233403b3c35ee05a2d4ed4b2770 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor.cpp')
0 files changed, 0 insertions, 0 deletions