This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Improve output of semantic highlighting tests in case of failures
ClosedPublic

Authored by ilya-biryukov on Sep 6 2019, 7:14 AM.

Details

Summary

Instead of matching lists of highlightings, we annotate input code with
resulting highlightings and diff it against the expected annotated input.

In case of failures, this produces much nicer output in form of text-based
diffs.

Diff Detail

Repository
rL LLVM

Event Timeline

ilya-biryukov created this revision.Sep 6 2019, 7:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2019, 7:14 AM
nridge added a subscriber: nridge.Sep 6 2019, 9:07 PM
hokein accepted this revision.Sep 9 2019, 1:29 AM

nice, thanks.

This revision is now accepted and ready to land.Sep 9 2019, 1:29 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2019, 1:47 AM