[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)
Timothy Akintilo via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 8 19:10:18 PDT 2024
================
@@ -1437,6 +1437,15 @@ TEST(SignatureHelpTest, Overloads) {
EXPECT_EQ(0, Results.activeParameter);
}
+TEST(SignatureHelpTest, ShowLambdaNameInsteadOfOperatorParens) {
+ auto const Results = signatures(R"cpp(
+ auto foo = [](int x, int y){};
+ int main() { foo(^); }
----------------
tilobyte wrote:
yes, added tests for an immediately-invoked lambda and a lambda returned from a function.
https://github.com/llvm/llvm-project/pull/101857
More information about the cfe-commits
mailing list