Skip to content

Commit dd10e33

Browse files
committed
DOC: clang-format of code samples and other minted changes
DOC: Use copy of .clang_format from ITK/Examples
1 parent cc3bbfc commit dd10e33

File tree

9 files changed

+402
-333
lines changed

9 files changed

+402
-333
lines changed

.clang-format

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ AccessModifierOffset: -2
2121
AlignAfterOpenBracket: Align
2222
AlignConsecutiveAssignments: false
2323
AlignConsecutiveDeclarations: true
24-
AlignEscapedNewlines: Left
24+
AlignEscapedNewlines: Right
2525
AlignOperands: true
2626
AlignTrailingComments: true
2727
# clang 9.0 AllowAllArgumentsOnNextLine: true
@@ -71,8 +71,8 @@ BreakBeforeTernaryOperators: true
7171
BreakConstructorInitializers: BeforeComma
7272
BreakAfterJavaFieldAnnotations: false
7373
BreakStringLiterals: true
74-
## The following line allows larger lines in non-documentation code
75-
ColumnLimit: 120
74+
## The following line uses shorter lines in documentation code
75+
ColumnLimit: 78
7676
CommentPragmas: '^ IWYU pragma:'
7777
CompactNamespaces: false
7878
ConstructorInitializerAllOnOneLineOrOnePerLine: false
@@ -114,8 +114,8 @@ ObjCSpaceBeforeProtocolList: false
114114
PenaltyBreakAssignment: 2
115115
PenaltyBreakBeforeFirstCallParameter: 19
116116
PenaltyBreakComment: 300
117-
## The following line allows larger lines in non-documentation code
118-
PenaltyBreakFirstLessLess: 120
117+
## The following line uses shorter lines in documentation code
118+
PenaltyBreakFirstLessLess: 88
119119
PenaltyBreakString: 1000
120120
PenaltyBreakTemplateDeclaration: 10
121121
PenaltyExcessCharacter: 1000000

0 commit comments

Comments
 (0)