Skip to content

chore: apply clang-format to existing sources that drifted#84

Merged
pabloinigoblasco merged 1 commit into
mainfrom
chore/clang-format-cleanup
May 12, 2026
Merged

chore: apply clang-format to existing sources that drifted#84
pabloinigoblasco merged 1 commit into
mainfrom
chore/clang-format-cleanup

Conversation

@pabloinigoblasco
Copy link
Copy Markdown
Contributor

@pabloinigoblasco pabloinigoblasco commented May 12, 2026

Summary

Eight tracked sources had accumulated format drift relative to .clang-format (Google style, 120-col, InsertBraces: true). This PR re-applies clang-format over them — output of running pre-commit run --files <those files> against the current tip of main.

No behavior change. Compile output is identical (only whitespace, line wrapping, brace insertion).

Files touched

File Lines reformatted (approx)
data_load_mcap/mcap_source.cpp 60
data_stream_ros2/distro/src/data_stream_ros2.cpp 93
data_stream_ros2/distro/src/ros2_dialog.hpp 56
data_stream_ros2/distro/src/ros2_qos_adapter.hpp 12
data_stream_ros2/distro/src/ros2_schema_builder.hpp 62
data_stream_ros2/proxy/src/data_stream_ros2.cpp 49
data_stream_zmq/zmq_dialog.hpp 43
toolbox_reactive_scripts_editor/reactive_script_editor.cpp 250

Conflict risk

Other open PRs touch some of these files:

Reviewers may want to land this after those merge (or rebase those onto this) to avoid messy whitespace-only conflicts.

Test plan

  • pre-commit run --files <8 files> is clean.
  • CI build passes on all six platforms.

Eight tracked sources had accumulated format drift relative to
.clang-format (Google style, 120-col, InsertBraces: true). Output of
running pre-commit's clang-format hook over each. No behavior change.

Files touched:
- data_load_mcap/mcap_source.cpp
- data_stream_ros2/distro/src/data_stream_ros2.cpp
- data_stream_ros2/distro/src/ros2_dialog.hpp
- data_stream_ros2/distro/src/ros2_qos_adapter.hpp
- data_stream_ros2/distro/src/ros2_schema_builder.hpp
- data_stream_ros2/proxy/src/data_stream_ros2.cpp
- data_stream_zmq/zmq_dialog.hpp
- toolbox_reactive_scripts_editor/reactive_script_editor.cpp
@pabloinigoblasco pabloinigoblasco merged commit e05b464 into main May 12, 2026
10 checks passed
@pabloinigoblasco pabloinigoblasco deleted the chore/clang-format-cleanup branch May 12, 2026 10:19
pabloinigoblasco added a commit that referenced this pull request May 12, 2026
…allback

Resolves format conflicts from PR #84 (chore: apply clang-format).
The reactive_script_editor.cpp conflicts all sit on lines where PR #83
wraps Python-specific code in #ifdef PJ_REACTIVE_HAS_PYTHON; resolved
by keeping PR #83's semantic version (the whole point of the PR) and
relying on the prior chore commit to align everything else with main's
formatting.
pabloinigoblasco added a commit that referenced this pull request May 12, 2026
Resolves conflicts from PR #84 (chore: apply clang-format) landing on
main. The only conflicting file was data_load_mcap/mcap_source.cpp;
all three hunks were lines where this PR introduces the canonical-
object pipeline:

  - reader_keeper_.reset() vs reader.close() on summary-read failure.
    PR keeps the keeper so the deferred fetcher cannot outlive a
    closed reader; resolved by taking PR's version.
  - early-exit on ensureParserBinding error vs old branching shape.
    PR's continue-on-error form is what the rest of the loop expects
    (the bindings.emplace below runs only on the success path).
  - runtimeHost().pushMessage(binding, ts, fetcher) vs the older
    pushRawMessage(binding, ts, span). PR's fetcher-closure path is
    the whole point of the canonical-object pipeline.

Each conflict resolved by taking the PR side (HEAD); no semantic loss.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant