Skip to content

Remove unused includes to speed up compilation (IWYU cleanup)#372

Draft
Copilot wants to merge 3 commits into3.0from
copilot/speed-up-compilation
Draft

Remove unused includes to speed up compilation (IWYU cleanup)#372
Copilot wants to merge 3 commits into3.0from
copilot/speed-up-compilation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 26, 2026

  • Remove <iosfwd> and <tuple> from src/zeromq/transport/interprocess.h
  • Remove <algorithm> and <chrono> from src/middleware/transport/intervehicle/driver_thread.h
  • Remove <boost/smart_ptr/shared_ptr.hpp> from driver_base.h, mac_manager.h, frontseat/interface.h, goby_moos_app.h
  • Replace <iostream> with <iosfwd> in src/acomms/queue/queue.h
  • Remove <boost/smart_ptr/shared_ptr.hpp> from src/acomms/dccl/dccl.cpp
  • IWYU cleanup in binary.h, serialization_handlers.h, identifier.h/cpp, interprocess.h
  • Fix build error: add <iostream> to all test/source files that used it transitively via binary.h (mavlink.cpp, hdf5/test-plugin.cpp, queue1-6, udpdriver2-3, route1, ipcodecs, ip_gateway.cpp)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: tsaubergine <732276+tsaubergine@users.noreply.github.com>
Agent-Logs-Url: https://github.com/GobySoft/goby3/sessions/27fee580-1a61-45ce-bcb7-c07a57ca8bc4
Copy link
Copy Markdown
Member

@tsaubergine tsaubergine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 26, 2026

Fix the build error that happens now:

https://app.circleci.com/pipelines/github/GobySoft/goby3/1272/workflows/555ba4b2-2d60-4fb8-8091-1ca5d1475b68/jobs/11588

Fixed in 039cdea. The build error was caused by removing <iostream> from binary.h (as part of the IWYU cleanup) — 13 files were relying on it being transitively included via binary.h and needed explicit #include <iostream> added directly.

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.

2 participants