D9723: Unbreak most of the clang codecompletion test by passing file contents
noreply at phabricator.kde.org
Mon Jan 8 00:01:46 UTC 2018
mwolff created this revision.
mwolff added a reviewer: KDevelop.
Restricted Application added a subscriber: kdevelop-devel.
mwolff requested review of this revision.
Since the introduction of the CXUnsavedFile for the current document
in the code completion (commit https://phabricator.kde.org/R32:f14a8fc9ceb38a91c2d718552779da666d509bf1 from July 2017 [!!!]) the
unit tests where failing. The reason was that clang only saw empty
file contents when the code completion context was created with
no text. Previously, this used to fall-back to the actual file
on-disk. Nowadays, this fallback does not exist anymore, thus we
always have to pass the text in the unit tests. Do this and cleanup
the code by sharing more code in functions.
To: mwolff, #kdevelop
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop-devel