[PATCH] D49591: [clangd] Introduce search Tokens and trigram generation algorithms

Kirill Bobyrev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 24 23:12:47 PDT 2018


kbobyrev added inline comments.


================
Comment at: clang-tools-extra/clangd/index/dex/Trigram.cpp:56
+  for (int I = LowercaseIdentifier.size() - 1; I >= 0; --I) {
+    Next[I] = {{NextTail, NextHead, NextNextHead}};
+    NextTail = Roles[I] == Tail ? I : 0;
----------------
sammccall wrote:
> (just for my curiosity - why are the double braces needed rather than single?)
Discussed offline: that's probably a bug, probably worth looking into.


https://reviews.llvm.org/D49591





More information about the cfe-commits mailing list