openspades/.clang-format
yvt c37a013157 clang-format AngleScript source files
Unsurprisingly it doesn't support AngelScript, so the Java language mode
is used instead. The overall result seems good, but there's one problem:
Long statements starting with `@something = ` (object handle assignment)
are broken after the `@`. To work-around this, I had to set
`ColumnLimit` to `100`.
2019-07-13 23:45:47 +09:00

33 lines
683 B
YAML

---
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
TabWidth: 4
ContinuationIndentWidth: 2
UseTab: ForIndentation
ColumnLimit: 100
AccessModifierOffset: -4
NamespaceIndentation: All
IndentCaseLabels: true
SpaceBeforeParens: ControlStatements
PointerAlignment: Right
AllowShortFunctionsOnASingleLine: Inline
AllowShortCaseLabelsOnASingleLine: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
---
# The style for AngelScript source files
Language: Java
UseTab: Never
ColumnLimit: 100
NamespaceIndentation: All
IndentCaseLabels: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortCaseLabelsOnASingleLine: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true