Skip to content

Commit c49f010

Browse files
committed
Set KeepFormFeed to true for GNU style and update the release notes
1 parent 3fc08e4 commit c49f010

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ clang-format
705705
multi-line comments without touching their contents, renames ``false`` to
706706
``Never``, and ``true`` to ``Always``.
707707
- Adds ``RemoveEmptyLinesInUnwrappedLines`` option.
708-
- Adds ``KeepFormFeed`` option.
708+
- Adds ``KeepFormFeed`` option and set it to ``true`` for ``GNU`` style.
709709

710710
libclang
711711
--------

clang/lib/Format/Format.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,7 @@ FormatStyle getGNUStyle() {
19291929
Style.ColumnLimit = 79;
19301930
Style.Cpp11BracedListStyle = false;
19311931
Style.FixNamespaceComments = false;
1932+
Style.KeepFormFeed = true;
19321933
Style.SpaceBeforeParens = FormatStyle::SBPO_Always;
19331934
return Style;
19341935
}

0 commit comments

Comments
 (0)