Add cmake and clang format and linter

This commit is contained in:
jfmcarreira committed 2021-02-13 04:08:43 +00:00
1 parent 1674ec4061
commit d0933f43c9
16 files changed
+13060 -12188

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
fail_fast: false
repos:
- repo: local
hooks:
- id: cmake-configure
name: Cmake Configure
entry: cmake -B build
pass_filenames: false
language: system
- id: cmake-build
name: Cmake Build
entry: cmake --build build
pass_filenames: false
language: system
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
hooks:
- id: cmake-format
- id: cmake-lint
- repo: https://github.com/pocc/pre-commit-hooks
rev: python
hooks:
- id: clang-format
args: [--style=file, -i]
- id: clang-tidy
args: [-p=build]
args: [-checks=clang-diagnostic-return-type]