diff options
author | Konrad Kleine <kkleine@redhat.com> | 2021-11-22 20:30:31 +0000 |
---|---|---|
committer | Konrad Kleine <kkleine@redhat.com> | 2021-11-22 20:30:31 +0000 |
commit | a0e885ea1b01efb5db5479ab8f83217c6085bf66 (patch) | |
tree | 4a40fe3eea8fbd8af229ebc21c7fd550aae9dada | |
parent | 07ef031d4abb6d1a277abf7549329ca9be7cf8c6 (diff) | |
download | llvm-EmptyLineAfterFunctionDefinition.tar.gz |
Added docs for EmptyLineAfterFunctionDefinitionEmptyLineAfterFunctionDefinition
-rw-r--r-- | clang/docs/ClangFormatStyleOptions.rst | 21 |
1 files changed, 21 insertions, 0 deletions
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 |