Skip to content

Commit

Permalink
Merge pull request #59 from legend-exp/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
chore: update pre-commit hooks
  • Loading branch information
gipert authored Mar 12, 2024
2 parents 8211388 + 434a582 commit a7cb86e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
args: ["-L", "hist"]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.4
rev: v18.1.1
hooks:
- id: clang-format
types_or: [c++]
4 changes: 2 additions & 2 deletions include/RMGVGenerator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class RMGVGenerator {
RMGVGenerator(RMGVGenerator&&) = delete;
RMGVGenerator& operator=(RMGVGenerator&&) = delete;

virtual inline void BeginOfRunAction(const G4Run*){};
virtual inline void EndOfRunAction(const G4Run*){};
virtual inline void BeginOfRunAction(const G4Run*) {};
virtual inline void EndOfRunAction(const G4Run*) {};

virtual void SetParticlePosition(G4ThreeVector vec) = 0;
virtual void GeneratePrimaries(G4Event*) = 0;
Expand Down
6 changes: 3 additions & 3 deletions include/RMGVOutputScheme.hh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class RMGVOutputScheme {
public:

inline RMGVOutputScheme(G4AnalysisManager* ana_man) { this->AssignOutputNames(ana_man); }
virtual inline void clear(){};
virtual inline void AssignOutputNames(G4AnalysisManager*){};
virtual inline void EndOfEventAction(const G4Event*){};
virtual inline void clear() {};
virtual inline void AssignOutputNames(G4AnalysisManager*) {};
virtual inline void EndOfEventAction(const G4Event*) {};
inline std::string GetNtupleName(int det_uid) { return fmt::format("det{:03}", det_uid); }
};

Expand Down
4 changes: 2 additions & 2 deletions include/RMGVVertexGenerator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class RMGVVertexGenerator {
RMGVVertexGenerator(RMGVVertexGenerator&&) = delete;
RMGVVertexGenerator& operator=(RMGVVertexGenerator&&) = delete;

virtual inline void BeginOfRunAction(const G4Run*){};
virtual inline void EndOfRunAction(const G4Run*){};
virtual inline void BeginOfRunAction(const G4Run*) {};
virtual inline void EndOfRunAction(const G4Run*) {};

virtual inline bool GenerateVertex(G4ThreeVector& v) {
v = kDummyPrimaryPosition;
Expand Down

0 comments on commit a7cb86e

Please sign in to comment.