Skip to content

[#114.4] Add iwyu enforcement to advanced examples#124

Merged
thomasnemer merged 1 commit intomainfrom
120-add-iwyu-enforcement-to-advanced-examples
Nov 11, 2025
Merged

[#114.4] Add iwyu enforcement to advanced examples#124
thomasnemer merged 1 commit intomainfrom
120-add-iwyu-enforcement-to-advanced-examples

Conversation

@thomasnemer
Copy link
Copy Markdown
Contributor

Summary

Adds CXX_INCLUDE_WHAT_YOU_USE property to all 4 advanced example executables, completing issue #114 by enforcing include-what-you-use for all advanced examples.

Changes

  • Added iwyu enforcement to 01_custom_component/CMakeLists.txt
  • Added iwyu enforcement to 02_custom_layout/CMakeLists.txt
  • Added iwyu enforcement to 03_custom_renderer/CMakeLists.txt
  • Added iwyu enforcement to 04_performance/CMakeLists.txt
  • Fixed missing includes in example source files
  • Removed unused private field isDragging in 01_custom_component/main.cpp

Test Plan

  • mise build-examples succeeds without iwyu errors
  • ✅ All advanced examples build successfully with iwyu enforcement
  • ✅ Pre-push hooks (format check and build validation) pass

Resolves #120
Part of #114

Add CXX_INCLUDE_WHAT_YOU_USE property to all 4 advanced example
executables (01_custom_component, 02_custom_layout, 03_custom_renderer,
04_performance).

This completes issue #114 by enforcing include-what-you-use for all
advanced examples, ensuring consistent include hygiene across the entire
codebase.

Changes:
- Added iwyu enforcement to advanced examples' CMakeLists.txt
- Fixed missing includes in example source files
- Removed unused private field in 01_custom_component

Resolves #120
@thomasnemer thomasnemer merged commit 02815b7 into main Nov 11, 2025
1 check passed
@thomasnemer thomasnemer deleted the 120-add-iwyu-enforcement-to-advanced-examples branch November 11, 2025 18:00
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.

[#114.4] Add iwyu enforcement to advanced examples

1 participant