diff --git a/r3bdata/.clang-tidy b/r3bdata/.clang-tidy new file mode 100644 index 000000000..3ae3d7076 --- /dev/null +++ b/r3bdata/.clang-tidy @@ -0,0 +1,50 @@ +# vi: ft=yaml +Checks: > + -*, + bugprone-*, + cert-dcl21-cpp, + cert-dcl50-cpp, + cert-env33-c, + cert-err34-c, + cert-err52-cpp, + cert-err60-cpp, + cert-flp30-c, + cert-msc50-cpp, + cert-msc51-cpp, + clang-analyzer-*, + cppcoreguidelines-*, + -cppcoreguidelines-pro-type-reinterpret-cast, + google-build-using-namespace, + google-explicit-constructor, + google-global-names-in-headers, + google-readability-casting, + google-runtime-int, + google-runtime-operator, + hicpp-*, + -hicpp-vararg, + misc-*, + modernize-*, + performance-*, + readability-*, + -hicpp-new-delete-operators, + -modernize-use-trailing-return-type + +CheckOptions: + - key: bugprone-argument-comment.StrictMode + value: 1 + - key: bugprone-easily-swappable-parameters.MinimumLength + value: 4 + - key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic + value: 1 + - key: readability-identifier-length.IgnoredVariableNames + value: '^it$' + - key: readability-magic-numbers.IgnoreAllFloatingPointValues + value: 'true' + - key: cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues + value: 'true' + - key: readability-function-cognitive-complexity.Threshold + value: 40 + - key: readability-function-cognitive-complexity.IgnoreMacros + value: 'true' + +FormatStyle: 'file' diff --git a/r3bdata/actafData/R3BActafMappedData.h b/r3bdata/actafData/R3BActafMappedData.h index 9bfc8e147..8c5658a01 100644 --- a/r3bdata/actafData/R3BActafMappedData.h +++ b/r3bdata/actafData/R3BActafMappedData.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (C) 2025 GSI Helmholtzzentrum für Schwerionenforschung GmbH * - * Copyright (C) 2025 Members of R3B Collaboration * + * Copyright (C) 2025-2026 Members of R3B Collaboration * * * * This software is distributed under the terms of the * * GNU General Public Licence (GPL) version 3, * @@ -71,18 +71,18 @@ class R3BActafMappedData : public TObject virtual ~R3BActafMappedData() = default; - [[nodiscard]] inline UInt_t GetPad() const { return fPad; } - [[nodiscard]] inline const std::array& GetTrace() const { return fTrace; } - [[nodiscard]] inline double GetE() const { return fE; } - [[nodiscard]] inline double GetBaseline() const { return fBaseline; } - [[nodiscard]] inline double GetRisetime() const { return fRisetime; } - [[nodiscard]] inline int GetMaxpos() const { return fMaxpos; } - [[nodiscard]] inline double GetMaxampl() const { return fMaxamplitude; } - [[nodiscard]] inline double GetLeadingEdgeTime() const { return fLeadingEdge10; } - [[nodiscard]] inline double GetRms() const { return fRms; } - [[nodiscard]] inline int GetTimeTag() const { return fTimeTag; } - [[nodiscard]] inline int GetDetMask() const { return fDetMask; } - [[nodiscard]] inline double GetMaw() const { return fMaw; } + [[nodiscard]] UInt_t GetPad() const { return fPad; } + [[nodiscard]] const std::array& GetTrace() const { return fTrace; } + [[nodiscard]] double GetE() const { return fE; } + [[nodiscard]] double GetBaseline() const { return fBaseline; } + [[nodiscard]] double GetRisetime() const { return fRisetime; } + [[nodiscard]] int GetMaxpos() const { return fMaxpos; } + [[nodiscard]] double GetMaxampl() const { return fMaxamplitude; } + [[nodiscard]] double GetLeadingEdgeTime() const { return fLeadingEdge10; } + [[nodiscard]] double GetRms() const { return fRms; } + [[nodiscard]] int GetTimeTag() const { return fTimeTag; } + [[nodiscard]] int GetDetMask() const { return fDetMask; } + [[nodiscard]] double GetMaw() const { return fMaw; } [[nodiscard]] std::string toString() const; void Print(const Option_t*) const override;