Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
harfbuzz/.clang-format
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (36 sloc)
1.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following tries to match the current code style, is imperfect for now | |
# but good for new codes be added | |
IndentWidth: 2 | |
TabWidth: 8 | |
UseTab: Always | |
SpaceBeforeParens: Always | |
AllowShortLoopsOnASingleLine: true | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
AfterEnum: true | |
AfterStruct: false | |
SplitEmptyFunction: false | |
AfterClass: true | |
AfterControlStatement: true | |
AfterEnum: false | |
AfterFunction: true | |
AfterNamespace: false | |
AfterStruct: true | |
AfterUnion: true | |
BeforeElse: true | |
AlwaysBreakTemplateDeclarations: true | |
AlignTrailingComments: true | |
AlignEscapedNewlines: Left | |
AllowShortBlocksOnASingleLine: true | |
SpaceAfterCStyleCast: true | |
AlwaysBreakAfterDefinitionReturnType: TopLevel | |
BinPackParameters: false | |
AllowShortFunctionsOnASingleLine: Inline | |
AccessModifierOffset: 0 | |
AlignTrailingComments: true | |
AllowShortIfStatementsOnASingleLine: true | |
AlignAfterOpenBracket: Align | |
AlignOperands: true | |
AllowShortCaseLabelsOnASingleLine: true | |
# We like to have this only for function parameters and structs fields, not always | |
# AlignConsecutiveDeclarations: true |