[clang] [clang-format] Use RemoveEmptyLinesInUnwrappedLines in clang-format s… (PR #113260)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 21 20:36:49 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-format
Author: Owen Pan (owenca)
<details>
<summary>Changes</summary>
…tyle
---
Full diff: https://github.com/llvm/llvm-project/pull/113260.diff
1 Files Affected:
- (modified) clang/lib/Format/Format.cpp (+1)
``````````diff
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c612960ff37ac8..f85fe440f50a61 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1968,6 +1968,7 @@ FormatStyle getClangFormatStyle() {
Style.IntegerLiteralSeparator.DecimalMinDigits = 5;
Style.LineEnding = FormatStyle::LE_LF;
Style.RemoveBracesLLVM = true;
+ Style.RemoveEmptyLinesInUnwrappedLines = true;
Style.RemoveParentheses = FormatStyle::RPS_ReturnStatement;
Style.RemoveSemicolon = true;
return Style;
``````````
</details>
https://github.com/llvm/llvm-project/pull/113260
More information about the cfe-commits
mailing list