ilya-biryukov added inline comments.

================
Comment at: clangd/Function.h:44
+            /// A sfinae-check that Callable can be called with Args...
+            class = decltype(std::declval<Callable>()(std::declval<Args>()...),
+                             void())>
----------------
We need this check to make `ClangdServer::codeComplete` overloads work. Without 
it, overloading thinks `UniqueFunction` can be constructed from any type, so we 
end up getting ambig between the two overloads when calling it in a following 
way: `codeComplete(Ctx, File, Pos, CCOpts, OverridenContents)`.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D40486



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

Reply via email to