clang-format -style=file -i <file>2017年12月09日 14時16分49秒

clang でコーディング規約は、.clang-format ファイルを作る。
% clang-format -style=file -i <ファイル名>
でファイルを更新。

規定のスタイルには、LLVM、Google、Chromium、Mozilla、WebKit が準備されている。

前回