llvm / llvm/llvm-project

clang-format : Specify number of empty lines

Open
#204,348 7 comments 0 reactions 0 assignees View on GitHub
clang-format
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

The options

- `EmptyLineAfterAccessModifier`
- `EmptyLineBeforeAccessModifier`
- `WrapNamespaceBodyWithEmptyLines`

can be set to `Leave`, `Never`, `Always`

I think it would be better to set them to an integer instead to choose the number of empty lines (`-1` instead of `Leave`, `0` instead of `Never`, `1` instead of `Always`, and any positive number `N` if the user wants that many empty lines)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.