Skip to content

Instantly share code, notes, and snippets.

View alebastr's full-sized avatar

Aleksei Bavshin alebastr

  • Sunnyvale, CA
  • 19:30 (UTC -07:00)
View GitHub Profile
@YodaEmbedding
YodaEmbedding / .clang-format
Last active July 18, 2024 17:20
.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