[clang-tools-extra] [clangd] Fix test case due to clang-format bug fix (PR #88352)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 10 21:37:12 PDT 2024


https://github.com/owenca created https://github.com/llvm/llvm-project/pull/88352

See commit 51f1681424f1.

>From 3ecf27d15646345f43703f5a361bd9766307ebf4 Mon Sep 17 00:00:00 2001
From: Owen Pan <owenpiano at gmail.com>
Date: Wed, 10 Apr 2024 21:22:05 -0700
Subject: [PATCH] [clangd] Fix test case due to clang-format bug fix

See commit 51f1681424f1.
---
 clang-tools-extra/clangd/unittests/HoverTests.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/clang-tools-extra/clangd/unittests/HoverTests.cpp b/clang-tools-extra/clangd/unittests/HoverTests.cpp
index 35db757b9c15b5..45266959802832 100644
--- a/clang-tools-extra/clangd/unittests/HoverTests.cpp
+++ b/clang-tools-extra/clangd/unittests/HoverTests.cpp
@@ -1986,7 +1986,9 @@ TEST(Hover, All) {
   { return 0; }
 
 // Expands to
-{ return 0; })cpp";
+  {                                                                            \
+    return 0;                                                                  \
+  })cpp";
           }},
       {
           R"cpp(// Forward class declaration



More information about the cfe-commits mailing list