mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
clang-format: Clean formatting rules
- Remove duplicate entry - Try to use either "google" or default style settings - Use default column with 80 - Order settings and add more comments Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
2fa96b765b
commit
83cdcd0c01
@ -1,21 +1,19 @@
|
||||
BasedOnStyle: Google
|
||||
|
||||
# Modifications for Tesseract.
|
||||
|
||||
# Only merge empty functions.
|
||||
AllowShortFunctionsOnASingleLine: Empty
|
||||
# Do not allow short if statements.
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
# Enforce always the same pointer alignment.
|
||||
DerivePointerAlignment: false
|
||||
IndentPPDirectives: AfterHash
|
||||
|
||||
PointerAlignment: Right
|
||||
IncludeBlocks: Preserve
|
||||
FixNamespaceComments: true
|
||||
ColumnLimit: 100
|
||||
IndentWidth: 2
|
||||
#IndentAccessModifiers: false # not accepted atm
|
||||
AccessModifierOffset: -2 # set to minus IndentWidth (-IndentWidth)
|
||||
SpacesBeforeTrailingComments: 1
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
# Default style for some settings.
|
||||
|
||||
AccessModifierOffset: -2
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
BreakConstructorInitializers: BeforeComma
|
||||
#ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||
# Enforce always the same pointer alignment.
|
||||
DerivePointerAlignment: false
|
||||
IncludeBlocks: Preserve
|
||||
PointerAlignment: Right
|
||||
SpacesBeforeTrailingComments: 1
|
||||
|
Loading…
Reference in New Issue
Block a user