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.
Paths
| Differential D67274
[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 In case of failures, this produces much nicer output in form of text-based
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 9 2019, 1:29 AM Closed by commit rL371373: [clangd] Improve output of semantic highlighting tests in case of failures (authored by ibiryukov). · Explain WhySep 9 2019, 1:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 219294 clang-tools-extra/trunk/clangd/SemanticHighlighting.h
clang-tools-extra/trunk/clangd/SemanticHighlighting.cpp
clang-tools-extra/trunk/clangd/unittests/SemanticHighlightingTests.cpp
|