[clang-tools-extra] c69ea04 - Revert "[clangd] Fix the build broken (NFC)"
Jie Fu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 25 06:31:40 PDT 2024
Author: Jie Fu
Date: 2024-06-25T21:30:02+08:00
New Revision: c69ea04fb9738db283263eb350669e00b77ee4fd
URL: https://github.com/llvm/llvm-project/commit/c69ea04fb9738db283263eb350669e00b77ee4fd
DIFF: https://github.com/llvm/llvm-project/commit/c69ea04fb9738db283263eb350669e00b77ee4fd.diff
LOG: Revert "[clangd] Fix the build broken (NFC)"
This reverts commit 4c91b49bab0728d4bc136aa33c4aeb4e8ea37d01 after 70cfece24d6cbb57e35dd961cc97eb2a6bf1e387.
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 fc56a1c8c5030..272a34d4ed797 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.KeepEmptyLines.AtStartOfBlock = true;
+ Style.KeepEmptyLinesAtTheStartOfBlocks = true;
}
// Compute the code we want to format:
More information about the cfe-commits
mailing list