kbobyrev added inline comments.

================
Comment at: clang-tools-extra/clangd/index/dex/Dex.cpp:148
+  if (TrigramIterators.size() > 1)
     TopLevelChildren.push_back(createAnd(move(TrigramIterators)));
+  else if (TrigramIterators.size() == 1)
----------------
ilya-biryukov wrote:
> Maybe special-case a single-iterator case in `createAnd` instead? Same with 
> `createOr`.
> Any cons to doing so?
I thought that this might result in some implicit query tree generation 
semantics. However, since there optimizations are likely to be added at some 
point, I guess we could start being implicit right now, especially given that 
there is no good way for the user code to inspect the query tree structure (and 
there's no good reason to do so, too).


https://reviews.llvm.org/D52016



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to