[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)
Mythreya Kuricheti via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 29 03:05:31 PDT 2025
================
@@ -4435,11 +4444,11 @@ TEST(CompletionTest, SkipExplicitObjectParameter) {
auto Result = codeComplete(testPath(TU.Filename), Code.point("c1"),
Preamble.get(), Inputs, Opts);
- EXPECT_THAT(Result.Completions,
- UnorderedElementsAre(AllOf(named("foo"), signature("(int arg)"),
- snippetSuffix("(${1:int arg})")),
- AllOf(named("bar"), signature("(int arg)"),
- snippetSuffix("(${1:int arg})"))));
+ EXPECT_THAT(
+ Result.Completions,
+ UnorderedElementsAre(
+ AllOf(named("foo"), signature("(int arg)"), snippetSuffix("")),
+ AllOf(named("bar"), signature("(int arg)"), snippetSuffix(""))));
----------------
MythreyaK wrote:
potential regression?
https://github.com/llvm/llvm-project/pull/146649
More information about the cfe-commits
mailing list