llvm-project
llvm-project copied to clipboard
Make Definition Block Spacing Configurable
As it currently exists, the SeparateDefinitionBlocks
option only allows for no spacing (SDS_Never), or exactly one space (SDS_Always). The amount of space should be configurable, especially as some organizations require two spaces between blocks as part of their formatting style.
In the ideal case, an option such as DefinitionBlockSpacing
would be added to allow users to set a custom amount of space between definition blocks. For example,
SeparateDefinitionBlocks: Always
DefinitionBlockSpacing: 2
Would result in two lines being used to separate definition blocks.
@llvm/issue-subscribers-clang-format
Update: I've implemented this feature here. I'll be submitting this patch for review.
Update: Patch submitted for review: https://reviews.llvm.org/D132256