1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 07:57:47 +00:00

Meta: Switch to clang-format-16 as the standard formatter

This includes a few new options to the .clang-format configuration file
to A) adhere to option changes within clang-format 16 (namely the option
AlignTrailingComments), and B) enforce existing style guide rules with
new clang-format rules.
This commit is contained in:
Timothy Flynn 2023-07-07 20:21:41 -04:00 committed by Linus Groh
parent 1e733b1cf4
commit 388d455575
12 changed files with 31 additions and 26 deletions

View file

@ -1,7 +1,9 @@
---
Language: Cpp
AlignEscapedNewlines: Left
AlignTrailingComments: true
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
BasedOnStyle: WebKit
BraceWrapping:
AfterFunction: true
@ -10,7 +12,10 @@ BreakBeforeInheritanceComma: true
BreakConstructorInitializers: BeforeComma
IndentPPDirectives: AfterHash
IndentRequiresClause: false
InsertNewlineAtEOF: true
LineEnding: LF
NamespaceIndentation: None
QualifierAlignment: Right
RequiresClausePosition: WithFollowing
RequiresExpressionIndentation: OuterScope
SpaceAfterTemplateKeyword: false