forked from lix-project/nix-eval-jobs
Add clang-format
This commit is contained in:
parent
76f68a8605
commit
8b8f456765
|
@ -27,6 +27,7 @@ in
|
|||
nativeBuildInputs = old.nativeBuildInputs ++ [
|
||||
|
||||
pkgs.treefmt
|
||||
pkgs.llvmPackages.clang # clang-format
|
||||
pkgs.nixpkgs-fmt
|
||||
|
||||
(pkgs.python3.withPackages (ps: [
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
[formatter."c++"]
|
||||
command = "clang-format"
|
||||
options = [ "-i", "-style", "{BasedOnStyle: llvm, IndentWidth: 4, SortIncludes: false}" ]
|
||||
includes = [ "*.c", "*.cpp", "*.cc", "*.h", "*.hpp" ]
|
||||
|
||||
[formatter.nix]
|
||||
command = "nixpkgs-fmt"
|
||||
includes = ["*.nix"]
|
||||
|
|
Loading…
Reference in a new issue