hokein created this revision. hokein added a reviewer: ioeric. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, ilya-biryukov.
When the limit of FuzzyFindRequest is not specified, MemIndex and DexIndex will set it MAX_UINT, which doesn't make sense in the active tool dexp (we might get lots results). This patch restricts it to a small number. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D54106 Files: clangd/index/dex/dexp/Dexp.cpp Index: clangd/index/dex/dexp/Dexp.cpp =================================================================== --- clangd/index/dex/dexp/Dexp.cpp +++ clangd/index/dex/dexp/Dexp.cpp @@ -52,6 +52,7 @@ std::vector<SymbolID> getSymbolIDsFromIndex(StringRef QualifiedName, const SymbolIndex *Index) { FuzzyFindRequest Request; + Request.Limit = 10; // Remove leading "::" qualifier as FuzzyFind doesn't need leading "::" // qualifier for global scope. bool IsGlobalScope = QualifiedName.consume_front("::");
Index: clangd/index/dex/dexp/Dexp.cpp =================================================================== --- clangd/index/dex/dexp/Dexp.cpp +++ clangd/index/dex/dexp/Dexp.cpp @@ -52,6 +52,7 @@ std::vector<SymbolID> getSymbolIDsFromIndex(StringRef QualifiedName, const SymbolIndex *Index) { FuzzyFindRequest Request; + Request.Limit = 10; // Remove leading "::" qualifier as FuzzyFind doesn't need leading "::" // qualifier for global scope. bool IsGlobalScope = QualifiedName.consume_front("::");
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits