From 22a2008a683736c766288d8dd627f0eaec707d1b Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Fri, 14 Jul 2023 14:46:10 +0800 Subject: [PATCH] Move clang-format config to .clang-format --- .clang-format | 3 +++ treefmt.toml | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..b389fd0 --- /dev/null +++ b/.clang-format @@ -0,0 +1,3 @@ +BasedOnStyle: llvm +IndentWidth: 4 +SortIncludes: false diff --git a/treefmt.toml b/treefmt.toml index 19a28ed..647cb78 100644 --- a/treefmt.toml +++ b/treefmt.toml @@ -1,10 +1,6 @@ [formatter."c++"] command = "clang-format" -options = [ - "-i", - "-style", - "{BasedOnStyle: llvm, IndentWidth: 4, SortIncludes: false}" -] +options = ["-i"] includes = ["*.c", "*.cpp", "*.cc", "*.h", "*.hpp"] [formatter.nix]