Browse Source

clang-format: Remove the override of PenaltyExcessCharacter.

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
Tao Bao 3 years ago
parent
commit
a1f6980af7
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      .clang-format

+ 0
- 1
.clang-format View File

@@ -10,6 +10,5 @@ IndentWidth: 2
10 10
 PointerAlignment: Left
11 11
 TabWidth: 2
12 12
 UseTab: Never
13
-PenaltyExcessCharacter: 32
14 13
 
15 14
 Cpp11BracedListStyle: false