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 ++ [
|
nativeBuildInputs = old.nativeBuildInputs ++ [
|
||||||
|
|
||||||
pkgs.treefmt
|
pkgs.treefmt
|
||||||
|
pkgs.llvmPackages.clang # clang-format
|
||||||
pkgs.nixpkgs-fmt
|
pkgs.nixpkgs-fmt
|
||||||
|
|
||||||
(pkgs.python3.withPackages (ps: [
|
(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]
|
[formatter.nix]
|
||||||
command = "nixpkgs-fmt"
|
command = "nixpkgs-fmt"
|
||||||
includes = ["*.nix"]
|
includes = ["*.nix"]
|
||||||
|
|
Loading…
Reference in a new issue