[clangd] NFC: Use TopN instead of std::priority_queue
authorKirill Bobyrev <kbobyrev.opensource@gmail.com>
Thu, 6 Sep 2018 13:15:03 +0000 (13:15 +0000)
committerKirill Bobyrev <kbobyrev.opensource@gmail.com>
Thu, 6 Sep 2018 13:15:03 +0000 (13:15 +0000)
commitafbf31854dc9acf2efb3cd3ec1fdcc8318dff8d9
treeadadfb6f76169c2099d5c105054d633710e1b448
parente4ee0213d4b709f5c7d214ed9c95c8dfb901569a
[clangd] NFC: Use TopN instead of std::priority_queue

Quality.cpp defines a structure for convenient storage of Top N items,
it should be used instead of the `std::priority_queue` with slightly
obscure semantics.

This patch does not affect functionality.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D51676

llvm-svn: 341544
clang-tools-extra/clangd/index/MemIndex.cpp