[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.
This commit is contained in:
Jie Fu
2024-06-25 14:51:57 +08:00
parent 41f8e6d3ea
commit 4c91b49bab

View File

@@ -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: