[clang] [clang-format] Add option to remove leading blank lines (PR #91221)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 10 03:47:29 PDT 2024


================
@@ -208,6 +208,9 @@ RawStringFormatStyleManager::RawStringFormatStyleManager(
       LanguageStyle = PredefinedStyle;
     }
     LanguageStyle->ColumnLimit = CodeStyle.ColumnLimit;
+    // This way the first line of the string does not have to follow the code
+    // before the string.
+    LanguageStyle->KeepEmptyLines.AtStartOfFile = true;
----------------
HazardyKnusperkeks wrote:

Why exactly is this necessary?

https://github.com/llvm/llvm-project/pull/91221


More information about the cfe-commits mailing list