mirror of
https://github.com/HomeworldSDL/HomeworldSDL.git
synced 2025-12-01 12:00:02 +00:00
tooling: clangd: Tweak formatting rules
This commit is contained in:
@ -3,4 +3,14 @@ Language: Cpp
|
|||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
ColumnLimit: 120
|
ColumnLimit: 120
|
||||||
|
# Match existing style in codebase
|
||||||
|
AlignConsecutiveMacros: true
|
||||||
|
# Match existing style in codebase
|
||||||
|
IndentCaseLabels: true
|
||||||
|
# The pointer is part of the type, not of the variable name. Keep it tacked onto to the type
|
||||||
|
PointerAlignment: Left
|
||||||
|
# More consistent when qualifying pointers (int const* const)
|
||||||
|
QualifierAlignment: Right
|
||||||
|
# Make ambiguous if continuation less likely (easier to see when it's all on a single line. If it's too long, it probably shouldn't be a one-liner anyway)
|
||||||
|
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user