[clang-tools-extra] [clangd] Consider expression statements in ExtractVariable tweak (PR #112525)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 10 00:18:35 PST 2024


================
@@ -152,7 +152,7 @@ TEST_F(ExtractVariableTest, Test) {
       a = [[b]];
       a = [[xyz()]];
       // statement expression
-      [[xyz()]];
+      [[v()]];
----------------
HighCommander4 wrote:

please update the comment above to "expression statement of type void"

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


More information about the cfe-commits mailing list