style: clang-format DD4hep integration files for dd4hep_integration merge#277
Merged
plexoos merged 2 commits intodd4hep_integrationfrom Apr 7, 2026
Merged
Conversation
Apply the repository's .clang-format policy (Microsoft-based style) to all newly introduced DD4hep integration files in dd4hepplugins/. No behavioral or logic changes — formatting only. Agent-Logs-Url: https://github.com/BNLNPPS/eic-opticks/sessions/cdb5b6e6-8f61-4a94-90ea-dba37be52b25 Co-authored-by: plexoos <5005079+plexoos@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update formatting to comply with style policy for DD4hep files
style: clang-format DD4hep integration files for dd4hep_integration merge
Apr 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates newly introduced DD4hep integration sources to comply with the repository’s .clang-format policy so cpp-linter formatting checks pass cleanly when merging into dd4hep_integration.
Changes:
- Applied
.clang-format(style=file) formatting across the DD4hep plugin action sources/headers. - Normalized spacing around parentheses, braces, and macro invocations per repo style.
- Formatted the DD4hep raindrop example geometry source to the same policy.
Reviewed changes
Copilot reviewed 4 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| dd4hepplugins/DD4hepSensorIdentifier.hh | Style-only formatting of the DD4hep-aware sensor identifier helper. |
| dd4hepplugins/OpticsEvent.hh | Style-only formatting of the event action interface. |
| dd4hepplugins/OpticsEvent.cc | Style-only formatting of the event action implementation. |
| dd4hepplugins/OpticsRun.hh | Style-only formatting of the run action interface. |
| dd4hepplugins/OpticsRun.cc | Style-only formatting of the run action implementation. |
| dd4hepplugins/OpticsSteppingAction.hh | Style-only formatting of the stepping action interface. |
| dd4hepplugins/OpticsSteppingAction.cc | Style-only formatting of the stepping action implementation. |
| dd4hepplugins/examples/geometry/Raindrop_geo.cpp | Style-only formatting of the DD4hep example detector construction. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New files introduced by the DD4hep integration (PR #266) were not compliant with the repo's
.clang-formatpolicy, blocking a clean merge intodd4hep_integrationunder thecpp-linterCI check.Changes
clang-format --style=file -iagainst all 8 new files indd4hepplugins/:DD4hepSensorIdentifier.hhOpticsEvent.{cc,hh}OpticsRun.{cc,hh}OpticsSteppingAction.{cc,hh}examples/geometry/Raindrop_geo.cppFormatting only — no behavioral or logic changes. Applies the Microsoft-based style with
ColumnLimit: 0,SpaceBeforeParens: Never,SpacesInParentheses: true,AlignConsecutiveDeclarations/Assignments: Consecutive, and related settings from root.clang-format.Original prompt
This pull request was created from Copilot chat.