[clang-tools-extra] 4c91b49 - [clangd] Fix the build broken (NFC)
Jie Fu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 24 23:52:50 PDT 2024
Author: Jie Fu
Date: 2024-06-25T14:51:57+08:00
New Revision: 4c91b49bab0728d4bc136aa33c4aeb4e8ea37d01
URL: https://github.com/llvm/llvm-project/commit/4c91b49bab0728d4bc136aa33c4aeb4e8ea37d01
DIFF: https://github.com/llvm/llvm-project/commit/4c91b49bab0728d4bc136aa33c4aeb4e8ea37d01.diff
LOG: [clangd] Fix the build broken (NFC)
/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 'clang::format::FormatStyle'
Style.KeepEmptyLinesAtTheStartOfBlocks = true;
~~~~~ ^
1 error generated.
Added:
Modified:
clang-tools-extra/clangd/Format.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Format.cpp b/clang-tools-extra/clangd/Format.cpp
index 272a34d4ed797..fc56a1c8c5030 100644
--- a/clang-tools-extra/clangd/Format.cpp
+++ b/clang-tools-extra/clangd/Format.cpp
@@ -281,7 +281,7 @@ formatIncremental(llvm::StringRef OriginalCode, unsigned OriginalCursor,
// Never *remove* lines in response to pressing enter! This annoys users.
if (InsertedText == "\n") {
Style.MaxEmptyLinesToKeep = 1000;
- Style.KeepEmptyLinesAtTheStartOfBlocks = true;
+ Style.KeepEmptyLines.AtStartOfBlock = true;
}
// Compute the code we want to format:
More information about the cfe-commits
mailing list