[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 4 02:33:46 PDT 2018
ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.
nice!
================
Comment at: clangd/index/Index.cpp:153
+ // We can reuse the arena, as it only has unique strings and we need them all.
+ // Reallocate the ref lists on the arena to reduce fragmentation and waste.
+ std::vector<std::pair<SymbolID, ArrayRef<Ref>>> Result;
----------------
maybe also mention that this would make lookup faster?
================
Comment at: clangd/index/Merge.cpp:13
#include "../Logger.h"
+#include "Merge.h"
#include "llvm/ADT/STLExtras.h"
----------------
nit: shouldn't the main header be sorted higher?
We should also put all #includes in one block so that clang-format can sort them properly.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D51605
More information about the cfe-commits
mailing list