• Adam Procter's avatar
    clang-format comments: /src/ngraph/op/util (#3498) · 85c1b19e
    Adam Procter authored
    * New clang-format rules for src/ngraph/op/util
    
    * Restore root .clang-format
    
    * Remove redundant .clang-formats
    
    * Revert "Remove redundant .clang-formats"
    
    This reverts commit e158df1e507570b55348ce326fd7e8b4ae819f36.
    
    * Remove redundant .clang-formats
    85c1b19e
.clang-format 1.1 KB
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
Language: Cpp
Standard: Cpp11

AccessModifierOffset: -4

AlignConsecutiveDeclarations: false
AlignConsecutiveAssignments: false
AlignTrailingComments: true

AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline

AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true

BinPackArguments: false
BinPackParameters: false

BreakBeforeBraces: Allman
BreakConstructorInitializersBeforeComma: true

ColumnLimit: 100

IndentCaseLabels: false
IndentWrappedFunctionNames: true

KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All

PointerAlignment: Left
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false

SortIncludes: false
ReflowComments: true

IncludeCategories:
  - Regex:           '^".*'
    Priority:        3
  - Regex:           '^<.*'
    Priority:        2
SortIncludes: true