The test didn't test anything actually -- it used "[]" as annotation which should be
"[[]]".
This patch also fixes a bug in XRef where we may return duplicated refs.
Differential D66349
[clangd] Fix one testcase in XRefsTests. hokein on Aug 16 2019, 7:35 AM. Authored by
Details The test didn't test anything actually -- it used "[]" as annotation which should be This patch also fixes a bug in XRef where we may return duplicated refs.
Diff Detail
Event Timeline
|
What are the elements References for the problematic case?
If we have duplicate elements, then sort() would now give us one of the items. Which exact Decl we're gonna end up seeing is not well-defined, i.e. it's non-deterministic.