[clang] [clang-format] Separate License text and include blocks (PR #77918)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 20 08:40:05 PST 2024
================
@@ -2459,6 +2459,52 @@ struct FormatStyle {
/// \version 12
EmptyLineBeforeAccessModifierStyle EmptyLineBeforeAccessModifier;
+ /// \brief Number of lines after includes.
+ /// If set, determines the number of lines to insert after includes.
+ /// Limited by MaxEmptyLinesToKeep.
+ /// Example:
+ /// EmptyLinesAfterIncludes = 1
+ /// \code
+ /// #include <string>
+ /// #include <map>
+ ///
+ /// class Test {};
+ ///
+ /// \endcode
+ /// vs EmptyLinesAfterIncludes = 2
+ /// \code
+ /// #include <string>
+ /// #include <map>
+ ///
+ ///
+ /// class Test {};
+ /// \endcode
+ /// \version 1
----------------
seranu wrote:
Somehow thought this was the version of the option.
https://github.com/llvm/llvm-project/pull/77918
More information about the cfe-commits
mailing list