Repository navigation
chore(fl): move loose top-level fl/ files into fl/system/ - #2443
Conversation
…pr_defs.cpp.hpp} into fl/system/
Relocates the last three loose files at src/fl/ root level into
src/fl/system/, leaving only `_build.cpp.hpp` (unity-build glue) at
the top of fl/.
Moves:
src/fl/fastled.h -> src/fl/system/fastled.h
src/fl/fastled_internal.cpp.hpp -> src/fl/system/fastled_internal.cpp.hpp
src/fl/static_constexpr_defs.cpp.hpp -> src/fl/system/static_constexpr_defs.cpp.hpp
Updates ~45 consumers (sketches, drivers, lint scripts, IWYU pragmas,
build glue, doc files) to the new include paths.
Build glue:
- `src/fl/_build.cpp.hpp` no longer pulls in the two .cpp.hpp files
directly; they're now picked up via `src/fl/system/_build.cpp.hpp`
which already aggregates the system/ subdirectory.
- `src/fl/build/fl.cpp` (the flat-fl/ unity build entry point) had
only those two .cpp.hpp's as content. With both moved, the file
served no purpose and is removed. The unity-build manifest in
`ci/lint_cpp/test_unity_build.py` is updated to match, and the
five callsites that used `fl.cpp` as a clang-query target
(`ci/tools/check_noexcept.py`, `ci/tools/add_fl_noexcept.py`,
`ci/refactor/add_fl_noexcept.py`, `.claude/agents/cpp-linter-builder-agent.md`)
now point to `fl.system+.cpp` which covers the bulk of fl/ code.
Linter fix:
- `_get_independently_compiled_dirs()` now also registers ancestor
directories of independently-compiled subdirs. Without this fix,
removing `fl.cpp` made `fl/` look "missing" from `src/_build.cpp.hpp`
even though every subdir under `fl/` is independently compiled via
its own `fl.X+.cpp` recursive build entry.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (52)
📝 WalkthroughWalkthroughThis PR systematically refactors FastLED's internal header structure by relocating the core internal header from ChangesHeader Path and Build Structure Refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Relocates the last three loose files at
src/fl/root level intosrc/fl/system/, leaving only_build.cpp.hpp(unity-build glue) at the top offl/.src/fl/fastled.hsrc/fl/system/fastled.hsrc/fl/fastled_internal.cpp.hppsrc/fl/system/fastled_internal.cpp.hppsrc/fl/static_constexpr_defs.cpp.hppsrc/fl/system/static_constexpr_defs.cpp.hppUpdates ~45 consumers (sketches, drivers, lint scripts, IWYU pragmas, build glue, doc files) to the new include paths.
Build-glue changes
src/fl/_build.cpp.hppno longer pulls in the two.cpp.hppfiles directly — they're now picked up viasrc/fl/system/_build.cpp.hppwhich already aggregates thesystem/subdirectory.src/fl/build/fl.cpp(the flat-fl/unity build entry point) had only those two.cpp.hpps as content. With both moved, the file served no purpose and is removed. The unity-build manifest inci/lint_cpp/test_unity_build.pyis updated to match, and the five callsites that usedfl.cppas a clang-query / refactor target (ci/tools/check_noexcept.py,ci/tools/add_fl_noexcept.py,ci/refactor/add_fl_noexcept.py, and.claude/agents/cpp-linter-builder-agent.md) now point tofl.system+.cppwhich covers the bulk of fl/ code.Linter fix
_get_independently_compiled_dirs()now also registers ancestor directories of independently-compiled subdirs. Without this fix, removingfl.cppmadefl/look "missing" fromsrc/_build.cpp.hppeven though every subdir underfl/is independently compiled via its ownfl.X+.cpprecursive build entry.Test plan
bash test --cpp --clean— 303/303 tests passbash lint --cpp— clean🤖 Generated with Claude Code
Summary by CodeRabbit
Refactor
Chores