clang-format:始终强制参数和参数为one-line-each

时间:2015-04-07 04:07:59

标签: clang-format

有没有办法总是强制参数和参数到一行?

例如,这个:

if(value != "course" || value != "module" || value != "lesson")

应该是这样的:

if(value != "course" ||
   value != "module" ||
   value != "lesson")

或者这个:

if(value != "course"
|| value != "module"
|| value != "lesson")

而且:

void some_class::some_func(const std:string s, const std::string t)

应该是这样的:

void some_class::some_func(const std:string s,
                           const std::string t)

或者这个:

void some_class::some_func(const std:string s
                           , const std::string t)

My .clang-format.

0 个答案:

没有答案