[clang-tools-extra] [clangd] fix extract-to-function for overloaded operators (PR #81640)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 10 10:06:40 PST 2024
================
@@ -190,6 +190,14 @@ F (extracted();)
}]]
)cpp";
EXPECT_EQ(apply(CompoundFailInput), "unavailable");
+
+ ExtraArgs.push_back("-std=c++14");
+ // FIXME: Expressions are currently not extracted
+ EXPECT_EQ(apply(R"cpp(
+ void sink(int);
+ void call() { sink([[1+1]]); }
----------------
5chmidti wrote:
I've added another testcase for extracting a single expression
https://github.com/llvm/llvm-project/pull/81640
More information about the cfe-commits
mailing list