[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 22:21:50 PDT 2024
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/88352
>From a070f07c16ddacc1aaf7591a1f7c129bf6abc90a 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 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/clang-tools-extra/clangd/unittests/HoverTests.cpp b/clang-tools-extra/clangd/unittests/HoverTests.cpp
index 35db757b9c15b5..5ead74748f550c 100644
--- a/clang-tools-extra/clangd/unittests/HoverTests.cpp
+++ b/clang-tools-extra/clangd/unittests/HoverTests.cpp
@@ -1983,10 +1983,14 @@ TEST(Hover, All) {
HI.Kind = index::SymbolKind::Macro;
HI.Definition =
R"cpp(#define MACRO \
- { return 0; }
+ { \
+ return 0; \
+ }
// Expands to
-{ return 0; })cpp";
+{
+ return 0;
+})cpp";
}},
{
R"cpp(// Forward class declaration
More information about the cfe-commits
mailing list