Skip to content

Conversation

@matthew-mccall
Copy link
Collaborator

This pull request refactors the way forward declarations are managed in the Oasis codebase. The main change is the introduction of a new header file, FwdDecls.hpp, which centralizes all forward declarations for Oasis types and templates. This improves maintainability and reduces duplication across headers.

Header organization and codebase maintainability:

  • Added new header file Oasis/FwdDecls.hpp containing all forward declarations for Oasis types and templates, replacing scattered declarations in other headers.
  • Updated include/CMakeLists.txt to include Oasis/FwdDecls.hpp in the build configuration.

Code cleanup:

  • Removed redundant forward declarations from Oasis/Visit.hpp and replaced them with a single #include "FwdDecls.hpp" statement.Introduce FwdDecls.hpp to centralize class and template forward declarations in the Oasis namespace. Updated Visit.hpp to use FwdDecls.hpp, removing redundant declarations. Adjusted CMakeLists.txt to include the new header.

@matthew-mccall matthew-mccall requested a review from 404Naz December 9, 2025 22:35
@matthew-mccall matthew-mccall self-assigned this Dec 9, 2025
404Naz
404Naz previously approved these changes Dec 9, 2025
Copy link
Collaborator

@404Naz 404Naz left a comment

Choose a reason for hiding this comment

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

Lgtm

Introduce `FwdDecls.hpp` to centralize class and template forward declarations in the Oasis namespace. Updated `Visit.hpp` to use `FwdDecls.hpp`, removing redundant declarations. Adjusted `CMakeLists.txt` to include the new header.
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