0

I'm trying to use clang-format to format some source code (since it seems to be the only one that has the formatting options I need) but it seems to act like it is only running its rules if I go past the specified column limit.

I tried setting my column limit to 0, but that seems to produce wildly different formatting than a reasonable limit would produce. And even then, it doesn't always format some lines.

4

1 に答える 1

1

clang-format は、列制限に違反している行だけでなく、常にファイルのすべての行で実行されます。それが行われていないことがわかった場合は、何か他の問題があるに違いありません。

ColumnLimit:0 は実際にはまったく異なることを行います ( http://clang.llvm.org/docs/ClangFormatStyleOptions.htmlを参照)

于 2015-11-03T17:36:32.193 に答える