[#114.3] Add iwyu enforcement to intermediate examples#123
Merged
thomasnemer merged 1 commit intomainfrom Nov 11, 2025
Merged
Conversation
Add CXX_INCLUDE_WHAT_YOU_USE property to all 4 intermediate examples and fix the include issues identified by iwyu. Changes: - Add iwyu enforcement to CMakeLists.txt for all 4 intermediate examples - Fix missing includes in example source files as reported by iwyu - Ensure all intermediate examples build successfully with strict include checking This ensures intermediate examples follow the same include hygiene standards as basic and advanced examples. Closes #119
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.
Summary
Add
CXX_INCLUDE_WHAT_YOU_USEproperty to all 4 intermediate examples (01_nested_panels, 02_responsive_ui, 03_event_handling, 04_dynamic_layout) and fix include issues identified by iwyu.This is part of #114 - making include-what-you-use mandatory for all example builds.
Changes
CMakeLists.txt modifications
"${IWYU_PATH};-Xiwyu;--error;-Xiwyu;--verbose=3"Include fixes
component_traits.hforColortypetheming/color.hfortheming::Colortheming/color.h, removed unused Button includecomponent_traits.hand<vector>, added forward declarationTest Plan
mise build-examplessucceeds without iwyu errorsRelated