Skip to content

Commit

Permalink
Build VecGeom in weekly clang-tidy cron (#1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
esseivaju authored Dec 23, 2024
1 parent a348fea commit b9c98bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/cmake-presets/ci-ubuntu-github.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
},
{
"name": "reldeb-vecgeom-clang-tidy",
"description": "Build with ORANGE and clang-tidy checks",
"inherits": ["spack", ".vecgeom"],
"description": "Build with VecGeom and clang-tidy checks",
"inherits": [".vecgeom", "spack"],
"cacheVariables": {
"CELERITAS_DEBUG": {"type": "BOOL", "value": "ON"},
"CELERITAS_BUILD_TESTS": {"type": "BOOL", "value": "OFF"},
Expand Down
2 changes: 2 additions & 0 deletions src/celeritas/alongstep/detail/PropagationApplier.hh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ PropagationApplierBaseImpl<MP>::operator()(CoreTrackView& track)
#if CELERITAS_DEBUG
Real3 const orig_pos = track.make_geo_view().pos();
#endif
// False positive(fixed in clang-tidy-18)
// NOLINTNEXTLINE(clang-analyzer-core.CallAndMessage)
auto propagate = make_propagator(track);
p = propagate(sim.step_length());
tracks_can_loop = propagate.tracks_can_loop();
Expand Down
2 changes: 1 addition & 1 deletion src/geocel/vg/VecgeomParams.hh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class VecgeomParams final : public GeoParamsInterface,
explicit VecgeomParams(G4VPhysicalVolume const* world);

// Clean up VecGeom on destruction
~VecgeomParams();
~VecgeomParams() final;

//! Whether safety distance calculations are accurate and precise
bool supports_safety() const final { return true; }
Expand Down

0 comments on commit b9c98bc

Please sign in to comment.