AUTOSAR CP代码格式化--clang-format 配置,让团队统一格式编码

Clang-format AUTOSAR CP格式化配置

直接上clang-format配置参考

---
Language:        Cpp
# BasedOnStyle:  LLVM
# BasedOnStyles: Google

AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands:   true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASi

猜你喜欢

转载自blog.csdn.net/qq_44992918/article/details/129171001