Skip to content

Commit b1eebbd

Browse files
authored
Merge pull request #49212 from smuzaffar/reconstruction-llvm21-virtual-method-final-class
[RECONSTRUCTION] Fix for virtual method inside a final class
2 parents 2e0cf4c + 5109bc3 commit b1eebbd

File tree

21 files changed

+35
-35
lines changed

21 files changed

+35
-35
lines changed

DataFormats/TrackerRecHit2D/interface/VectorHit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class VectorHit final : public BaseTrackerRecHit {
7272

7373
// returning methods
7474
LocalPoint localPosition() const override { return thePosition; }
75-
virtual LocalVector localDirection() const { return theDirection; }
75+
LocalVector localDirection() const { return theDirection; }
7676
const AlgebraicSymMatrix44& covMatrix() const;
7777
LocalError localPositionError() const override;
7878
LocalError localDirectionError() const;

EventFilter/SiStripRawToDigi/interface/SiStripFEDBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ namespace sistrip {
8484
//check FE unit APV addresses in FULL DEBUG header are equal to the APVe address if the majority was good
8585
bool checkFEUnitAPVAddresses() const;
8686
//do all corrupt buffer checks
87-
virtual bool doCorruptBufferChecks() const;
87+
bool doCorruptBufferChecks() const;
8888

8989
//check that there are no errors in channel, APV or FEUnit status bits
9090
//these are done by channelGood(). Channels with bad status bits may be disabled so bad status bits do not usually indicate an error

EventFilter/SiStripRawToDigi/plugins/SiStripDigiToRawModule.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ namespace sistrip {
3434
DigiToRawModule(const edm::ParameterSet&);
3535
~DigiToRawModule() override;
3636

37-
virtual void beginJob() {}
38-
virtual void endJob() {}
37+
void beginJob() {}
38+
void endJob() {}
3939

4040
void produce(edm::Event&, const edm::EventSetup&) override;
4141
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);

RecoMuon/TransientTrackingRecHit/interface/MuonTransientTrackingRecHit.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@ class MuonTransientTrackingRecHit final : public GenericTransientTrackingRecHit
2929
~MuonTransientTrackingRecHit() override {}
3030

3131
/// Direction in 3D for segments, otherwise (0,0,0)
32-
virtual LocalVector localDirection() const;
32+
LocalVector localDirection() const;
3333

3434
/// Direction in 3D for segments, otherwise (0,0,0)
35-
virtual GlobalVector globalDirection() const;
35+
GlobalVector globalDirection() const;
3636

3737
/// Error on the local direction
38-
virtual LocalError localDirectionError() const;
38+
LocalError localDirectionError() const;
3939

4040
/// Error on the global direction
41-
virtual GlobalError globalDirectionError() const;
41+
GlobalError globalDirectionError() const;
4242

4343
AlgebraicSymMatrix parametersError() const override;
4444

4545
/// Chi square of the fit for segments, else 0
46-
virtual double chi2() const;
46+
double chi2() const;
4747

4848
/// Degrees of freedom for segments, else 0
49-
virtual int degreesOfFreedom() const;
49+
int degreesOfFreedom() const;
5050

5151
/// if this rec hit is a DT rec hit
5252
bool isDT() const;
@@ -66,7 +66,7 @@ class MuonTransientTrackingRecHit final : public GenericTransientTrackingRecHit
6666
/// return the sub components of this transient rechit
6767
ConstRecHitContainer transientHits() const override;
6868

69-
/// FIXME virtual ConstMuonRecHitContainer specificTransientHits() const;
69+
/// FIXME ConstMuonRecHitContainer specificTransientHits() const;
7070

7171
static RecHitPointer build(const GeomDet* geom, const TrackingRecHit* rh) {
7272
return RecHitPointer(new MuonTransientTrackingRecHit(geom, rh));

RecoTracker/CkfPattern/plugins/GroupedCkfTrajectoryBuilder.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class dso_internal GroupedCkfTrajectoryBuilder final : public BaseCkfTrajectoryB
3030
static void fillPSetDescription(edm::ParameterSetDescription& iDesc);
3131

3232
/// set Event for the internal MeasurementTracker data member
33-
// virtual void setEvent(const edm::Event& event) const;
33+
// void setEvent(const edm::Event& event) const;
3434

3535
/// trajectories building starting from a seed
3636
TrajectoryContainer trajectories(const TrajectorySeed&) const override;
@@ -87,10 +87,10 @@ class dso_internal GroupedCkfTrajectoryBuilder final : public BaseCkfTrajectoryB
8787
protected:
8888
void setEvent_(const edm::Event& iEvent, const edm::EventSetup& iSetup) override;
8989

90-
virtual void analyseSeed(const TrajectorySeed& seed) const {}
90+
void analyseSeed(const TrajectorySeed& seed) const {}
9191

92-
virtual void analyseMeasurements(const std::vector<TM>& meas, const Trajectory& traj) const {}
93-
virtual void analyseResult(const TrajectoryContainer& result) const {}
92+
void analyseMeasurements(const std::vector<TM>& meas, const Trajectory& traj) const {}
93+
void analyseResult(const TrajectoryContainer& result) const {}
9494

9595
private:
9696
// /// no copy constructor

RecoTracker/TkDetLayers/src/CompositeTECPetal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class CompositeTECPetal final : public GeometricSearchDet {
2727
~CompositeTECPetal() override __attribute__((cold));
2828

2929
// GeometricSearchDet interface
30-
const BoundSurface& surface() const final { return *theDiskSector; }
30+
const BoundSurface& surface() const override { return *theDiskSector; }
3131
//Extension of the interface
32-
virtual const BoundDiskSector& specificSurface() const final { return *theDiskSector; }
32+
const BoundDiskSector& specificSurface() const { return *theDiskSector; }
3333

3434
// GeometricSearchDet interface
3535
const std::vector<const GeomDet*>& basicComponents() const override { return theBasicComps; }

RecoTracker/TkDetLayers/src/Phase1PixelBlade.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Phase1PixelBlade final : public GeometricSearchDet {
3737
std::vector<DetGroup>& result) const override __attribute__((hot));
3838

3939
//Extension of the interface
40-
virtual const BoundDiskSector& specificSurface() const { return *theDiskSector; }
40+
const BoundDiskSector& specificSurface() const { return *theDiskSector; }
4141

4242
private:
4343
// private methods for the implementation of groupedCompatibleDets()

RecoTracker/TkDetLayers/src/Phase2EndcapRing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Phase2EndcapRing final : public GeometricSearchDet {
3535
std::vector<DetGroup>& result) const override __attribute__((hot));
3636

3737
//Extension of interface
38-
virtual const BoundDisk& specificSurface() const { return *theDisk; }
38+
const BoundDisk& specificSurface() const { return *theDisk; }
3939

4040
private:
4141
// private methods for the implementation of groupedCompatibleDets()

RecoTracker/TkDetLayers/src/Phase2EndcapSingleRing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Phase2EndcapSingleRing final : public GeometricSearchDet {
3232
std::vector<DetGroup>& result) const override;
3333

3434
//Extension of interface
35-
virtual const BoundDisk& specificSurface() const { return *theDisk; }
35+
const BoundDisk& specificSurface() const { return *theDisk; }
3636

3737
private:
3838
// private methods for the implementation of groupedCompatibleDets()

RecoTracker/TkDetLayers/src/PixelBlade.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PixelBlade final : public GeometricSearchDet {
3535
std::vector<DetGroup>& result) const override __attribute__((hot));
3636

3737
//Extension of the interface
38-
virtual const BoundDiskSector& specificSurface() const { return *theDiskSector; }
38+
const BoundDiskSector& specificSurface() const { return *theDiskSector; }
3939

4040
private:
4141
// private methods for the implementation of groupedCompatibleDets()

0 commit comments

Comments
 (0)