[clang-tools-extra] [clangd] Do not offer extraction to variable for decl init expression (PR #69477)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 4 01:19:20 PST 2024


================
@@ -422,8 +422,6 @@ TEST_F(ExtractVariableTest, Test) {
                     int member = 42;
 };
                 )cpp"},
-      {R"cpp(void f() { auto x = [[ [](){ return 42; }]]; })cpp",
----------------
kadircet wrote:

let's change this to `auto x = +[[ ... ]]`, to make sure we preserve the test for moving around a lambda

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


More information about the cfe-commits mailing list