Re-format with clang-format 16
[babeltrace.git] / tools / check-include-guards.sh
1 #!/bin/bash
2 #
3 # SPDX-License-Identifier: GPL-2.0-only
4 #
5 # Copyright (C) 2024 EfficiOS Inc.
6
7 # Change directory to the root of the project, to make `find` simpler
8 cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit 1
9
10 find src tests \
11 \( -name '*.hpp' -or -name '*.h' \) \
12 ! -path '/.git/*' \
13 ! -path 'src/argpar/*' \
14 ! -path 'src/cpp-common/vendor/*' \
15 ! -path 'tests/data/plugins/flt.lttng-utils.debug-info/tp.h' \
16 ! -path 'tests/utils/tap/tap.h' \
17 -print0 | xargs -P "$(nproc)" -n1 -t -0 tools/check-include-guard.py "$@"
This page took 0.032192 seconds and 4 git commands to generate.