Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clang-format file #3115

Closed
jimying opened this issue May 20, 2022 · 2 comments
Closed

Add clang-format file #3115

jimying opened this issue May 20, 2022 · 2 comments

Comments

@jimying
Copy link
Contributor

jimying commented May 20, 2022

It could help contributors and avoid useless code style reviews.

@jimying
Copy link
Contributor Author

jimying commented May 31, 2022

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

@sauwming
Copy link
Member

We use editorconfig in #3210.

@sauwming sauwming closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants