summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppelementevaluator.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2018-01-10 14:54:45 +0100
committerNikolai Kosjar <nikolai.kosjar@qt.io>2018-01-22 14:00:03 +0000
commit30c95c937b8b25ee828eedf449327aab0f35bded (patch)
tree2147840f590bdc768e7d06fa75fb60518cfc9823 /src/plugins/cpptools/cppelementevaluator.cpp
parent045cb7a5094de546bfbdd5533cefb8372998e58b (diff)
downloadqt-creator-30c95c937b8b25ee828eedf449327aab0f35bded.tar.gz
Clang: Take over jobs if document gets new project part
We could loose jobs if e.g. the user switched to another parse context or shuffled project files between targets/products/project-parts while there were still jobs in the queue. Previously, changing the project part id of a document was a two step process: 1) Unregister document with old project part id 2) Register document with new project part id On 1), we have thrown the document processors (and thus the job queue) away. On 2), we have created a new document. Due to this separation the backend could not take over jobs to the new document (processor) - it could not know that these commands belong together. Now, we avoid the explicit unregister command. On a register command the backend has enough context to find out what to do, it can take over relevant jobs. Task-number: QTCREATORBUG-18856 Change-Id: Ib68a8e62140fcfdb2de58dcd2ae955b4c2e15166 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppelementevaluator.cpp')
0 files changed, 0 insertions, 0 deletions