Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Not sure how to write a test for this, short of writing unit tests for the operator< itself. The consequence of this bug is that the sort/unique pass on the highlighting tokens is buggy, but as of https://github.com/clangd/clangd/issues/1057 resolveConflict() fixes up that kind of bugginess.
In any case, it's an obvious fix.
Comment Actions
Oopsy :/ Thanks for the fix!
Regarding the test, if you came looking for this piece due to a particular issue, it might be nice to have that included in the test suite (assuming it can be minimized).
If not, I think it would still be valuable to include a simple unittest that just tests operator< by creating HighlightingTokens to make sure we don't make similar mistakes in the future.