Since the introduction of the CXUnsavedFile for the current document
in the code completion (commit f14a8fc9 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.
Details
Details
- Reviewers
kfunk - Group Reviewers
KDevelop - Commits
- R32:28c6e5d5f8d2: Unbreak most of the clang codecompletion test by passing file contents
Diff Detail
Diff Detail
- Repository
- R32 KDevelop
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.