mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Add script to format all files in repository
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
This commit is contained in:
parent
6f518a56e7
commit
c217f01209
1 changed files with 12 additions and 0 deletions
12
tools/format-all.sh
Normal file
12
tools/format-all.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Format all C++ files in repo
|
||||
#
|
||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
TOP_DIR=$(git rev-parse --show-toplevel)
|
||||
|
||||
find ${TOP_DIR} -iname "*.cpp" -o -iname "*.hpp" -o -iname "*.h" -o -iname "*.c" | \
|
||||
xargs clang-format --verbose -i
|
Loading…
Add table
Reference in a new issue