Skip to content

Commit 31e256e

Browse files
committed
feat(r3bdata):Added clang-tidy configuration
Test Change for test
1 parent 00d3faf commit 31e256e

2 files changed

Lines changed: 63 additions & 13 deletions

File tree

r3bdata/.clang-tidy

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# vi: ft=yaml
2+
Checks: >
3+
-*,
4+
bugprone-*,
5+
cert-dcl21-cpp,
6+
cert-dcl50-cpp,
7+
cert-env33-c,
8+
cert-err34-c,
9+
cert-err52-cpp,
10+
cert-err60-cpp,
11+
cert-flp30-c,
12+
cert-msc50-cpp,
13+
cert-msc51-cpp,
14+
clang-analyzer-*,
15+
cppcoreguidelines-*,
16+
-cppcoreguidelines-pro-type-reinterpret-cast,
17+
google-build-using-namespace,
18+
google-explicit-constructor,
19+
google-global-names-in-headers,
20+
google-readability-casting,
21+
google-runtime-int,
22+
google-runtime-operator,
23+
hicpp-*,
24+
-hicpp-vararg,
25+
misc-*,
26+
modernize-*,
27+
performance-*,
28+
readability-*,
29+
-hicpp-new-delete-operators,
30+
-modernize-use-trailing-return-type
31+
32+
CheckOptions:
33+
- key: bugprone-argument-comment.StrictMode
34+
value: 1
35+
- key: bugprone-easily-swappable-parameters.MinimumLength
36+
value: 4
37+
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
38+
value: 1
39+
- key: readability-identifier-length.IgnoredVariableNames
40+
value: '^it$'
41+
- key: readability-magic-numbers.IgnoreAllFloatingPointValues
42+
value: 'true'
43+
- key: cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues
44+
value: 'true'
45+
- key: readability-function-cognitive-complexity.Threshold
46+
value: 40
47+
- key: readability-function-cognitive-complexity.IgnoreMacros
48+
value: 'true'
49+
50+
FormatStyle: 'file'

r3bdata/actafData/R3BActafMappedData.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
* Copyright (C) 2025 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3-
* Copyright (C) 2025 Members of R3B Collaboration *
3+
* Copyright (C) 2025-2026 Members of R3B Collaboration *
44
* *
55
* This software is distributed under the terms of the *
66
* GNU General Public Licence (GPL) version 3, *
@@ -71,18 +71,18 @@ class R3BActafMappedData : public TObject
7171

7272
virtual ~R3BActafMappedData() = default;
7373

74-
[[nodiscard]] inline UInt_t GetPad() const { return fPad; }
75-
[[nodiscard]] inline const std::array<double, ACTAF_BINS>& GetTrace() const { return fTrace; }
76-
[[nodiscard]] inline double GetE() const { return fE; }
77-
[[nodiscard]] inline double GetBaseline() const { return fBaseline; }
78-
[[nodiscard]] inline double GetRisetime() const { return fRisetime; }
79-
[[nodiscard]] inline int GetMaxpos() const { return fMaxpos; }
80-
[[nodiscard]] inline double GetMaxampl() const { return fMaxamplitude; }
81-
[[nodiscard]] inline double GetLeadingEdgeTime() const { return fLeadingEdge10; }
82-
[[nodiscard]] inline double GetRms() const { return fRms; }
83-
[[nodiscard]] inline int GetTimeTag() const { return fTimeTag; }
84-
[[nodiscard]] inline int GetDetMask() const { return fDetMask; }
85-
[[nodiscard]] inline double GetMaw() const { return fMaw; }
74+
[[nodiscard]] UInt_t GetPad() const { return fPad; }
75+
[[nodiscard]] const std::array<double, ACTAF_BINS>& GetTrace() const { return fTrace; }
76+
[[nodiscard]] double GetE() const { return fE; }
77+
[[nodiscard]] double GetBaseline() const { return fBaseline; }
78+
[[nodiscard]] double GetRisetime() const { return fRisetime; }
79+
[[nodiscard]] int GetMaxpos() const { return fMaxpos; }
80+
[[nodiscard]] double GetMaxampl() const { return fMaxamplitude; }
81+
[[nodiscard]] double GetLeadingEdgeTime() const { return fLeadingEdge10; }
82+
[[nodiscard]] double GetRms() const { return fRms; }
83+
[[nodiscard]] int GetTimeTag() const { return fTimeTag; }
84+
[[nodiscard]] int GetDetMask() const { return fDetMask; }
85+
[[nodiscard]] double GetMaw() const { return fMaw; }
8686

8787
[[nodiscard]] std::string toString() const;
8888
void Print(const Option_t*) const override;

0 commit comments

Comments
 (0)