A `.hpp` or `.cpp` file could exist in `.git`, for example in
`.git/logs/refs/heads` if the branch name ends with `.hpp` or `.cpp`.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I328486a81148fe46221bac8979ab6127ed4e3903
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11707
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
# We want an absolute starting directory because find(1) excludes
# files in specific subdirectories.
find "$(realpath "$root_dir")" \( -name '*.cpp' -o -name '*.hpp' \) \
# We want an absolute starting directory because find(1) excludes
# files in specific subdirectories.
find "$(realpath "$root_dir")" \( -name '*.cpp' -o -name '*.hpp' \) \
! -path '*/src/cpp-common/vendor/*' \
! -path '*/src/plugins/ctf/common/metadata/parser.*' \
! -path '*/src/plugins/ctf/common/metadata/lexer.*' \
! -path '*/src/cpp-common/vendor/*' \
! -path '*/src/plugins/ctf/common/metadata/parser.*' \
! -path '*/src/plugins/ctf/common/metadata/lexer.*' \