Skip to content

Commit

Permalink
DOC: clang-format of code samples and other minted changes
Browse files Browse the repository at this point in the history
DOC: Use copy of .clang_format from ITK/Examples
  • Loading branch information
Leengit committed Mar 9, 2022
1 parent cc3bbfc commit dd10e33
Show file tree
Hide file tree
Showing 9 changed files with 402 additions and 333 deletions.
10 changes: 5 additions & 5 deletions .clang-format
Expand Up @@ -21,7 +21,7 @@ AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Left
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
# clang 9.0 AllowAllArgumentsOnNextLine: true
Expand Down Expand Up @@ -71,8 +71,8 @@ BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
## The following line allows larger lines in non-documentation code
ColumnLimit: 120
## The following line uses shorter lines in documentation code
ColumnLimit: 78
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
Expand Down Expand Up @@ -114,8 +114,8 @@ ObjCSpaceBeforeProtocolList: false
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
## The following line allows larger lines in non-documentation code
PenaltyBreakFirstLessLess: 120
## The following line uses shorter lines in documentation code
PenaltyBreakFirstLessLess: 88
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
Expand Down

0 comments on commit dd10e33

Please sign in to comment.