Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[format] Ensure proper ending of the last line #3913

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,41 @@
BasedOnStyle: LLVM
---
Language: Cpp
IndentWidth: 4
IndentExternBlock: NoIndent
BreakBeforeBraces: Custom
BinPackArguments: false
BinPackParameters: false
Standard: Cpp11

AccessModifierOffset: -4
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
PenaltyReturnTypeOnItsOwnLine: 120
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterExternBlock: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
AccessModifierOffset: -4
BreakBeforeBraces: Custom
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: true
Standard: Cpp11
DerivePointerAlignment: false
IndentExternBlock: NoIndent
IndentWidth: 4
InsertNewlineAtEOF: true
PenaltyReturnTypeOnItsOwnLine: 120
PointerAlignment: Left
AlwaysBreakTemplateDeclarations: true
ColumnLimit: 120
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
---
Language: Proto
DisableFormat: true
Expand Down
Loading