HomePhabricator

[clang-format] PR48594 BraceWrapping: SplitEmptyRecord ignored for templates

Authored by MyDeveloperDay on Jan 17 2021, 3:13 AM.

Description

[clang-format] PR48594 BraceWrapping: SplitEmptyRecord ignored for templates

https://bugs.llvm.org/show_bug.cgi?id=48594

Empty or small templates were not being treated the same way as small classes especially when SplitEmptyRecord was set to true

This revision aims to help this by identifying a case when we should try not to merge the lines together

Reviewed By: curdeius, JohelEGP

Differential Revision: https://reviews.llvm.org/D93839