add .clang-format

main
feixyz10 2021-07-05 23:41:34 +08:00 committed by feixyz
parent d66f5dc07e
commit e9403eee60
2 changed files with 12 additions and 2 deletions

11
.clang-format Normal file
View File

@ -0,0 +1,11 @@
---
BasedOnStyle: Google
---
Language: Cpp
DerivePointerAlignment: false
PointerAlignment: Right
BreakBeforeBraces: Attach
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: true
Cpp11BracedListStyle: true
Standard: Cpp11

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
/.clangd
/.vscode
/build
.clang-format
compile_commands.json
*.pcd