<table><tr><td style="">mwolff created this revision.<br />mwolff added a reviewer: KDevelop.<br />Restricted Application added a subscriber: kdevelop-devel.<br />mwolff requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9723" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Since the introduction of the CXUnsavedFile for the current document<br />
in the code completion (commit <a href="https://phabricator.kde.org/R32:f14a8fc9ceb38a91c2d718552779da666d509bf1" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">f14a8fc9</a> from July 2017 [!!!]) the<br />
unit tests where failing. The reason was that clang only saw empty<br />
file contents when the code completion context was created with<br />
no text. Previously, this used to fall-back to the actual file<br />
on-disk. Nowadays, this fallback does not exist anymore, thus we<br />
always have to pass the text in the unit tests. Do this and cleanup<br />
the code by sharing more code in functions.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9723" rel="noreferrer">https://phabricator.kde.org/D9723</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/clang/tests/test_codecompletion.cpp</div></div></div><br /><div><strong>To: </strong>mwolff, KDevelop<br /><strong>Cc: </strong>kdevelop-devel<br /></div>