Commit e629198f authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

clang-tidy: fix source_location issues

parent ad753180
...@@ -90,7 +90,7 @@ analysis:clang-tidy: ...@@ -90,7 +90,7 @@ analysis:clang-tidy:
- juggler:local - juggler:local
script: script:
- | - |
run-clang-tidy-13 -p build -j20 -export-fixes clang_tidy_fixes.yml run-clang-tidy-13 -p build -j20 -export-fixes clang_tidy_fixes.yml -extra-arg='-std=c++17'
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths:
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// Instantiation of a static factory class used by clients to create // Instantiation of a static factory class used by clients to create
// instances of this service // instances of this service
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(EICDataSvc) DECLARE_COMPONENT(EICDataSvc)
/// Standard Constructor /// Standard Constructor
......
...@@ -75,6 +75,7 @@ void draw_surfaces(std::shared_ptr<const Acts::TrackingGeometry> trk_geo, const ...@@ -75,6 +75,7 @@ void draw_surfaces(std::shared_ptr<const Acts::TrackingGeometry> trk_geo, const
using namespace Gaudi; using namespace Gaudi;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(GeoSvc) DECLARE_COMPONENT(GeoSvc)
GeoSvc::GeoSvc(const std::string& name, ISvcLocator* svc) GeoSvc::GeoSvc(const std::string& name, ISvcLocator* svc)
......
...@@ -59,12 +59,15 @@ namespace Jug { ...@@ -59,12 +59,15 @@ namespace Jug {
}; };
using CalorimeterColCopier = InputCopier<edm4hep::SimCalorimeterHitCollection, edm4hep::SimCalorimeterHitCollection>; using CalorimeterColCopier = InputCopier<edm4hep::SimCalorimeterHitCollection, edm4hep::SimCalorimeterHitCollection>;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(CalorimeterColCopier) DECLARE_COMPONENT(CalorimeterColCopier)
using TrackerColCopier = InputCopier<edm4hep::SimTrackerHitCollection, edm4hep::SimTrackerHitCollection>; using TrackerColCopier = InputCopier<edm4hep::SimTrackerHitCollection, edm4hep::SimTrackerHitCollection>;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(TrackerColCopier) DECLARE_COMPONENT(TrackerColCopier)
using MCCopier = InputCopier<edm4hep::MCParticleCollection, edm4hep::MCParticleCollection>; using MCCopier = InputCopier<edm4hep::MCParticleCollection, edm4hep::MCParticleCollection>;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(MCCopier) DECLARE_COMPONENT(MCCopier)
} // namespace Examples } // namespace Examples
......
#include "ParticleSvc.h" #include "ParticleSvc.h"
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(ParticleSvc) DECLARE_COMPONENT(ParticleSvc)
namespace { namespace {
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "JugBase/DataWrapper.h" #include "JugBase/DataWrapper.h"
#include "JugBase/PodioDataSvc.h" #include "JugBase/PodioDataSvc.h"
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(PodioInput) DECLARE_COMPONENT(PodioInput)
PodioInput::PodioInput(const std::string& name, ISvcLocator* svcLoc) : GaudiAlgorithm(name, svcLoc) {} PodioInput::PodioInput(const std::string& name, ISvcLocator* svcLoc) : GaudiAlgorithm(name, svcLoc) {}
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "TFile.h" #include "TFile.h"
#include "rootutils.h" #include "rootutils.h"
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(PodioOutput) DECLARE_COMPONENT(PodioOutput)
PodioOutput::PodioOutput(const std::string& name, ISvcLocator* svcLoc) PodioOutput::PodioOutput(const std::string& name, ISvcLocator* svcLoc)
......
...@@ -97,6 +97,7 @@ namespace Jug::Digi { ...@@ -97,6 +97,7 @@ namespace Jug::Digi {
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(CalorimeterBirksCorr) DECLARE_COMPONENT(CalorimeterBirksCorr)
} // namespace Jug::Digi } // namespace Jug::Digi
...@@ -247,6 +247,7 @@ namespace Jug::Digi { ...@@ -247,6 +247,7 @@ namespace Jug::Digi {
} }
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(CalorimeterHitDigi) DECLARE_COMPONENT(CalorimeterHitDigi)
} // namespace Jug::Digi } // namespace Jug::Digi
...@@ -211,6 +211,7 @@ private: ...@@ -211,6 +211,7 @@ private:
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(PhotoMultiplierDigi) DECLARE_COMPONENT(PhotoMultiplierDigi)
} // namespace Jug::Digi } // namespace Jug::Digi
......
...@@ -92,6 +92,7 @@ public: ...@@ -92,6 +92,7 @@ public:
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(SiliconTrackerDigi) DECLARE_COMPONENT(SiliconTrackerDigi)
} // namespace Jug::Digi } // namespace Jug::Digi
...@@ -65,6 +65,7 @@ namespace Jug::Digi { ...@@ -65,6 +65,7 @@ namespace Jug::Digi {
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(SimTrackerHitsCollector) DECLARE_COMPONENT(SimTrackerHitsCollector)
} // namespace Jug::Digi } // namespace Jug::Digi
...@@ -137,6 +137,7 @@ public: ...@@ -137,6 +137,7 @@ public:
return matched; return matched;
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(ClusterMerger) DECLARE_COMPONENT(ClusterMerger)
} // namespace Jug::Fast } // namespace Jug::Fast
......
...@@ -161,6 +161,7 @@ public: ...@@ -161,6 +161,7 @@ public:
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(InclusiveKinematicsTruth) DECLARE_COMPONENT(InclusiveKinematicsTruth)
} // namespace Jug::Fast } // namespace Jug::Fast
...@@ -88,6 +88,7 @@ public: ...@@ -88,6 +88,7 @@ public:
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(MC2SmearedParticle) DECLARE_COMPONENT(MC2SmearedParticle)
} // namespace Jug::Fast } // namespace Jug::Fast
...@@ -196,6 +196,7 @@ private: ...@@ -196,6 +196,7 @@ private:
} }
}; // namespace Jug::Fast }; // namespace Jug::Fast
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(MatchClusters) DECLARE_COMPONENT(MatchClusters)
} // namespace Jug::Fast } // namespace Jug::Fast
......
...@@ -149,6 +149,7 @@ public: ...@@ -149,6 +149,7 @@ public:
} }
}; // namespace Jug::Fast }; // namespace Jug::Fast
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(ParticlesWithTruthPID) DECLARE_COMPONENT(ParticlesWithTruthPID)
} // namespace Jug::Fast } // namespace Jug::Fast
......
...@@ -409,6 +409,7 @@ private: ...@@ -409,6 +409,7 @@ private:
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(SmearedFarForwardParticles) DECLARE_COMPONENT(SmearedFarForwardParticles)
} // namespace Jug::Fast } // namespace Jug::Fast
......
...@@ -79,6 +79,7 @@ public: ...@@ -79,6 +79,7 @@ public:
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(TruthClustering) DECLARE_COMPONENT(TruthClustering)
} // namespace Jug::Fast } // namespace Jug::Fast
...@@ -182,6 +182,7 @@ public: ...@@ -182,6 +182,7 @@ public:
return matched; return matched;
} }
}; };
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
DECLARE_COMPONENT(TruthEnergyPositionClusterMerger) DECLARE_COMPONENT(TruthEnergyPositionClusterMerger)
} // namespace Jug::Fast } // namespace Jug::Fast
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment