Skip to content

Commit

Permalink
Added docs for EmptyLineAfterFunctionDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Nov 22, 2021
1 parent 07ef031 commit a0e885e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions clang/docs/ClangFormatStyleOptions.rst
Expand Up @@ -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
Expand Down

0 comments on commit a0e885e

Please sign in to comment.