[clang-format] Style to separate definition blocks
authorksyx <18738953+ksyx@users.noreply.github.com>
Tue, 28 Dec 2021 15:01:26 +0000 (10:01 -0500)
committerksyx <18738953+ksyx@users.noreply.github.com>
Mon, 3 Jan 2022 20:47:39 +0000 (15:47 -0500)
commit6f6f88ffdae1e12e5f950ef418827a77a55c09c7
tree0f1eb44f31242df9fdd124b6fb65624ad59384ed
parentcfe3180742adfc72ad6f5de55cbfc84befb90c97
[clang-format] Style to separate definition blocks

This commit resolves GitHub issue #45895 (Bugzilla #46550), to
add or remove empty line between definition blocks including
namespaces, classes, structs, enums and functions.

Reviewed By: MyDeveloperDay, curdeius, HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D116314
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/CMakeLists.txt
clang/lib/Format/DefinitionBlockSeparator.cpp [new file with mode: 0644]
clang/lib/Format/DefinitionBlockSeparator.h [new file with mode: 0644]
clang/lib/Format/Format.cpp
clang/lib/Format/WhitespaceManager.cpp
clang/lib/Format/WhitespaceManager.h
clang/unittests/Format/CMakeLists.txt
clang/unittests/Format/DefinitionBlockSeparatorTest.cpp [new file with mode: 0644]