[clangd] Make output order of allTargetDecls deterministic
authorKadir Cetinkaya <kadircet@google.com>
Thu, 16 Jan 2020 10:37:58 +0000 (11:37 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 16 Jan 2020 13:47:28 +0000 (14:47 +0100)
commitd54d71b67e602674a255e299a22fe31dee1f3619
tree4b3e02f0d72f4ef65786ecee6d4986ab646bab9f
parent23a887b0dd48639716b78a1c9ca665df49f64b2e
[clangd] Make output order of allTargetDecls deterministic

Summary:
Makes use of insertion order to stabilize output for multiple decls.

Fixes https://bugs.llvm.org/show_bug.cgi?id=44564

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, mgrang, arphaman, usaxena95, cfe-commits, aemerson

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72826
clang-tools-extra/clangd/FindTarget.cpp