diff --git a/.clang-tidy b/.clang-tidy deleted file mode 100644 index a4fd6fc..0000000 --- a/.clang-tidy +++ /dev/null @@ -1,6 +0,0 @@ ---- -Checks: 'abseil-*,bugprone-*,modernize-*,performance-*,readability-*,-readability-named-parameter,-readability-implicit-bool-conversion,-modernize-use-trailing-return-type' -WarningsAsErrors: false -AnalyzeTemporaryDtors: false -FormatStyle: file -... diff --git a/build-aux/clang-tidy b/build-aux/clang-tidy deleted file mode 100755 index e20b6cc..0000000 --- a/build-aux/clang-tidy +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -e - -tmpdir=$(mktemp -d) -trap 'rm -r "$tmpdir"' EXIT - -if [[ ! -d .git ]]; then - echo 'error: this script must be run from the repo root' >&2 - exit 1 -fi - -if [[ ! -f build/compile_commands.json ]]; then - echo 'error: build/compile_commands.json not found' >&2 - exit 1 -fi - -sed 's/-pipe //' build/compile_commands.json >"$tmpdir"/compile_commands.json - -git ls-files -z -- '*.cc' | xargs -0 clang-tidy -p "$tmpdir" diff --git a/meson.build b/meson.build index 8b6748c..6ad6fae 100644 --- a/meson.build +++ b/meson.build @@ -129,9 +129,9 @@ install_data( install_dir : join_paths(get_option('datadir'), 'zsh/site-functions')) run_target( - 'tidy', + 'fmt', command : [ - join_paths(meson.project_source_root(), 'build-aux/clang-tidy') + join_paths(meson.project_source_root(), 'build-aux/source-format') ]) # unit tests