view .clang-format @ 413:192da585a0a8 default tip

*: fix formatting the clang-format file was broken andjust using LLVM defaults. now it's fixed and is more in line with what I actually prefer my code to look like -- esp. with regards to tabulators
author Paper <paper@tflc.us>
date Sat, 25 Jul 2026 14:54:32 -0400
parents 963047512d34
children
line wrap: on
line source

---
Language: Cpp
Standard: c++17
BasedOnStyle: LLVM
UseTab: ForContinuationAndIndentation
PointerAlignment: Right
ColumnLimit: 120
IndentWidth: 4
TabWidth: 4
PPIndentWidth: 1

# hack!!!
AccessModifierOffset: -4

IndentCaseLabels: false
IndentAccessModifiers: false
IndentPPDirectives: AfterHash

BreakBeforeBraces: WebKit
BreakStringLiterals: true

AlwaysBreakTemplateDeclarations: true

SpaceAfterTemplateKeyword: false

AlignAfterOpenBracket: false
ContinuationIndentWidth: 4

AlignArrayOfStructures: Left
AlignEscapedNewlines: DontAlign
AlignConsecutiveMacros: true

AllowShortIfStatementsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortCaseLabelsOnASingleLine: false

Cpp11BracedListStyle: true