[clang] b69ac31 - [clang-format] Use RemoveEmptyLinesInUnwrappedLines in clang-format s… (#113260)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 18:37:46 PDT 2024


Author: Owen Pan
Date: 2024-10-22T18:37:43-07:00
New Revision: b69ac31a3b858f6a77744adfa31ad53edecbdb7e

URL: https://github.com/llvm/llvm-project/commit/b69ac31a3b858f6a77744adfa31ad53edecbdb7e
DIFF: https://github.com/llvm/llvm-project/commit/b69ac31a3b858f6a77744adfa31ad53edecbdb7e.diff

LOG: [clang-format] Use RemoveEmptyLinesInUnwrappedLines in clang-format s… (#113260)

…tyle

Added: 
    

Modified: 
    clang/lib/Format/Format.cpp

Removed: 
    


################################################################################
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;


        


More information about the cfe-commits mailing list