header-self-containment
google/filament/skills/header_self_containment/SKILL.md
Enforce strict header self-containment so that every header file compiles independently. Use this skill when creating or modifying C++ header files.
Skill21k starsChanged 3 years ago
--- name: header-self-containment description: > Enforce strict header self-containment so that every header file compiles independently. Use this skill when creating or modifying C++ header files. --- # Strict Header Self-Containment Every header file (`.h`) in Filament **must be fully self-contained** and compile independently. * **Rule:** Never assume a header's type dependencies (like `FrameGraphHandle`) are pre-declared by preceding includes in a `.cpp` file. * **Action:** Always explicitly `#include` the declaring header (e.g., `fg/FrameGraphId.h`) inside the header itself.
Discussion
Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.
Posts are public.Sign in to post
No one has posted yet. Be the first.

