Skip to content

Instantly share code, notes, and snippets.

View bigbrett's full-sized avatar

Brett Nicholas bigbrett

View GitHub Profile
@bigbrett
bigbrett / .clang-format
Created June 27, 2024 20:20 — forked from YodaEmbedding/.clang-format
.clang-format for Rust style (rustfmt)
AccessModifierOffset: -2
AlignAfterOpenBracket: BlockIndent # New in v14. For earlier clang-format versions, use AlwaysBreak instead.
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: DontAlign
AlignOperands: false
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false