-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathapply-format.sh
More file actions
22 lines (20 loc) · 1.46 KB
/
apply-format.sh
File metadata and controls
22 lines (20 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##############################################################################
# Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH #
# Copyright (C) 2019 University of Santiago de Compostela #
# Copyright (C) 2019 CEA-DAM-DIF, Université Paris-Saclay #
# Copyright (C) 2023 University of Coruña #
# Copyright (C) 2019-2025 Members of R3B Collaboration #
# #
# This software is distributed under the terms of the #
# GNU General Public Licence (GPL) version 3, #
# copied verbatim in the file "LICENSE". #
# #
# In applying this license GSI does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
##############################################################################
#!/usr/bin/env bash
find . -type f \( -name "*.cpp" -o -name "*.cxx" -o -name "*.C" -o -name "*.h" \) \
! -path "./macros/*" -print0 |
xargs -0 -L 1 clang-format-16 -i
echo "Use git add -A ; git commit -m \"clang-format all files\" --author=\"white space <whitespace@example.com>\" to commit changes."