Skip to content

Commit 7cd33bb

Browse files
authored
Merge pull request #45899 from smuzaffar/generators-llvm18-clang-format
[GENERATORS] Changes suggested by new llvm18 clang-format
2 parents f439c8e + f8c46a4 commit 7cd33bb

File tree

27 files changed

+56
-56
lines changed

27 files changed

+56
-56
lines changed

GeneratorInterface/AlpgenInterface/src/AlpgenHeader.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ bool AlpgenHeader::parse(const std::vector<std::string>::const_iterator &begin,
112112

113113
// create human-readable representation for all Alpgen parameter indices
114114

115-
#define DEFINE_ALPGEN_PARAMETER(x) \
116-
{ AlpgenHeader::x, #x }
115+
#define DEFINE_ALPGEN_PARAMETER(x) {AlpgenHeader::x, #x}
117116

118117
namespace {
119118
struct AlpgenParameterName {

GeneratorInterface/Core/plugins/ExternalGeneratorFilter.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ namespace externalgen {
7171
}
7272

7373
template <typename SERIAL>
74-
auto doTransition(SERIAL& iDeserializer, edm::Transition iTrans, unsigned long long iTransitionID)
75-
-> decltype(iDeserializer.deserialize()) {
74+
auto doTransition(SERIAL& iDeserializer,
75+
edm::Transition iTrans,
76+
unsigned long long iTransitionID) -> decltype(iDeserializer.deserialize()) {
7677
decltype(iDeserializer.deserialize()) value;
7778
if (not channel_.doTransition(
7879
[&value, &iDeserializer]() { value = iDeserializer.deserialize(); }, iTrans, iTransitionID)) {

GeneratorInterface/CosmicMuonGenerator/src/CMSCGEN.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ int CMSCGEN::generate() {
335335
break;
336336

337337
} //end of CMSCGEN energy-dependence
338-
} //end of while
338+
} //end of while
339339

340340
pq = e;
341341

GeneratorInterface/EvtGenInterface/interface/DataCardFileWriter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ namespace gen {
2020
class DataCardFileWriter : public edm::stream::EDAnalyzer<> {
2121
public:
2222
DataCardFileWriter(const edm::ParameterSet&);
23-
~DataCardFileWriter() override{};
23+
~DataCardFileWriter() override {}
2424

25-
void analyze(const edm::Event&, const edm::EventSetup&) override{};
25+
void analyze(const edm::Event&, const edm::EventSetup&) override {}
2626
};
2727

2828
}; // namespace gen

GeneratorInterface/EvtGenInterface/interface/EvtGenInterfaceBase.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ namespace CLHEP {
1313
namespace gen {
1414
class EvtGenInterfaceBase {
1515
public:
16-
EvtGenInterfaceBase(){};
17-
virtual ~EvtGenInterfaceBase(){};
16+
EvtGenInterfaceBase() {}
17+
virtual ~EvtGenInterfaceBase() {}
1818

19-
virtual void SetPhotosDecayRandomEngine(CLHEP::HepRandomEngine* decayRandomEngine){};
20-
virtual void init(){};
19+
virtual void SetPhotosDecayRandomEngine(CLHEP::HepRandomEngine* decayRandomEngine) {}
20+
virtual void init() {}
2121
virtual const std::vector<int>& operatesOnParticles() { return m_PDGs; }
2222
virtual const std::vector<std::string>& specialSettings() { return fSpecialSettings; }
2323
virtual HepMC::GenEvent* decay(HepMC::GenEvent* evt) { return evt; }

GeneratorInterface/ExhumeInterface/interface/Particle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Exhume {
1717
const CLHEP::HepLorentzVector& _p, const CLHEP::HepLorentzVector& _vtx, int _id, int _Colour, int _AntiColour)
1818
: p(_p), vtx(_vtx), id(_id), Colour(_Colour), AntiColour(_AntiColour) {}
1919

20-
~Particle(){};
20+
~Particle() {}
2121
//should make these private??????
2222
CLHEP::HepLorentzVector p;
2323
CLHEP::HepLorentzVector vtx;

GeneratorInterface/ExhumeInterface/interface/Weight.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Exhume {
1414
class Weight {
1515
public:
1616
Weight() { NPoints = 1000; };
17-
virtual ~Weight(){};
17+
virtual ~Weight() {}
1818
inline std::map<double, double> GetFuncMap() { return (FuncMap); };
1919
inline double GetTotalIntegral() { return (TotalIntegral); };
2020

GeneratorInterface/GenFilters/plugins/HerwigMaxPtPartonFilter.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ bool HerwigMaxPtPartonFilter::filter(edm::Event& iEvent, const edm::EventSetup&)
137137
isFSQuark = true;
138138
}
139139
} //end if FS Quark criterion
140-
} //End "Garbage" Cut
140+
} //End "Garbage" Cut
141141

142142
if (isFSQuark) {
143143
hFSPartons_JS_PtWgting.Fill(
@@ -155,7 +155,7 @@ bool HerwigMaxPtPartonFilter::filter(edm::Event& iEvent, const edm::EventSetup&)
155155
accepted = true; //Accept the Event
156156

157157
} //End Filtering
158-
} //end processId if statement
158+
} //end processId if statement
159159

160160
else {
161161
accepted = true;

GeneratorInterface/GenFilters/plugins/MCMultiParticleFilter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ bool MCMultiParticleFilter::filter(edm::StreamID, edm::Event& iEvent, const edm:
204204

205205
if (acceptMore_ && nFound == numRequired_)
206206
break; // stop looking if we don't mind having more
207-
} // loop over particles
207+
} // loop over particles
208208

209209
if (nFound == numRequired_) {
210210
return true;

GeneratorInterface/GenFilters/plugins/MCPdgIndexFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace edm {
2424
class MCPdgIndexFilter : public edm::global::EDFilter<> {
2525
public:
2626
explicit MCPdgIndexFilter(const edm::ParameterSet&);
27-
~MCPdgIndexFilter() override{};
27+
~MCPdgIndexFilter() override {}
2828

2929
bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
3030

0 commit comments

Comments
 (0)