[clang] [clang-tools-extra] [clangd] Autocomplete fixes for methods (PR #165916)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 7 23:07:21 PST 2026


================
@@ -585,39 +594,127 @@ TEST(CompletionTest, HeuristicsForMemberFunctionCompletion) {
   for (const auto &P : Code.points("canNotBeCall")) {
     auto Results = completions(TU, P, /*IndexSymbols*/ {}, Opts);
     EXPECT_THAT(Results.Completions,
-                Contains(AllOf(named("method"), signature("(int) const"),
+                Contains(AllOf(named("method"), signature("(int name) const"),
                                snippetSuffix(""))));
-    // We don't have any arguments to deduce against if this isn't a call.
----------------
HighCommander4 wrote:

Please retain this comment

https://github.com/llvm/llvm-project/pull/165916


More information about the cfe-commits mailing list