[PATCH] D50385: [clangd] Collect symbol occurrences from AST.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 24 02:52:22 PDT 2018


ioeric added inline comments.


================
Comment at: clangd/index/SymbolCollector.cpp:241
 
-SymbolCollector::SymbolCollector(Options Opts) : Opts(std::move(Opts)) {}
+class SymbolCollector::CollectOccurrence {
+public:
----------------
I don't see a strong reason for the separation of `CollectOccurrence` and `CollectSymbol`. There are some pieceis that are only used by one of them, but they seem cheap enough to ignore? Intuitively, it seems to me reference collection could just be a member function of `SymbolCollector`.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D50385





More information about the cfe-commits mailing list