Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42e4045

Browse files
authored
[clang-format][doc] Add GNU style link in KeepFormFeed option (llvm#176654)
It was not clear from the description what this option does. Added small example to demostrate its behavior.
1 parent ec059d8 commit 42e4045

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5015,7 +5015,8 @@ the configuration (without a prefix: ``Auto``).
50155015
Keep the form feed character if it's immediately preceded and followed by
50165016
a newline. Multiple form feeds and newlines within a whitespace range are
50175017
replaced with a single newline and form feed followed by the remaining
5018-
newlines.
5018+
newlines. (See
5019+
www.gnu.org/prep/standards/html_node/Formatting.html#:~:text=formfeed.)
50195020

50205021
.. _LambdaBodyIndentation:
50215022

clang/include/clang/Format/Format.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3520,7 +3520,8 @@ struct FormatStyle {
35203520
/// Keep the form feed character if it's immediately preceded and followed by
35213521
/// a newline. Multiple form feeds and newlines within a whitespace range are
35223522
/// replaced with a single newline and form feed followed by the remaining
3523-
/// newlines.
3523+
/// newlines. (See
3524+
/// www.gnu.org/prep/standards/html_node/Formatting.html#:~:text=formfeed.)
35243525
/// \version 20
35253526
bool KeepFormFeed;
35263527

0 commit comments

Comments
 (0)