Skip to content

Commit

Permalink
Updates to .clang-format (pytorch#7683)
Browse files Browse the repository at this point in the history
1) No longer compact namespaces (revert from pytorch#5127)
2) Don't break on return type for long function declarations
  • Loading branch information
pietern authored and goldsborough committed May 18, 2018
1 parent 2f5494a commit 27ea714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: false
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: true
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Expand Down Expand Up @@ -68,7 +68,7 @@ PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PenaltyReturnTypeOnItsOwnLine: 2000000
PointerAlignment: Left
ReflowComments: true
SortIncludes: true
Expand Down

0 comments on commit 27ea714

Please sign in to comment.