42 lines
939 B
YAML
42 lines
939 B
YAML
---
|
|
# Indentation for all files
|
|
ColumnLimit: 120
|
|
IndentWidth: 4
|
|
TabWidth: 4
|
|
UseTab: Never
|
|
|
|
# C++ Options
|
|
Language: Cpp
|
|
Standard: c++17
|
|
|
|
BasedOnStyle: Google
|
|
|
|
IncludeBlocks: Preserve
|
|
|
|
AccessModifierOffset: -4
|
|
ContinuationIndentWidth: 4
|
|
|
|
# Constructor initializers better formatted in presence of preprocessor conditions (see image.cpp)
|
|
BreakConstructorInitializers: AfterColon
|
|
AllowAllConstructorInitializersOnNextLine: true
|
|
|
|
# break braces for most of the cases (except conditionals and loops)
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterStruct: true
|
|
AfterClass: true
|
|
AfterFunction: true
|
|
AfterControlStatement: false
|
|
AfterEnum: true
|
|
AfterNamespace: true
|
|
|
|
# Do not allow SingleLine statements (to improve coverage statistics)
|
|
AllowShortFunctionsOnASingleLine: None
|
|
AllowShortBlocksOnASingleLine: false
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AllowShortLoopsOnASingleLine: false
|
|
|
|
Cpp11BracedListStyle: true
|
|
|
|
...
|