[NFC] Cleanup Dex
authorKirill Bobyrev <kbobyrev.opensource@gmail.com>
Fri, 31 Aug 2018 09:17:02 +0000 (09:17 +0000)
committerKirill Bobyrev <kbobyrev.opensource@gmail.com>
Fri, 31 Aug 2018 09:17:02 +0000 (09:17 +0000)
commit493b1627ca6de748a63c25dfaa8fbdf9b5688271
treedd01206245de63283c98b53d098c7a0cb3f841d2
parenta8c22c0894ffc5719bce53dc4938054722bfcf66
[NFC] Cleanup Dex

* Use consistent assertion messages in iterators implementations
* Silence a bunch of clang-tidy warnings: use `emplace_back` instead of
  `push_back` where possible, make sure arguments have the same name in
  header and implementation file, use for loop over ranges where possible

Reviewed by: ioeric

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

llvm-svn: 341190
clang-tools-extra/clangd/index/dex/DexIndex.cpp
clang-tools-extra/clangd/index/dex/DexIndex.h
clang-tools-extra/clangd/index/dex/Iterator.cpp
clang-tools-extra/clangd/index/dex/Trigram.cpp