Skip to content

Commit 925333f

Browse files
feat(clang-format):Upgrade to clang-format-16 and apply codespell
Co-authored-by: p-russotto <[email protected]>
1 parent b56fc67 commit 925333f

29 files changed

+83
-80
lines changed

.codespell-ignorewords

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
gaus
2+
crate
3+
afile

.github/workflows/check_metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
build:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424

2525
- name: Try updating metadata
2626
run: python update_zenodo.py

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
# another github repo or a self-defined one in .github/actions.
8585
steps:
8686
# Fetch updates from pull request branches using a public github action.
87-
- uses: actions/checkout@v4
87+
- uses: actions/checkout@v5
8888
with:
8989
# This allows all commits of all branches to be fetched.
9090
fetch-depth: 0

.github/workflows/static_analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
- name: Code formatting
2222
run: |
2323
cd $GITHUB_WORKSPACE
2424
sudo apt-get update
25-
sudo apt-get install clang-format-15
26-
./.clang-format-check.sh clang-format-15
25+
sudo apt-get install clang-format-16
26+
./.clang-format-check.sh clang-format-16
2727
shell: bash

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For the software-related user support you can post a new topic on our [forum](ht
1818
Please ask your questions, request features, and report issues by [creating a github issue](https://github.com/R3BRootGroup/asyeos/issues/new/choose).
1919

2020
## Code Formatting
21-
The AsyEOS project (as part of R3BRoot) uses clang-format-15 to ensure a common code formatting. The script "apply-format.sh" can be used for this purpose:
21+
The AsyEOS project (as part of R3BRoot) uses clang-format-16 to ensure a common code formatting. The script "apply-format.sh" can be used for this purpose:
2222
~~~bash
2323
bash apply-format.sh
2424
~~~

apply-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
find . -type f \( -name "*.cpp" -o -name "*.cxx" -o -name "*.h" \) \
33
! -path "./macros/*" ! -path "./params/*" -print0 |
4-
xargs -0 -L 1 clang-format-15 -i
4+
xargs -0 -L 1 clang-format-16 -i
55

66
echo "Use git add -A ; git commit -m \"clang-format all files\" --author=\"white space <[email protected]>\" to commit changes."
77

asyonline/R3BAsyChimeraOnlineSpectra.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TClonesArray;
3737
class R3BEventHeader;
3838

3939
/**
40-
* This taks reads mapped data and plots online histograms
40+
* This tasks reads mapped data and plots online histograms
4141
*/
4242
class R3BAsyChimeraOnlineSpectra : public FairTask
4343
{
@@ -103,7 +103,7 @@ class R3BAsyChimeraOnlineSpectra : public FairTask
103103
private:
104104
TClonesArray* fMappedItemsChimera; /**< Array with chimera mapped items. */
105105

106-
// check for trigger should be done globablly (somewhere else)
106+
// check for trigger should be done globally (somewhere else)
107107
R3BEventHeader* header; /**< Event header. */
108108
Int_t fNEvents; /**< Event counter. */
109109

asyonline/R3BAsyKrabOnlineSpectra.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TClonesArray;
3737
class R3BEventHeader;
3838

3939
/**
40-
* This taks reads mapped data and plots online histograms
40+
* This tasks reads mapped data and plots online histograms
4141
*/
4242
class R3BAsyKrabOnlineSpectra : public FairTask
4343
{
@@ -98,7 +98,7 @@ class R3BAsyKrabOnlineSpectra : public FairTask
9898
private:
9999
TClonesArray* fMappedItemsKrab; /**< Array with krab mapped items. */
100100

101-
// check for trigger should be done globablly (somewhere else)
101+
// check for trigger should be done globally (somewhere else)
102102
R3BEventHeader* header; /**< Event header. */
103103
Int_t fNEvents; /**< Event counter. */
104104

asyonline/R3BAsyTofDOnlineSpectra.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class R3BAsyTofDOnlineSpectra : public FairTask
135135
TClonesArray* fCalTriggerItems = nullptr; /**< Array with trigger Cal items - input data. */
136136
TClonesArray* fWRItemsLos = nullptr;
137137

138-
// check for trigger should be done globablly (somewhere else)
138+
// check for trigger should be done globally (somewhere else)
139139
R3BEventHeader* header = nullptr; /**< Event header. */
140140
R3BTofDMappingPar* fMapPar = nullptr;
141141
Int_t fTrigger = -1; /**< Trigger value. */

asyonline/R3BAsyTofDvsNeuLandOnlineSpectra.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class R3BAsyTofDvsNeuLandOnlineSpectra : public FairTask
140140
TCAInputConnector<R3BNeulandCalData> fNeulandCalData;
141141
TCAInputConnector<R3BNeulandHit> fNeulandHits;
142142

143-
// check for trigger should be done globablly (somewhere else)
143+
// check for trigger should be done globally (somewhere else)
144144
R3BEventHeader* header = nullptr; /**< Event header. */
145145
R3BTofDMappingPar* fMapPar = nullptr;
146146
Int_t fTrigger = -1; /**< Trigger value. */

0 commit comments

Comments
 (0)