Repository navigation
chore(fl): eliminate detail/ + details/ dirs, introduce fl/log/ - #2442
Conversation
Relocates `src/fl/cled_controller.h` to `src/fl/channels/cled_controller.h` so the LED controller base class lives next to the channels/buses that wrap it (and the `ChannelOptions` it already depends on). Updates the legacy shim `src/cled_controller.h` and the two direct test consumers to use the new include path. The shim continues to re-export `CLEDController` into the global namespace for user-facing code. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Removes the legacy `src/fl/detail/` and `src/fl/details/` directories that
predated the per-domain subfolder aggregation. Convention is now firmly
`detail/` (singular, matching boost::detail / std::__detail and the existing
fl/stl/detail/, fl/gfx/detail/, fl/channels/detail/ subdirs).
Re-org:
src/fl/details/crgb_extra.cpp.hpp → src/fl/gfx/crgb_extra.cpp.hpp
src/fl/detail/async_log_queue.{h,cpp} → src/fl/log/async_log_queue.{h,cpp}
src/fl/detail/async_logger.{h,cpp} → src/fl/log/async_logger.{h,cpp}
src/fl/detail/private.h → src/fl/stl/private.h
Introduces `src/fl/log/` as the home for logging implementation internals
(name follows boost::log / absl::log / glog convention). The public log
API (`fl/system/log.h`) is unchanged — it now includes from `fl/log/`
internally; no consumer churn for the 250+ files that include it.
Test files mirror the new layout (tests/fl/log/ with tests/fl/log.cpp
aggregator). Build glue, unity build manifest, IWYU mappings, and
linter exemption tables updated to match.
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 (34)
📝 WalkthroughWalkthroughThis PR reorganizes async logging components from an internal ChangesAsync Logger Module Reorganization
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 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 |
Completes the logging consolidation begun in PR #2442 (which moved async_log_queue and async_logger into src/fl/log/). The user-facing log API now also lives entirely in src/fl/log/, leaving no logging files in src/fl/system/. Mechanical changes only — no API behavior changes. FL_LOG, FL_DBG, FL_WARN, and FL_ERROR macros keep their existing semantics; only the include path moves from "fl/system/log.h" to "fl/log/log.h" across all 271 consumers. - Move src/fl/system/log.h -> src/fl/log/log.h - Move src/fl/system/log.cpp.hpp -> src/fl/log/log.cpp.hpp - Update unity-build glue (drop log.cpp.hpp from fl/system/_build, add to fl/log/_build) - Bulk-flip 271 #include paths via Python script - Move tests/fl/system/log.cpp -> tests/fl/log/log.hpp and wire it into the existing tests/fl/log.cpp aggregator (alongside trace.hpp) - Update README and inline comments referencing the old path Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
Removes the legacy
src/fl/detail/andsrc/fl/details/top-level directories that predated the per-domain subfolder aggregation. Convention is firmlydetail/(singular) — matchesboost::detail,std::__detail, and the existingfl/stl/detail/,fl/gfx/detail/,fl/channels/detail/subdirs.Re-org
src/fl/details/crgb_extra.cpp.hppsrc/fl/gfx/crgb_extra.cpp.hppcrgb.h,hsv16.hsrc/fl/detail/async_log_queue.{h,cpp.hpp}src/fl/log/async_log_queue.{h,cpp.hpp}fl/log/for logging internals (boost/absl/glog convention)src/fl/detail/async_logger.{h,cpp.hpp}src/fl/log/async_logger.{h,cpp.hpp}src/fl/detail/private.hsrc/fl/stl/private.hstl/unordered_map.hWhy a new
fl/log/?logis the canonical name in idiomatic C++: Boost.Log (boost/log/), Abseil (absl/log/), gloglogging/is rare in C++ (more common in Python/Java);logger/is rarely used as a directory namePublic API unchanged
fl/system/log.h(the public log API used by 250+ files) is not moved. It now includes fromfl/log/internally. Zero consumer churn.Test files
tests/fl/detail/*.hpp→tests/fl/log/*.hpptests/fl/detail.cpp→tests/fl/log.cpp(aggregator at parent level per existing convention)Build/lint glue updated
src/fl/_build.cpp.hpp— addedfl/log/_build.cpp.hpp, removed both old detail entriessrc/fl/build/fl.log+.cpp— new unity-build targetsrc/fl/build/fl.{detail,details}+.cpp— deletedci/lint_cpp/test_unity_build.py— manifest updatedci/lint_cpp/{test_path_structure_checker,headers_exist_checker}.py— exemption renamedci/iwyu/fastled.imp— comment paths updatedtests/test_config.py—EXCLUDED_TEST_DIRSupdatedTest plan
bash test --cpp --clean— all 220 unit tests pass (one flaky audio detector test unrelated to changes; passes in--debugmode)bash lint --cpp— clean (TestAggregationChecker happy aftertests/fl/log.cpprename)🤖 Generated with Claude Code
Summary by CodeRabbit
Refactor
Tests
Documentation
Chores