Skip to content

Conversation

@owenca
Copy link
Contributor

@owenca owenca commented Oct 22, 2024

…tyle

@llvmbot
Copy link
Member

llvmbot commented Oct 22, 2024

@llvm/pr-subscribers-clang-format

Author: Owen Pan (owenca)

Changes

…tyle


Full diff: https://github.com/llvm/llvm-project/pull/113260.diff

1 Files Affected:

  • (modified) clang/lib/Format/Format.cpp (+1)
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;

@owenca owenca merged commit b69ac31 into llvm:main Oct 23, 2024
6 checks passed
@owenca owenca deleted the RemoveEmptyLines branch October 23, 2024 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants