Skip to content

Conversation

wvpm
Copy link
Contributor

@wvpm wvpm commented Aug 3, 2025

Replace // depends on ... with actual imports inside macro headers.
Use // IWYU pragma: keep to tell the IDE to keep imports.
Added comments explaining why // IWYU pragma: keep is used.
Shortened imports of .hpp file in related .cpp file to Vector.hpp instead of openvic-simulation/types/Vector.hpp
Split up auto view = owner->get_country_definition()->get_parties() to check for null and explicitly use CountryDefintion, so the IDE will keep the header import.

@wvpm wvpm added topic:codestyle enhancement New feature or request labels Aug 3, 2025
@wvpm wvpm added this to the 0.9.0 milestone Aug 3, 2025
@wvpm wvpm enabled auto-merge August 3, 2025 12:13
@wvpm wvpm merged commit b56274c into master Aug 3, 2025
16 checks passed
@Spartan322 Spartan322 deleted the IWYU branch August 3, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic:codestyle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants