qulogic/libgnt

Merged in default (pull request #14)

2019-04-05, Gary Kramlich
e53045dbed62
Merged in default (pull request #14)

Add clang format style file.

Approved-by: Gary Kramlich
  • +72 -0
    .clang-format
  • --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/.clang-format Fri Apr 05 23:40:03 2019 +0000
    @@ -0,0 +1,72 @@
    +Language: Cpp
    +AlignAfterOpenBracket: Align
    +AlignConsecutiveAssignments: false
    +AlignConsecutiveDeclarations: false
    +AlignEscapedNewlines: DontAlign
    +AlignOperands: true
    +AlignTrailingComments: true
    +AllowAllParametersOfDeclarationOnNextLine: false
    +AllowShortBlocksOnASingleLine: false
    +AllowShortCaseLabelsOnASingleLine: false
    +AllowShortFunctionsOnASingleLine: InlineOnly
    +AllowShortIfStatementsOnASingleLine: false
    +AllowShortLoopsOnASingleLine: false
    +AlwaysBreakAfterReturnType: TopLevelDefinitions
    +AlwaysBreakBeforeMultilineStrings: false
    +BinPackArguments: true
    +BinPackParameters: true
    +BraceWrapping:
    + AfterClass: false
    + AfterControlStatement: false
    + AfterEnum: true
    + AfterFunction: true
    + AfterStruct: true
    + AfterUnion: true
    + AfterExternBlock: false
    + BeforeCatch: false
    + BeforeElse: false
    + IndentBraces: false
    + SplitEmptyFunction: true
    + SplitEmptyRecord: true
    +BreakBeforeBinaryOperators: None
    +BreakBeforeBraces: Custom
    +BreakBeforeTernaryOperators: true
    +BreakStringLiterals: true
    +ColumnLimit: 80
    +ContinuationIndentWidth: 8
    +DerivePointerAlignment: false
    +ExperimentalAutoDetectBinPacking: false
    +IncludeBlocks: Preserve
    +IncludeCategories:
    + - Regex: '^"gntinternal.h"$'
    + Priority: -1
    + - Regex: '.*'
    + Priority: 1
    +IndentCaseLabels: true
    +IndentPPDirectives: None
    +IndentWidth: 8
    +IndentWrappedFunctionNames: false
    +KeepEmptyLinesAtTheStartOfBlocks: true
    +MacroBlockBegin: '^G_STMT_START$'
    +MacroBlockEnd: '^G_STMT_END$'
    +MaxEmptyLinesToKeep: 1
    +PenaltyBreakAssignment: 2
    +PenaltyBreakBeforeFirstCallParameter: 19
    +PenaltyBreakComment: 300
    +PenaltyBreakString: 1000
    +PenaltyExcessCharacter: 1000000
    +PenaltyReturnTypeOnItsOwnLine: 200
    +PointerAlignment: Right
    +ReflowComments: true
    +SortIncludes: true
    +SpaceAfterCStyleCast: false
    +SpaceBeforeAssignmentOperators: true
    +SpaceBeforeParens: ControlStatements
    +SpaceInEmptyParentheses: false
    +SpacesBeforeTrailingComments: 1
    +SpacesInCStyleCastParentheses: false
    +SpacesInParentheses: false
    +SpacesInSquareBrackets: false
    +Standard: Cpp11
    +TabWidth: 8
    +UseTab: ForIndentation