Skip to content

Commit

Permalink
Fix comment reflow not being idempotent
Browse files Browse the repository at this point in the history
Comment reflow is desirable but it is not idempotent in clang-format 16
when there are tabs in the comments. To fix we temporarily set
PenaltyCommentBreak to 500. When clang-format is fixed we may eliminate
this setting.
  • Loading branch information
folmos-at-orange committed Oct 13, 2023
1 parent 92fabda commit 21b2a54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ AlignOperands: true
SortIncludes: false
UseTab: ForContinuationAndIndentation
AllowShortFunctionsOnASingleLine: Empty
ReflowComments: true
PenaltyBreakComment: 500
---
BasedOnStyle: Mozilla
Language: Java
ColumnLimit: 120
IndentWidth: 8
ReflowComments: true
PenaltyBreakComment: 500

0 comments on commit 21b2a54

Please sign in to comment.