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]