Keep empty else blocks on the same line as the else in clang format (and the same for if) but wrap braces after if and else for non empty blocks

后端 未结 0 704
温柔的废话
温柔的废话 2021-01-12 06:38

I\'m trying to achieve the following clang formatings for if and else blocks:

1.For empty blocks, i\'d like to keep them (single lined) on the same line as the end of

相关标签:
回答
  • 消灭零回复
提交回复
热议问题