From e9403eee601f3c2c51de66f3f270c0b6dbdd2cc8 Mon Sep 17 00:00:00 2001 From: feixyz10 Date: Mon, 5 Jul 2021 23:41:34 +0800 Subject: [PATCH] add .clang-format --- .clang-format | 11 +++++++++++ .gitignore | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..e359a8d --- /dev/null +++ b/.clang-format @@ -0,0 +1,11 @@ +--- +BasedOnStyle: Google +--- +Language: Cpp +DerivePointerAlignment: false +PointerAlignment: Right +BreakBeforeBraces: Attach +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: true +Cpp11BracedListStyle: true +Standard: Cpp11 diff --git a/.gitignore b/.gitignore index 1987246..6432c2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ /.clangd /.vscode /build -.clang-format compile_commands.json -*.pcd \ No newline at end of file +*.pcd