Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
clang-format: Remove the override of PenaltyExcessCharacter.
Browse files Browse the repository at this point in the history
So it falls back (from 32) to the default value in Google style:
PenaltyExcessCharacter: 1000000

This way it no longer allows lines exceeding the 100-char limit.

const char* x[] = { "long enough so that the line has 101 chars", nullptr };

  would become

const char* x[] = { "long enough so that the line has 101 chars",
                    nullptr };

Test: clang-format the line above.
Change-Id: If578dbdae55d6d81f5e47889890e2afa12b4199a
  • Loading branch information
Tao Bao committed Sep 26, 2017
1 parent a815d3f commit a1f6980
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ IndentWidth: 2
PointerAlignment: Left
TabWidth: 2
UseTab: Never
PenaltyExcessCharacter: 32

Cpp11BracedListStyle: false

0 comments on commit a1f6980

Please sign in to comment.