timescaledb/scripts/clang_format_all.sh
Alexander Kuzmenkov 2b0011e7e8
Import the UMASH hashing library (#7616)
We use it for vectorized hash grouping. For now, add the library
separately to figure out the required CMake and CI changes.
2025-01-24 14:45:05 +00:00

10 lines
467 B
Bash
Executable File

#!/bin/bash
# we need to convert script dir to an absolute path
SCRIPT_DIR=$(cd "$(dirname $0)" || exit; pwd)
BASE_DIR=$(dirname $SCRIPT_DIR)
find ${BASE_DIR} \( -path "${BASE_DIR}/src/*" -or -path "${BASE_DIR}/test/*" -or -path "${BASE_DIR}/tsl/*" \) \
-and -not \( -path "*/.*" -or -path "*CMake*" -or -path "${BASE_DIR}/tsl/src/import/*" \) \
-and \( -name '*.c' -or -name '*.h' \) -print0 | xargs -0 ${SCRIPT_DIR}/clang_format_wrapper.sh -style=file -i