[clang] [clang-format] Respect definition separators when MaxEmptyLinesToKeep: 0 (PR #206406)

via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 2 17:22:30 PDT 2026


gautamnsankar wrote:

I made the suggested changes. The reason why I moved DefinitionBlockSeparator to run after Formatter in `Format.cpp` was because originally, DefinitionBlockSeparator produced the right amount of newlines, but Formatter undid the changes made previously.

Thanks.

https://github.com/llvm/llvm-project/pull/206406


More information about the cfe-commits mailing list