pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

Add clang-format file

Open jimying opened this issue 3 years ago • 1 comments

It could help contributors and avoid useless code style reviews.

jimying avatar May 20 '22 01:05 jimying

According to Coding Convention,

It can be expanded on this basis

---
BasedOnStyle: LLVM

IndentWidth: 4
TabWidth:   8   
UseTab: AlignWithSpaces
BreakBeforeBraces: Linux
ColumnLimit: 80
IndentCaseLabels: false

# Disable single line
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortBlocksOnASingleLine : false
AllowShortCaseLabelsOnASingleLine: false
AllowShortLoopsOnASingleLine: false 
AllowShortEnumsOnASingleLine: false

# Function params
AllowAllParametersOfDeclarationOnNextLine: false
BinPackParameters: false

jimying avatar May 31 '22 02:05 jimying

We use editorconfig in #3210.

sauwming avatar Jan 30 '23 09:01 sauwming