Skip to content

Commit

Permalink
add clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Aug 11, 2023
1 parent e5588dd commit dbdef42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ use nix
- [cabal-fmt](https://github.com/phadej/cabal-fmt)
- [hpack](https://github.com/sol/hpack)

# C/C++/C#/ObjC

- [clang-format](https://clang.llvm.org/docs/ClangFormat.html)
- [clang-tidy](https://clang.llvm.org/extra/clang-tidy/)

## Clojure

- [zprint](https://github.com/kkinnear/zprint)
Expand Down Expand Up @@ -223,7 +228,6 @@ use nix

- [prettier](https://prettier.io)
- `dhall format`: built-in formatter
- [clang-format](https://clang.llvm.org/docs/ClangFormat.html)
- [hadolint](https://github.com/hadolint/hadolint)
- [editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker)
- [actionlint](https://github.com/rhysd/actionlint)
Expand Down
6 changes: 6 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,12 @@ in
"proto"
];
};
clang-tidy = {
name = "clang-tidy";
description = "Static analyzer for C++ code.";
entry = "${tools.clang-tools}/bin/clang-tidy --fix";
types = [ "c" "c++" "c#" "objective-c" ];
};
dhall-format = {
name = "dhall-format";
description = "Dhall code formatter.";
Expand Down

0 comments on commit dbdef42

Please sign in to comment.