如何用长格式换行?

时间:2019-03-03 21:22:31

标签: clang-format

__QHASH_IMPL(32, static qh_inline klib_unused, qhint32_t, char, 1, qh_int_hash_func, qh_int_hash_equal)

我有上面的输入。以下clang-format命令将其格式化为以下格式。

__QHASH_IMPL(32, static qh_inline klib_unused, qhint32_t, char, 1,
                         qh_int_hash_func, qh_int_hash_equal)
$ clang-format -style='{ IndentWidth: 2, TabWidth: 2, UseTab: Always, SpaceBeforeParens: Never, AlignEscapedNewlines: Left, IndentCaseLabels: true, AllowShortFunctionsOnASingleLine: None }'

是否有办法始终将其保持在一行中?谢谢。

0 个答案:

没有答案