clang-format: force arguments and parameters to one-line-each if the statement overflows

前端 未结 1 449
我在风中等你
我在风中等你 2020-12-11 01:14

Is there a way to force arguments and parameters to one-line-each if a single or more character go past the overflow?

For example:

For example, this:

相关标签:
1条回答
  • 2020-12-11 02:10

    Set:

    BinPackArguments: false
    BinPackParameters: false
    

    And make sure

    ExperimentalAutoDetectBinPacking: false
    AllowAllParametersOfDeclarationOnNextLine: false
    

    Or not defined.

    0 讨论(0)
提交回复
热议问题