diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2016-03-31 14:31:53 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2016-03-31 13:21:54 +0000 |
commit | 01504e41b80897869ef5784c83f6852a96ceb829 (patch) | |
tree | 1c4153dfe6da2a6870b8e17db0404138d67fc2df /src/plugins/cpptools/cppsourceprocessor.cpp | |
parent | 2ce3bf8ed49555d0bc6f69d63173338f80528016 (diff) | |
download | qt-creator-01504e41b80897869ef5784c83f6852a96ceb829.tar.gz |
AutoTest: Avoid invalid parse results
If the document gets updated while typing we can get different
results when fetching the content and using positions inside the
content which might have updated milliseconds later.
Beside fetching only once ensure valid parse results by adding an
additional check for the used visitor.
Change-Id: Id1ba4a139a4dc497be0fbb5cf1f81004f3f8676c
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor.cpp')
0 files changed, 0 insertions, 0 deletions