AUTOSAR CP code formatting --clang-format configuration, let the team code in a unified format

Clang-format AUTOSAR CP format configuration

Go directly to clang-format configuration reference

---
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

Guess you like

Origin blog.csdn.net/qq_44992918/article/details/129171001