Clang-Format 个人常用配置


Clang-Format 个人常用配置

本文记录 Clang-Format 个人常用配置。

欲了解更多配置选项,可查阅 官方文档。

BasedOnStyle: Google
AccessModifierOffset: -2
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
ColumnLimit: 120
Cpp11BracedListStyle: false
DerivePointerAlignment: false
IndentWidth: 4

转载请注明出处。原文地址:

相关