From a0e885ea1b01efb5db5479ab8f83217c6085bf66 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Mon, 22 Nov 2021 20:30:31 +0000 Subject: Added docs for EmptyLineAfterFunctionDefinition --- clang/docs/ClangFormatStyleOptions.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 0c43429fda03..f5e635114d71 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -2310,6 +2310,27 @@ the configuration (without a prefix: ``Auto``). }; +**EmptyLineAfterFunctionDefinition** (``EmptyLineAfterFunctionDefinitionStyle``) :versionbadge:`clang-format 14` + Defines when to put an empty line after a function definition. + + Possible values: + + * ``ELAFDS_Leave`` (in configuration: ``Leave``) + Keep existing empty lines after function definition. + MaxEmptyLinesToKeep is applied instead. + + * ``ELAFDS_Always`` (in configuration: ``Always``) + Always add empty line after function definition if there are none. + MaxEmptyLinesToKeep is applied also. + + .. code-block:: c++ + + void one() {} + + void two() {} + + void three() {} + **ExperimentalAutoDetectBinPacking** (``Boolean``) :versionbadge:`clang-format 3.7` If ``true``, clang-format detects whether function calls and -- cgit v1.2.1