Skip to content

Commit 38003e3

Browse files
committed
add test for single expression extraction being not available
1 parent 6df0c2a commit 38003e3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clang-tools-extra/clangd/unittests/tweaks/ExtractFunctionTests.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,12 @@ F (extracted();)
194194
ExtraArgs.push_back("-std=c++14");
195195
// FIXME: Expressions are currently not extracted
196196
EXPECT_EQ(apply(R"cpp(
197-
void sink(int);
198-
void call() { sink([[1+1]]); }
197+
void call() { [[1+1]]; }
198+
)cpp"),
199+
"unavailable");
200+
// FIXME: Expression are currently not extracted
201+
EXPECT_EQ(apply(R"cpp(
202+
void call() { [[1+1;]] }
199203
)cpp"),
200204
"unavailable");
201205
}

0 commit comments

Comments
 (0)