Update .clang-format with more rules

This commit is contained in:
Sam Ellicott 2021-03-13 13:58:17 -05:00
parent b28c4d2c40
commit 472615bbf7

View file

@ -1,3 +1,4 @@
# Basic style rules by Charles Lohr
BasedOnStyle: Microsoft
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: 'Yes'
@ -22,3 +23,15 @@ TabWidth: '4'
UseTab: Always
FixNamespaceComments: 'true'
IndentCaseLabels: 'true'
# Additions by Sam Ellicott
ColumnLimit: 100
AlignConsecutiveAssignments: true
AlignConsecutiveMacros: true
AlignTrailingComments: true
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AllowShortBlocksOnASingleLine: Always
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortCaseLabelsOnASingleLine: true
AllowShortLoopsOnASingleLine: true