[clangd] Sort targets before printing for tests
Targets are not necessarily inserted in the order they appear in source code. For example we could traverse overload sets, or selectively insert template patterns after all other decls. So order the targets before printing to make sure tests are not dependent on such implementation details. We can also do it in production, but that might be wasteful as we haven't seen any complaints in the wild around these orderings yet. Differential Revision: https://reviews.llvm.org/D117549
Loading
Please sign in to comment