Skip to content

Commit 27ea714

Browse files
pieterngoldsborough
authored andcommitted
Updates to .clang-format (pytorch#7683)
1) No longer compact namespaces (revert from pytorch#5127) 2) Don't break on return type for long function declarations
1 parent 2f5494a commit 27ea714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.clang-format

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ BreakAfterJavaFieldAnnotations: false
3737
BreakStringLiterals: false
3838
ColumnLimit: 80
3939
CommentPragmas: '^ IWYU pragma:'
40-
CompactNamespaces: true
40+
CompactNamespaces: false
4141
ConstructorInitializerAllOnOneLineOrOnePerLine: true
4242
ConstructorInitializerIndentWidth: 4
4343
ContinuationIndentWidth: 4
@@ -68,7 +68,7 @@ PenaltyBreakComment: 300
6868
PenaltyBreakFirstLessLess: 120
6969
PenaltyBreakString: 1000
7070
PenaltyExcessCharacter: 1000000
71-
PenaltyReturnTypeOnItsOwnLine: 200
71+
PenaltyReturnTypeOnItsOwnLine: 2000000
7272
PointerAlignment: Left
7373
ReflowComments: true
7474
SortIncludes: true

0 commit comments

Comments
 (0)