First Commit
Some checks failed
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled

This commit is contained in:
2025-11-19 16:23:45 +07:00
commit dbdc5bcc4a
1791 changed files with 489451 additions and 0 deletions

20
ext/libpqxx-7.7.3/tools/format Executable file
View File

@@ -0,0 +1,20 @@
#! /bin/bash
#
# Reformat source code using clang-format.
#
# This script is not portable: as of Ubuntu 21.04, virtualenv's "activate"
# seems to rely on a non-POSIX variable, $OSTYPE.
set -C -u -e
# Reformat C++ files.
find -name \*.cxx -o -name \*.hxx | xargs clang-format -i
# Reformat CMake files.
WORKDIR=$(mktemp -d)
virtualenv -q --python=$(which python3) "$WORKDIR/venv"
. "$WORKDIR/venv/bin/activate"
pip install -q six pyaml cmake-format
(find -name CMakeLists.txt | xargs cmake-format -i) || /bin/true
rm -rf "$WORKDIR"