Skip to content

Add FL_STATIC_ASSERT wrapper and lint - #2390

Merged
zackees merged 2 commits into
masterfrom
add-fl-static-assert-lint
Apr 22, 2026
Merged

zackees merged 2 commits into
masterfrom
add-fl-static-assert-lint

Conversation

@zackees

@zackees zackees commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add FL_STATIC_ASSERT as the project wrapper for compile-time assertions, with a C++98 fallback in fl/stl/static_assert.h
  • update the banned macro checker to reject raw static_assert(...) usage and add unit coverage for that rule
  • migrate existing source and test static_assert(...) call sites to FL_STATIC_ASSERT(...)

Split out from #2386.

Validation

  • uv run python ci/lint_cpp/banned_macros_checker.py
  • uv run pytest ci/lint_cpp/test_banned_macros_checker.py -q
  • git diff --check
  • uv run test.py --unit --quick --no-interactive --no-fingerprint type_traits
  • uv run test.py --unit --quick --no-interactive --no-fingerprint fixed_point
  • uv run test.py --unit --quick --no-interactive --no-fingerprint pair
  • uv run test.py --unit --quick --no-interactive --no-fingerprint bit_cast

Note: uv run python ci/lint_cpp/run_all_checkers.py still reports existing unrelated colorutils/test path lint violations on master.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added unified compile-time assertion facility compatible with C++03 and later versions.
  • Chores

    • Standardized compile-time validation across the codebase to use a consistent assertion mechanism, improving code maintainability while preserving all existing compile-time checks and error messages.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a5d39c95-4052-4ad4-96d7-cde99176de5f

📥 Commits

Reviewing files that changed from the base of the PR and between f9b4744 and 374a5a8.

📒 Files selected for processing (33)
  • ci/lint_cpp/banned_macros_checker.py
  • ci/lint_cpp/test_banned_macros_checker.py
  • src/FastLED.h
  • src/chipsets.h
  • src/fl/asset.h
  • src/fl/detail/async_log_queue.h
  • src/fl/fltest.h
  • src/fl/fx/2d/noisepalette.cpp.hpp
  • src/fl/math/filter/hampel_filter_impl.h
  • src/fl/math/filter/median_filter_impl.h
  • src/fl/math/filter/savitzky_golay_filter_impl.h
  • src/fl/math/filter/triangular_filter_impl.h
  • src/fl/math/fixed_point/traits.h
  • src/fl/math/screenmap.cpp.hpp
  • src/fl/stl/allocator.h
  • src/fl/stl/bit_cast.h
  • src/fl/stl/bitset.h
  • src/fl/stl/charconv.h
  • src/fl/stl/function.h
  • src/fl/stl/hash.h
  • src/fl/stl/not_null.h
  • src/fl/stl/pair.h
  • src/fl/stl/ratio.h
  • src/fl/stl/string.cpp.hpp
  • src/fl/stl/type_traits.cpp.hpp
  • src/fl/stl/type_traits.h
  • src/fl/stl/unique_ptr.h
  • src/fl/stl/vector.h
  • src/fl/system/fastpin_base.h
  • src/pixel_controller.h
  • src/platforms/esp/32/drivers/gpio_isr_rx/dual_isr_context.h
  • src/platforms/esp/32/drivers/lcd_cam/clockless_lcd_i80_esp32.h.disabled
  • src/platforms/shared/clockless_blocking.h

📝 Walkthrough

Walkthrough

The PR introduces a centralized FL_STATIC_ASSERT macro facility with C++03 compatibility, replacing all direct static_assert(...) usage across the codebase. A compile-time linter enforces this pattern, and ~60+ files are updated to use the new macro while preserving original validation logic.

Changes

Cohort / File(s) Summary
Linter & Testing Infrastructure
ci/lint_cpp/banned_macros_checker.py, ci/lint_cpp/test_banned_macros_checker.py
Adds detection of direct static_assert(...) usage with string-literal stripping to avoid false positives; new unittest suite verifies violation detection for banned patterns and correct allowance of FL_STATIC_ASSERT(...).
Core Static Assert Utility
src/fl/stl/static_assert.h
New header defining FL_STATIC_ASSERT macro that maps to built-in static_assert in C++11+ and falls back to static_assert_failure template trick for C++03 compatibility.
Compatibility & STL Headers
src/cpp_compat.h, src/fl/stl/allocator.h, src/fl/stl/bit_cast.h, src/fl/stl/bitset.h, src/fl/stl/charconv.h, src/fl/stl/function.h, src/fl/stl/hash.h, src/fl/stl/not_null.h, src/fl/stl/pair.h, src/fl/stl/ratio.h, src/fl/stl/string.cpp.hpp, src/fl/stl/type_traits.h, src/fl/stl/type_traits.cpp.hpp, src/fl/stl/unique_ptr.h, src/fl/stl/vector.h
Include fl/stl/static_assert.h and replace static_assert with FL_STATIC_ASSERT in compile-time validations (type constraints, size checks, template requirements); cpp_compat.h removes local C++03 fallback macro, relying on new utility.
Math & Fixed-Point Libraries
src/fl/math/filter/hampel_filter_impl.h, src/fl/math/filter/median_filter_impl.h, src/fl/math/filter/savitzky_golay_filter_impl.h, src/fl/math/filter/triangular_filter_impl.h, src/fl/math/fixed_point/traits.h, src/fl/math/screenmap.cpp.hpp
Include fl/stl/static_assert.h and update template parameter/type validations from static_assert to FL_STATIC_ASSERT (filter N-parameter parity, fixed-point bit-width, type matching).
FastLED Core Headers
src/FastLED.h, src/chipsets.h, src/fl/asset.h, src/fl/detail/async_log_queue.h, src/fl/fltest.h, src/fl/fx/2d/noisepalette.cpp.hpp, src/pixel_controller.h, src/platforms/intmap.h, src/platforms/stub/thread_stub_stl.h
Include fl/stl/static_assert.h and replace static_assert with FL_STATIC_ASSERT in compile-time checks (SPI validation, asset path checks, chipset reordering, palette sizing, scaling, test framework macros).
ARM Platforms
src/platforms/arm/common/m0clockless_c.h, src/platforms/arm/compile_test.hpp, src/platforms/arm/k20/clockless_block_arm_k20.h, src/platforms/arm/k66/clockless_block_arm_k66.h, src/platforms/arm/nrf52/arbiter_nrf52.h, src/platforms/arm/nrf52/clockless_arm_nrf52.h, src/platforms/arm/nrf52/fastspi_arm_nrf52.h, src/platforms/arm/sam/clockless_block_arm_sam.h, src/platforms/arm/stm32/fastspi_arm_stm32.h, src/platforms/arm/teensy/teensy31_32/clockless_block_arm_k20.h, src/platforms/arm/teensy/teensy36/clockless_block_arm_k66.h
Include fl/stl/static_assert.h and update platform-specific compile-time validations (lane counts, offset alignment, pin validity, timing constraints) from static_assert to FL_STATIC_ASSERT.
AVR Platforms
src/platforms/avr/attiny/clockless_blocking.h, src/platforms/avr/attiny/clockless_blocking_controller.h, src/platforms/avr/clockless_avr.h
Include fl/stl/static_assert.h and replace timing cycle-count validations from static_assert to FL_STATIC_ASSERT.
ESP32 Platforms
src/platforms/esp/32/clockless_block_esp32.h, src/platforms/esp/32/core/fastpin_esp32.h, src/platforms/esp/32/core/fastspi_esp32_arduino.h, src/platforms/esp/32/core/fastspi_esp32_idf.h, src/platforms/esp/32/drivers/gpio_isr_rx/dual_isr_context.h, src/platforms/esp/32/drivers/i2s/clockless_i2s_esp32.h, src/platforms/esp/32/drivers/lcd_cam/clockless_lcd_i80_esp32.h.disabled, src/platforms/esp/32/drivers/parlio/parlio_buffer_calc.h, src/platforms/esp/32/drivers/rmt/rmt_4/idf4_clockless_rmt_esp32.h, src/platforms/esp/32/drivers/rmt/rmt_5/idf5_clockless.h, src/platforms/esp/32/drivers/rmt_rx/rmt_rx_channel.cpp.hpp, src/platforms/esp/32/drivers/spi/idf5_clockless_spi_esp32.h, src/platforms/esp/32/interrupts/riscv.hpp
Include fl/stl/static_assert.h and update GPIO validity, buffer sizing, memory layout, and type-compatibility checks from static_assert to FL_STATIC_ASSERT; minor formatting fixes (trailing newlines).
Shared Platform Code
src/platforms/compile_test.cpp.hpp, src/platforms/shared/clockless_blocking.h, src/platforms/shared/spi_bitbang/spi_isr_8.h, src/platforms/shared/spi_bitbang/spi_isr_16.h, src/platforms/shared/spi_bitbang/spi_isr_32.h, src/platforms/system/fastpin_base.h
Include fl/stl/static_assert.h and convert compile-time layout verification, timing constraints, and pin validation from static_assert to FL_STATIC_ASSERT.
Test Suite
tests/fl/asset.cpp, tests/fl/force_inline.cpp, tests/fl/gfx/corkscrew.cpp, tests/fl/math/alpha.cpp, tests/fl/math/fixed_point.cpp, tests/fl/math/random.cpp, tests/fl/rx_device.cpp, tests/fl/stl/allocator.cpp, tests/fl/stl/array.cpp, tests/fl/stl/bit_cast.cpp, tests/fl/stl/cstddef.cpp, tests/fl/stl/functional.cpp, tests/fl/stl/limits.cpp, tests/fl/stl/limits.hpp, tests/fl/stl/move.cpp, tests/fl/stl/not_null.cpp, tests/fl/stl/pair.cpp, tests/fl/stl/range_access.cpp, tests/fl/stl/stdint.cpp, tests/fl/stl/type_traits.cpp, tests/fl/stl/utility.cpp, tests/fl/system/delay.cpp, tests/platforms/cycle_type.cpp, tests/platforms/shared/clockless_timing.cpp
Include fl/stl/static_assert.h and replace constexpr verification checks from static_assert to FL_STATIC_ASSERT across type traits, numeric limits, fixed-point, platform timing, and functional tests.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐰 A macro hops through every file,
FL_STATIC_ASSERT makes us smile!
From C++03 to modern ways,
Compile-time checks—hooray, hooray!
No more assertions left behind,
One unified macro, perfectly aligned! 🎯

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 15.25% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add FL_STATIC_ASSERT wrapper and lint' directly describes the main change: introducing a new wrapper macro FL_STATIC_ASSERT and updating the lint checker to enforce its usage.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-fl-static-assert-lint

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 1197.20ms

Top 5 Slowest Headers

  1. FastLED.h - 914.31ms
  2. fl/fastled.h - 392.92ms
  3. fl/task/executor.h - 297.39ms
  4. crgb.h - 223.60ms
  5. fl/gfx/crgb.h - 222.27ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (914.3ms)
⚠️ Header fl/fastled.h exceeds 150ms (392.9ms)
⚠️ Header fl/task/executor.h exceeds 150ms (297.4ms)
⚠️ Header crgb.h exceeds 150ms (223.6ms)
⚠️ Header fl/gfx/crgb.h exceeds 150ms (222.3ms)
⚠️ Header fl/math/ease.h exceeds 150ms (217.2ms)
⚠️ Header fl/math/fixed_point.h exceeds 150ms (214.7ms)
⚠️ Header fl/task/scheduler.h exceeds 150ms (156.3ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (146.1ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (145.3ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (144.1ms)
⚠️ Header platforms/thread.h exceeds 50ms (144.0ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (144.0ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (143.9ms)
⚠️ Header fl/ui.h exceeds 50ms (127.3ms)
⚠️ Header fl/task/promise.h exceeds 50ms (126.7ms)
⚠️ Header fl/stl/json.h exceeds 50ms (79.5ms)
⚠️ Header fl/stl/function.h exceeds 50ms (75.0ms)
⚠️ Header fl/math/fixed_point/s4x12.h exceeds 50ms (64.9ms)
⚠️ Header fl/stl/json/types.h exceeds 50ms (61.9ms)
⚠️ Header platforms.h exceeds 50ms (56.6ms)
⚠️ Header platforms/stub/fastled_stub.h exceeds 50ms (56.6ms)
⚠️ Template instantiation time is high (52.8%)

Full Report
================================================================================
FASTLED COMPILATION PERFORMANCE REPORT
================================================================================
Generated: 2026-04-22 21:51:55
Compiler: clang++-17
File: ci/perf/test_compile.cpp

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    1,790.09 ms
Frontend Time:             17.87 ms (1.0%)
Backend Time:              183.60 ms (10.3%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    10584.82 ms (591.3%)
Templates                   631.55 ms ( 35.3%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1328.4 ms - FastLED.h (SLOW)
   620.3 ms - fl/task/executor.h (SLOW)
   458.9 ms - fl/fastled.h (SLOW)
   337.5 ms - fl/task/scheduler.h (SLOW)
   327.6 ms - fl/stl/singleton.h (SLOW)
   326.8 ms - fl/stl/thread_local.h (SLOW)
   325.6 ms - fl/stl/thread.h (SLOW)
   325.5 ms - platforms/thread.h (SLOW)
   325.4 ms - platforms/stub/thread_stub.h (SLOW)
   325.4 ms - platforms/stub/thread_stub_stl.h (SLOW)
   268.4 ms - crgb.h (SLOW)
   268.4 ms - fl/task/promise.h (SLOW)
   267.1 ms - fl/gfx/crgb.h (SLOW)
   262.1 ms - fl/math/ease.h (SLOW)
   259.6 ms - fl/math/fixed_point.h (SLOW)
   218.1 ms - fl/stl/function.h (SLOW)
   126.3 ms - fl/ui.h (SLOW)
   109.0 ms - fl/math/fixed_point/s4x12.h (SLOW)
    98.1 ms - fl/stl/vector.h (SLOW)
    87.9 ms - fl/math/sin32.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1328.4ms)
  ├─  620.3 ms - fl/task/executor.h
  │ ├─  337.5 ms - fl/task/scheduler.h
  │ │ ├─  327.6 ms - fl/stl/singleton.h
  │ │ │ └─  326.8 ms - fl/stl/thread_local.h
  │ │ │   └─  325.6 ms - fl/stl/thread.h
  │ │ │     └─  325.5 ms - platforms/thread.h
  │ │ │       └─  325.4 ms - platforms/stub/thread_stub.h
  │ │ │         └─  325.4 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  320.8 ms - thread
  │ │ │             ├─  197.4 ms - std_thread.h
  │ │ │             └─  102.6 ms - this_thread_sleep.h
  │ │ └─    9.0 ms - fl/task/task.h
  │ │   └─    3.8 ms - fl/trace.h
  │ │     ├─    2.4 ms - fl/stl/chrono.h
  │ │     └─    1.0 ms - fl/stl/tuple.h
  │ ├─  268.4 ms - fl/task/promise.h
  │ │ ├─  218.1 ms - fl/stl/function.h
  │ │ │ ├─   98.1 ms - fl/stl/vector.h
  │ │ │ │ ├─   56.7 ms - fl/math/math.h
  │ │ │ │ │ └─   49.4 ms - fl/stl/undef.h
  │ │ │ │ │   └─   82.8 ms - stdlib.h
  │ │ │ │ │     ├─   42.4 ms - cstdlib
  │ │ │ │ │     │ └─   82.8 ms - stdlib.h
  │ │ │ │ │     │   ├─   42.4 ms - cstdlib
  │ │ │ │ │     │   ├─   11.8 ms - types.h
  │ │ │ │ │     │   └─    0.6 ms - floatn.h
  │ │ │ │ │     ├─   11.8 ms - types.h
  │ │ │ │ │     │ ├─   11.8 ms - types.h
  │ │ │ │ │     │ │ ├─   11.8 ms - types.h
  │ │ │ │ │     │ │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │ │     │ │ ├─    2.0 ms - endian.h
  │ │ │ │ │     │ │ └─    2.0 ms - select.h
  │ │ │ │ │     │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │ │     │ │ └─    1.7 ms - thread-shared-types.h
  │ │ │ │ │     │ ├─    2.0 ms - endian.h
  │ │ │ │ │     │ │ └─    0.5 ms - byteswap.h
  │ │ │ │ │     │ └─    2.0 ms - select.h
  │ │ │ │ │     └─    0.6 ms - floatn.h
  │ │ │ │ ├─   19.9 ms - fl/stl/allocator.h
  │ │ │ │ │ └─   13.9 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    9.1 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    2.9 ms - fl/stl/unique_ptr.h
  │ │ │ │ │       └─    0.6 ms - fl/stl/utility.h
  │ │ │ │ ├─   10.1 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─    2.9 ms - fl/stl/basic_vector.h
  │ │ │ │ └─    1.0 ms - fl/stl/functional.h
  │ │ │ ├─   73.2 ms - fl/stl/variant.h
  │ │ │ │ └─   70.8 ms - fl/stl/new.h
  │ │ │ │   └─   70.8 ms - platforms/new.h
  │ │ │ │     └─   70.7 ms - platforms/shared/new.h
  │ │ │ │       └─   51.3 ms - new
  │ │ │ │         ├─   12.3 ms - c++config.h
  │ │ │ │         │ └─    4.7 ms - os_defines.h
  │ │ │ │         └─    0.9 ms - version.h
  │ │ │ ├─   32.1 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─   21.0 ms - fl/stl/type_traits.h
  │ │ │ │ │ └─   14.4 ms - fl/stl/move.h
  │ │ │ │ ├─    6.0 ms - fl/stl/atomic.h
  │ │ │ │ │ └─    5.0 ms - platforms/atomic.h
  │ │ │ │ │   └─    5.0 ms - platforms/shared/atomic.h
  │ │ │ │ └─    0.8 ms - fl/stl/bit_cast.h
  │ │ │ ├─    4.9 ms - fl/stl/algorithm.h
  │ │ │ │ └─    2.0 ms - fl/math/random.h
  │ │ │ │   └─    0.9 ms - fl/math/random8.h
  │ │ │ └─    3.4 ms - fl/stl/compiler_control.h
  │ │ └─   45.0 ms - fl/stl/string.h
  │ │   ├─   13.0 ms - fl/stl/basic_string.h
  │ │   │ ├─    1.1 ms - fl/stl/not_null.h
  │ │   │ ├─    0.9 ms - fl/stl/iterator.h
  │ │   │ └─    0.6 ms - fl/stl/charconv.h
  │ │   ├─    8.9 ms - fl/stl/span.h
  │ │   │ └─    3.5 ms - fl/math/geometry.h
  │ │   ├─    5.8 ms - fl/stl/string_view.h
  │ │   └─    1.6 ms - fl/stl/optional.h
  │ ├─   12.0 ms - platforms/await.h
  │ │ └─   11.5 ms - platforms/coroutine_runtime.h
  │ │   └─    9.9 ms - fl/system/engine_events.h
  │ │     ├─    5.1 ms - fl/math/screenmap.h
  │ │     │ └─    3.8 ms - fl/stl/flat_map.h
  │ │     └─    3.2 ms - fl/math/xymap.h
  │ │       └─    0.8 ms - fl/math/lut.h
  │ └─    0.8 ms - fl/task/promise_result.h
  ├─  458.9 ms - fl/fastled.h
  │ ├─  268.4 ms - crgb.h
  │ │ ├─  267.1 ms - fl/gfx/crgb.h
  │ │ │ └─  262.1 ms - fl/math/ease.h
  │ │ │   └─  259.6 ms - fl/math/fixed_point.h
  │ │ │     ├─  109.0 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   87.9 ms - fl/math/sin32.h
  │ │ │     │ │ └─   84.6 ms - fl/math/simd.h
  │ │ │     │ │   └─   84.0 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   83.7 ms - platforms/simd.h
  │ │ │     │ ├─    1.1 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   19.0 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   18.9 ms - fl/math/fixed_point/s16x16.h
  │ │ │     ├─   18.8 ms - fl/math/fixed_point/s8x8.h
  │ │ │     └─   18.6 ms - fl/math/fixed_point/s24x8.h
  │ │ └─    0.9 ms - chsv.h
  │ │   └─    0.8 ms - fl/gfx/hsv.h
  │ ├─   77.3 ms - platforms.h
  │ │ └─   77.3 ms - platforms/stub/fastled_stub.h
  │ │   ├─   39.5 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   39.5 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   33.0 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   30.8 ms - fl/id_tracker.h
  │ │   │   │   └─   29.8 ms - fl/stl/mutex.h
  │ │   │   │     └─   29.7 ms - platforms/mutex.h
  │ │   │   │       └─   29.6 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    6.1 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   37.7 ms - platforms/stub/clockless_stub.h
  │ │     └─   37.7 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─   13.4 ms - fl/channels/data.h
  │ │       │ └─   10.0 ms - fl/channels/config.h
  │ │       │   ├─    2.2 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    1.4 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.7 ms - fl/chipsets/spi.h
  │ │       ├─   13.3 ms - fl/system/log.h
  │ │       │ └─   12.9 ms - fl/stl/strstream.h
  │ │       ├─    2.5 ms - fl/channels/manager.h
  │ │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │ │       └─    1.1 ms - fl/channels/driver.h
  │ ├─   43.5 ms - colorutils.h
  │ │ └─   43.1 ms - fl/gfx/colorutils.h
  │ │   ├─    9.1 ms - fl/gfx/blur.h
  │ │   │ └─    4.9 ms - fl/gfx/canvas.h
  │ │   │   └─    3.0 ms - fl/math/alpha.h
  │ │   ├─    3.3 ms - fl/gfx/fill.h
  │ │   └─    1.9 ms - fl/gfx/crgb16.h
  │ ├─   24.2 ms - pixel_controller.h
  │ │ ├─   17.4 ms - pixel_iterator.h
  │ │ │ └─   17.3 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    5.1 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    4.0 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    3.3 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    4.5 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    1.1 ms - fl/chipsets/encoders/sk9822.h
  │ │ │   └─    0.9 ms - fl/chipsets/encoders/hd108.h
  │ │ └─    2.7 ms - rgbw.h
  │ │   └─    2.5 ms - fl/gfx/rgbw.h
  │ └─   23.3 ms - pixeltypes.h
  │   ├─   19.5 ms - lib8tion.h
  │   │ ├─   10.1 ms - fl/math/math8.h
  │   │ │ ├─    5.3 ms - fl/math/intmap.h
  │   │ │ │ └─    4.1 ms - platforms/intmap.h
  │   │ │ ├─    2.6 ms - fl/math/scale8.h
  │   │ │ │ └─    2.5 ms - platforms/scale8.h
  │   │ │ │   └─    1.0 ms - platforms/shared/scale8.h
  │   │ │ └─    2.1 ms - platforms/math8.h
  │   │ │   └─    1.7 ms - platforms/shared/math8.h
  │   │ ├─    2.1 ms - fl/math/beat.h
  │   │ │ └─    1.1 ms - fl/math/trig8.h
  │   │ │   └─    1.1 ms - platforms/trig8.h
  │   │ │     └─    1.0 ms - platforms/shared/trig8.h
  │   │ ├─    0.5 ms - fl/math/qfx.h
  │   │ └─    0.5 ms - fl/math/time_functions.h
  │   └─    3.3 ms - crgb.hpp
  ├─  126.3 ms - fl/ui.h
  │ ├─   79.0 ms - fl/stl/json.h
  │ │ └─   61.4 ms - fl/stl/json/types.h
  │ │   └─    7.8 ms - fl/stl/limits.h
  │ ├─   10.6 ms - fl/ui_impl.h
  │ │ └─   10.1 ms - platforms/ui_defs.h
  │ │   ├─    2.3 ms - platforms/shared/ui/json/audio.h
  │ │   │ └─    1.1 ms - platforms/shared/ui/json/audio_internal.h
  │ │   ├─    1.7 ms - platforms/shared/ui/json/button.h
  │ │   │ └─    0.7 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/help.h
  │ │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │ │   └─    0.9 ms - platforms/shared/ui/json/number_field.h
  │ └─   10.3 ms - fl/asset.h
  │   └─    8.7 ms - fl/stl/url.h
  ├─   33.3 ms - fl/audio/audio_processor.h
  │ ├─    8.1 ms - fl/audio/audio_context.h
  │ │ └─    2.3 ms - fl/audio/fft/fft.h
  │ ├─    2.9 ms - fl/audio/detector/vibe.h
  │ ├─    1.6 ms - fl/audio/signal_conditioner.h
  │ └─    0.6 ms - fl/audio/noise_floor_tracker.h
  └─   29.0 ms - chipsets.h
    ├─   11.8 ms - fl/chipsets/ucs7604.h
    │ └─    8.9 ms - fl/chipsets/encoders/ucs7604.h
    ├─    7.1 ms - fl/chipsets/apa102.h
    ├─    1.7 ms - fl/chipsets/lpd880x.h
    ├─    0.9 ms - fl/chipsets/p9813.h
    └─    0.8 ms - fl/chipsets/encoders/ws2816.h
fl/task/executor.h (620.3ms)
  ├─  337.5 ms - fl/task/scheduler.h
  │ ├─  327.6 ms - fl/stl/singleton.h
  │ │ └─  326.8 ms - fl/stl/thread_local.h
  │ │   └─  325.6 ms - fl/stl/thread.h
  │ │     └─  325.5 ms - platforms/thread.h
  │ │       └─  325.4 ms - platforms/stub/thread_stub.h
  │ │         └─  325.4 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  320.8 ms - thread
  │ │             ├─  197.4 ms - std_thread.h
  │ │             │ ├─   57.7 ms - tuple
  │ │             │ ├─   48.1 ms - iosfwd
  │ │             │ ├─   28.1 ms - refwrap.h
  │ │             │ ├─   12.1 ms - gthr.h
  │ │             │ └─    6.3 ms - unique_ptr.h
  │ │             └─  102.6 ms - this_thread_sleep.h
  │ │               ├─   88.8 ms - chrono.h
  │ │               └─    4.0 ms - cerrno
  │ └─    9.0 ms - fl/task/task.h
  │   └─    3.8 ms - fl/trace.h
  │     ├─    2.4 ms - fl/stl/chrono.h
  │     └─    1.0 ms - fl/stl/tuple.h
  ├─  268.4 ms - fl/task/promise.h
  │ ├─  218.1 ms - fl/stl/function.h
  │ │ ├─   98.1 ms - fl/stl/vector.h
  │ │ │ ├─   56.7 ms - fl/math/math.h
  │ │ │ │ └─   49.4 ms - fl/stl/undef.h
  │ │ │ │   └─   82.8 ms - stdlib.h
  │ │ │ │     ├─   42.4 ms - cstdlib
  │ │ │ │     │ └─   82.8 ms - stdlib.h
  │ │ │ │     │   ├─   42.4 ms - cstdlib
  │ │ │ │     │   │ └─   82.8 ms - stdlib.h
  │ │ │ │     │   ├─   11.8 ms - types.h
  │ │ │ │     │   │ ├─   11.8 ms - types.h
  │ │ │ │     │   │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │     │   │ ├─    2.0 ms - endian.h
  │ │ │ │     │   │ └─    2.0 ms - select.h
  │ │ │ │     │   └─    0.6 ms - floatn.h
  │ │ │ │     ├─   11.8 ms - types.h
  │ │ │ │     │ ├─   11.8 ms - types.h
  │ │ │ │     │ │ ├─   11.8 ms - types.h
  │ │ │ │     │ │ │ ├─   11.8 ms - types.h
  │ │ │ │     │ │ │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │     │ │ │ ├─    2.0 ms - endian.h
  │ │ │ │     │ │ │ └─    2.0 ms - select.h
  │ │ │ │     │ │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │     │ │ │ └─    1.7 ms - thread-shared-types.h
  │ │ │ │     │ │ ├─    2.0 ms - endian.h
  │ │ │ │     │ │ │ └─    0.5 ms - byteswap.h
  │ │ │ │     │ │ └─    2.0 ms - select.h
  │ │ │ │     │ ├─    2.4 ms - pthreadtypes.h
  │ │ │ │     │ │ └─    1.7 ms - thread-shared-types.h
  │ │ │ │     │ ├─    2.0 ms - endian.h
  │ │ │ │     │ │ └─    0.5 ms - byteswap.h
  │ │ │ │     │ └─    2.0 ms - select.h
  │ │ │ │     └─    0.6 ms - floatn.h
  │ │ │ ├─   19.9 ms - fl/stl/allocator.h
  │ │ │ │ └─   13.9 ms - fl/stl/bitset.h
  │ │ │ │   └─    9.1 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    2.9 ms - fl/stl/unique_ptr.h
  │ │ │ │       └─    0.6 ms - fl/stl/utility.h
  │ │ │ ├─   10.1 ms - fl/stl/initializer_list.h
  │ │ │ ├─    2.9 ms - fl/stl/basic_vector.h
  │ │ │ └─    1.0 ms - fl/stl/functional.h
  │ │ ├─   73.2 ms - fl/stl/variant.h
  │ │ │ └─   70.8 ms - fl/stl/new.h
  │ │ │   └─   70.8 ms - platforms/new.h
  │ │ │     └─   70.7 ms - platforms/shared/new.h
  │ │ │       └─   51.3 ms - new
  │ │ │         ├─   12.3 ms - c++config.h
  │ │ │         │ └─    4.7 ms - os_defines.h
  │ │ │         │   └─    4.4 ms - features.h
  │ │ │         └─    0.9 ms - version.h
  │ │ ├─   32.1 ms - fl/stl/shared_ptr.h
  │ │ │ ├─   21.0 ms - fl/stl/type_traits.h
  │ │ │ │ └─   14.4 ms - fl/stl/move.h
  │ │ │ ├─    6.0 ms - fl/stl/atomic.h
  │ │ │ │ └─    5.0 ms - platforms/atomic.h
  │ │ │ │   └─    5.0 ms - platforms/shared/atomic.h
  │ │ │ └─    0.8 ms - fl/stl/bit_cast.h
  │ │ ├─    4.9 ms - fl/stl/algorithm.h
  │ │ │ └─    2.0 ms - fl/math/random.h
  │ │ │   └─    0.9 ms - fl/math/random8.h
  │ │ └─    3.4 ms - fl/stl/compiler_control.h
  │ └─   45.0 ms - fl/stl/string.h
  │   ├─   13.0 ms - fl/stl/basic_string.h
  │   │ ├─    1.1 ms - fl/stl/not_null.h
  │   │ ├─    0.9 ms - fl/stl/iterator.h
  │   │ └─    0.6 ms - fl/stl/charconv.h
  │   ├─    8.9 ms - fl/stl/span.h
  │   │ └─    3.5 ms - fl/math/geometry.h
  │   ├─    5.8 ms - fl/stl/string_view.h
  │   └─    1.6 ms - fl/stl/optional.h
  ├─   12.0 ms - platforms/await.h
  │ └─   11.5 ms - platforms/coroutine_runtime.h
  │   └─    9.9 ms - fl/system/engine_events.h
  │     ├─    5.1 ms - fl/math/screenmap.h
  │     │ └─    3.8 ms - fl/stl/flat_map.h
  │     └─    3.2 ms - fl/math/xymap.h
  │       └─    0.8 ms - fl/math/lut.h
  └─    0.8 ms - fl/task/promise_result.h
fl/fastled.h (458.9ms)
  ├─  268.4 ms - crgb.h
  │ ├─  267.1 ms - fl/gfx/crgb.h
  │ │ └─  262.1 ms - fl/math/ease.h
  │ │   └─  259.6 ms - fl/math/fixed_point.h
  │ │     ├─  109.0 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   87.9 ms - fl/math/sin32.h
  │ │     │ │ └─   84.6 ms - fl/math/simd.h
  │ │     │ │   └─   84.0 ms - fl/math/simd/types.h
  │ │     │ │     └─   83.7 ms - platforms/simd.h
  │ │     │ │       └─   83.6 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    1.1 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.8 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   19.0 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   18.9 ms - fl/math/fixed_point/s16x16.h
  │ │     ├─   18.8 ms - fl/math/fixed_point/s8x8.h
  │ │     └─   18.6 ms - fl/math/fixed_point/s24x8.h
  │ └─    0.9 ms - chsv.h
  │   └─    0.8 ms - fl/gfx/hsv.h
  ├─   77.3 ms - platforms.h
  │ └─   77.3 ms - platforms/stub/fastled_stub.h
  │   ├─   39.5 ms - platforms/stub/fastspi_stub.h
  │   │ └─   39.5 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   33.0 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   30.8 ms - fl/id_tracker.h
  │   │   │   └─   29.8 ms - fl/stl/mutex.h
  │   │   │     └─   29.7 ms - platforms/mutex.h
  │   │   │       └─   29.6 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   29.6 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    6.1 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   37.7 ms - platforms/stub/clockless_stub.h
  │     └─   37.7 ms - platforms/stub/clockless_channel_stub.h
  │       ├─   13.4 ms - fl/channels/data.h
  │       │ └─   10.0 ms - fl/channels/config.h
  │       │   ├─    2.2 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    1.4 ms - fl/chipsets/led_timing.h
  │       │   └─    1.7 ms - fl/chipsets/spi.h
  │       ├─   13.3 ms - fl/system/log.h
  │       │ └─   12.9 ms - fl/stl/strstream.h
  │       ├─    2.5 ms - fl/channels/manager.h
  │       ├─    1.6 ms - fl/stl/weak_ptr.h
  │       └─    1.1 ms - fl/channels/driver.h
  ├─   43.5 ms - colorutils.h
  │ └─   43.1 ms - fl/gfx/colorutils.h
  │   ├─    9.1 ms - fl/gfx/blur.h
  │   │ └─    4.9 ms - fl/gfx/canvas.h
  │   │   └─    3.0 ms - fl/math/alpha.h
  │   ├─    3.3 ms - fl/gfx/fill.h
  │   └─    1.9 ms - fl/gfx/crgb16.h
  ├─   24.2 ms - pixel_controller.h
  │ ├─   17.4 ms - pixel_iterator.h
  │ │ └─   17.3 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    5.1 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    4.0 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    3.3 ms - fl/gfx/gamma_lut.h
  │ │   ├─    4.5 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    1.1 ms - fl/chipsets/encoders/sk9822.h
  │ │   └─    0.9 ms - fl/chipsets/encoders/hd108.h
  │ └─    2.7 ms - rgbw.h
  │   └─    2.5 ms - fl/gfx/rgbw.h
  └─   23.3 ms - pixeltypes.h
    ├─   19.5 ms - lib8tion.h
    │ ├─   10.1 ms - fl/math/math8.h
    │ │ ├─    5.3 ms - fl/math/intmap.h
    │ │ │ └─    4.1 ms - platforms/intmap.h
    │ │ ├─    2.6 ms - fl/math/scale8.h
    │ │ │ └─    2.5 ms - platforms/scale8.h
    │ │ │   └─    1.0 ms - platforms/shared/scale8.h
    │ │ └─    2.1 ms - platforms/math8.h
    │ │   └─    1.7 ms - platforms/shared/math8.h
    │ ├─    2.1 ms - fl/math/beat.h
    │ │ └─    1.1 ms - fl/math/trig8.h
    │ │   └─    1.1 ms - platforms/trig8.h
    │ │     └─    1.0 ms - platforms/shared/trig8.h
    │ ├─    0.5 ms - fl/math/qfx.h
    │ └─    0.5 ms - fl/math/time_functions.h
    └─    3.3 ms - crgb.hpp
fl/ui.h (126.3ms)
  ├─   79.0 ms - fl/stl/json.h
  │ └─   61.4 ms - fl/stl/json/types.h
  │   └─    7.8 ms - fl/stl/limits.h
  ├─   10.6 ms - fl/ui_impl.h
  │ └─   10.1 ms - platforms/ui_defs.h
  │   ├─    2.3 ms - platforms/shared/ui/json/audio.h
  │   │ └─    1.1 ms - platforms/shared/ui/json/audio_internal.h
  │   ├─    1.7 ms - platforms/shared/ui/json/button.h
  │   │ └─    0.7 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.9 ms - platforms/shared/ui/json/help.h
  │   ├─    0.9 ms - platforms/shared/ui/json/description.h
  │   └─    0.9 ms - platforms/shared/ui/json/number_field.h
  └─   10.3 ms - fl/asset.h
    └─    8.7 ms - fl/stl/url.h
fl/audio/audio_processor.h (33.3ms)
  ├─    8.1 ms - fl/audio/audio_context.h
  │ └─    2.3 ms - fl/audio/fft/fft.h
  ├─    2.9 ms - fl/audio/detector/vibe.h
  ├─    1.6 ms - fl/audio/signal_conditioner.h
  └─    0.6 ms - fl/audio/noise_floor_tracker.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1328.4 ms - Source: FastLED.h
  2.  1328.4 ms - Total Source: 
  3.   670.0 ms - Total ParseClass: 
  4.   620.3 ms - Source: fl/task/executor.h
  5.   458.9 ms - Source: fl/fastled.h
  6.   337.5 ms - Source: fl/task/scheduler.h
  7.   327.6 ms - Source: fl/stl/singleton.h
  8.   326.8 ms - Source: fl/stl/thread_local.h
  9.   325.6 ms - Source: fl/stl/thread.h
 10.   325.5 ms - Source: platforms/thread.h
 11.   325.4 ms - Source: platforms/stub/thread_stub.h
 12.   325.4 ms - Source: platforms/stub/thread_stub_stl.h
 13.   320.8 ms - Source: thread
 14.   268.4 ms - Source: crgb.h
 15.   268.4 ms - Source: fl/task/promise.h
 16.   267.1 ms - Source: fl/gfx/crgb.h
 17.   262.1 ms - Source: fl/math/ease.h
 18.   259.6 ms - Source: fl/math/fixed_point.h
 19.   224.1 ms - Total InstantiateFunction: 
 20.   218.1 ms - Source: fl/stl/function.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1328.4ms)
    - fl/task/executor.h (620.3ms)
    - fl/fastled.h (458.9ms)
    - fl/task/scheduler.h (337.5ms)
    - fl/stl/singleton.h (327.6ms)
    - fl/stl/thread_local.h (326.8ms)
    - fl/stl/thread.h (325.6ms)
    - platforms/thread.h (325.5ms)
    - platforms/stub/thread_stub.h (325.4ms)
    - platforms/stub/thread_stub_stl.h (325.4ms)

⚠️  Template instantiation time is high (35.3% of total)
✓  Lexing time is acceptable (<10% of total)

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1328.4ms)
2. Consider optimizing fl/task/executor.h (620.3ms)
3. Consider optimizing fl/fastled.h (458.9ms)

================================================================================

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (16)
src/fl/stl/bitset.h (1)

1-10: ⚠️ Potential issue | 🟠 Major

Add missing include for FL_STATIC_ASSERT.

FL_STATIC_ASSERT is used on line 44 but fl/stl/static_assert.h is not included. None of the currently-included headers provide this macro transitively, so the header will fail to compile stand-alone. Add the include directly.

Proposed fix
 `#include` "fl/stl/variant.h"
 `#include` "fl/stl/bitset_dynamic.h"
 `#include` "fl/stl/int.h"
+#include "fl/stl/static_assert.h"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/bitset.h` around lines 1 - 10, The header uses the macro
FL_STATIC_ASSERT (referenced in bitset.h) but does not include its definition;
add `#include` "fl/stl/static_assert.h" to the includes at the top of
src/fl/stl/bitset.h (alongside the other fl/stl/*.h includes) so the macro is
available when bitset.h is used standalone.
src/fl/stl/ratio.h (1)

9-11: ⚠️ Potential issue | 🟠 Major

Add missing direct include for FL_STATIC_ASSERT.

Line 21 uses FL_STATIC_ASSERT but this header only includes fl/stl/int.h in its transitive chain, which does not provide the macro definition. Add a direct include to make this header self-contained.

Proposed fix
 `#include` "fl/stl/int.h"
+#include "fl/stl/static_assert.h"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/ratio.h` around lines 9 - 11, The header uses the macro
FL_STATIC_ASSERT (seen around the static assertion at line 21) but only includes
fl/stl/int.h transitively; make the header self-contained by adding a direct
`#include` for the header that defines FL_STATIC_ASSERT (the library's
static-assert header) at the top of ratio.h before any usage, so
FL_STATIC_ASSERT is always available when including ratio.h.
src/chipsets.h (1)

8-18: ⚠️ Potential issue | 🟡 Minor

Include fl/stl/static_assert.h directly before using FL_STATIC_ASSERT.

Line 217 now depends on the wrapper macro, but this header does not include its definition directly. Avoid relying on transitive includes.

Proposed fix
 `#include` "fl/stl/compiler_control.h"
+#include "fl/stl/static_assert.h"
 `#include` "fl/stl/bit_cast.h"

Also applies to: 217-217

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/chipsets.h` around lines 8 - 18, The header chipsets.h uses the
FL_STATIC_ASSERT macro (around the current line ~217) but does not include its
definition; add an explicit include of "fl/stl/static_assert.h" at the top of
chipsets.h (near the other fl/stl includes) so FL_STATIC_ASSERT is defined
locally rather than relying on transitive includes.
src/fl/stl/charconv.h (1)

12-15: ⚠️ Potential issue | 🟠 Major

Add the missing FL_STATIC_ASSERT include.

Line 60 uses the project static-assert wrapper, but this header does not include its definition. Direct inclusion of fl/stl/charconv.h can fail depending on include order.

Proposed fix
 `#include` "fl/stl/stdint.h"  // For u64, uint8_t
 `#include` "fl/stl/cstddef.h" // For fl::size_t
 `#include` "fl/stl/noexcept.h"
+#include "fl/stl/static_assert.h"

Also applies to: 60-60

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/charconv.h` around lines 12 - 15, The header fl/stl/charconv.h
uses the FL_STATIC_ASSERT macro but doesn't include its definition; add an
include for the static-assert wrapper (e.g. include "fl/stl/static_assert.h") at
the top of charconv.h so FL_STATIC_ASSERT is always available regardless of
include order; ensure the include appears alongside the other fl/stl/* includes
so references to FL_STATIC_ASSERT in this header compile unconditionally.
src/FastLED.h (1)

1004-1027: ⚠️ Potential issue | 🟡 Minor

Reorder assertions before dependent typedefs and explicitly include the static-assert header.

FastLED.h makes FL_STATIC_ASSERT available through a transitive include via cpp_compat.h, but the dependency should be explicit. Additionally, in the first two SPI overloads (lines 1004–1011 and 1013–1020), the dependent typename lookup occurs before the validity check, which allows compilers to emit confusing "type not found" errors for invalid chipsets instead of the clear "Unsupported chipset" message.

Proposed fix
 `#include` "fl/stl/compiler_control.h"
+#include "fl/stl/static_assert.h"
 `#include` "cpp_compat.h"
 	/// Add an SPI based CLEDController instance to the world (legacy path).
 	template<ESPIChipsets CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, fl::EOrder RGB_ORDER, fl::u32 SPI_DATA_RATE > ::CLEDController &addLeds(CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
 		// Instantiate the controller using ClockedChipsetHelper
 		typedef ClockedChipsetHelper<CHIPSET, DATA_PIN, CLOCK_PIN> CHIP;
-		typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
 		FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
+		typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
 		static ControllerTypeWithFreq c;
 		return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
 	}
 
 	/// Add an SPI based CLEDController instance to the world (legacy path).
 	template<ESPIChipsets CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN > static ::CLEDController &addLeds(CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
 		typedef ClockedChipsetHelper<CHIPSET, DATA_PIN, CLOCK_PIN> CHIP;
-		typedef typename CHIP::ControllerType ControllerType;
 		FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
+		typedef typename CHIP::ControllerType ControllerType;
 		static ControllerType c;
 		return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
 	}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/FastLED.h` around lines 1004 - 1027, Move the FL_STATIC_ASSERT check
before any dependent typedefs in the SPI addLeds overloads so the chipset
validity is checked first: in the template<ESPIChipsets CHIPSET, fl::u8
DATA_PIN, fl::u8 CLOCK_PIN, fl::EOrder RGB_ORDER, fl::u32 SPI_DATA_RATE>
overload (where ControllerTypeWithFreq is typedef'd), the template<ESPIChipsets
CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN> legacy overload (where
ControllerType is typedef'd), and the template<ESPIChipsets ... RGB_ORDER>
overload (where ControllerTypeWithOrder is typedef'd) place
FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset"); immediately after
defining typedef ClockedChipsetHelper<...> CHIP and before any
typename/ControllerType typedefs; also add an explicit include of the header
that defines FL_STATIC_ASSERT (e.g., include the cpp_compat header that provides
it) near the top of FastLED.h so the static-assert symbol is not only
transitively available.
src/fl/stl/string.cpp.hpp (1)

1-14: ⚠️ Potential issue | 🟠 Major

Include fl/stl/static_assert.h in this translation unit fragment.

string.cpp.hpp directly uses FL_STATIC_ASSERT, so it should include the macro provider rather than depending on another included header to provide it.

Proposed fix
 `#include` "fl/stl/compiler_control.h"
+#include "fl/stl/static_assert.h"
 `#include` "fl/math/xymap.h"

Also applies to: 86-91

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/string.cpp.hpp` around lines 1 - 14, The translation unit uses the
FL_STATIC_ASSERT macro but doesn't include its provider; add `#include`
"fl/stl/static_assert.h" to this fragment (and the corresponding second fragment
around the other occurrence) so FL_STATIC_ASSERT is defined directly rather than
relying on other headers; locate the uses of FL_STATIC_ASSERT in string.cpp.hpp
and add the include near the top with the other fl/stl/* includes to ensure the
macro is available.
src/fl/stl/type_traits.h (1)

7-10: ⚠️ Potential issue | 🔴 Critical

Include the FL_STATIC_ASSERT provider before using the macro.

type_traits.h now directly uses FL_STATIC_ASSERT, but this file does not include fl/stl/static_assert.h. Standalone includes can fail depending on include order.

Proposed fix
 `#include` "fl/stl/move.h"
 `#include` "fl/stl/int.h"
 `#include` "fl/stl/noexcept.h"
+#include "fl/stl/static_assert.h"

Also applies to: 240-241, 614-615

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/type_traits.h` around lines 7 - 10, type_traits.h uses the
FL_STATIC_ASSERT macro without including its provider; add `#include`
"fl/stl/static_assert.h" to the top include block (alongside fl/stl/move.h,
fl/stl/int.h, fl/stl/noexcept.h) so FL_STATIC_ASSERT is defined regardless of
include order, and ensure the same include is present where FL_STATIC_ASSERT is
used later in the file (the other occurrences around the 240-241 and 614-615
regions) so all uses reference the header that provides the macro.
src/fl/stl/not_null.h (1)

48-50: ⚠️ Potential issue | 🟠 Major

Add the direct include for FL_STATIC_ASSERT.

not_null.h now directly uses FL_STATIC_ASSERT, but it does not include fl/stl/static_assert.h. Avoid relying on transitive include order here.

Proposed fix
 `#include` "fl/stl/type_traits.h"
 `#include` "fl/stl/cstddef.h"
 `#include` "fl/stl/noexcept.h"
+#include "fl/stl/static_assert.h"

Also applies to: 154-158

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/not_null.h` around lines 48 - 50, not_null.h uses the macro
FL_STATIC_ASSERT but does not include its header; add an explicit `#include`
"fl/stl/static_assert.h" at the top of not_null.h (near the other includes) so
the file no longer relies on transitive includes; apply the same change for the
other occurrence later in the file where FL_STATIC_ASSERT is used (the block
around the functions/classes that reference FL_STATIC_ASSERT).
src/fl/stl/bit_cast.h (1)

10-13: ⚠️ Potential issue | 🟡 Minor

Missing fl/stl/static_assert.h include. FL_STATIC_ASSERT is used at lines 48–50 but the header is not directly included. Other files migrated in this PR (e.g., compile_test.cpp.hpp, clockless_i2s_esp32.h) added the include — please do the same here.

🔧 Proposed fix
 `#include` "fl/stl/type_traits.h"
 `#include` "fl/stl/cstring.h"
 `#include` "fl/stl/int.h"
 `#include` "fl/stl/noexcept.h"
+#include "fl/stl/static_assert.h"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/bit_cast.h` around lines 10 - 13, Bit_cast.h uses the
FL_STATIC_ASSERT macro (lines around 48–50) but doesn't include its defining
header; add an include for "fl/stl/static_assert.h" at the top of
src/fl/stl/bit_cast.h alongside the other includes so FL_STATIC_ASSERT is
available when functions like bit_cast are compiled.
src/fl/fltest.h (1)

25-29: ⚠️ Potential issue | 🟡 Minor

**Add #include "fl/stl/static_assert.h" — FL_STATIC_ASSERT is used at lines 1906 and 1918 but the defining header is not included here. Relying on transitive inclusion is fragile, and any TU that uses FL_TEST_CASE_TEMPLATE_INVOKE/_APPLY without having FL_STATIC_ASSERT already visible will fail to compile.

🔧 Proposed fix
 `#include` "fl/stl/compiler_control.h" // FL_PRETTY_FUNCTION
 `#include` "fl/stl/stdint.h"
 `#include` "fl/stl/vector.h"
 `#include` "fl/stl/strstream.h"
 `#include` "fl/stl/cstring.h"
+#include "fl/stl/static_assert.h"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/fltest.h` around lines 25 - 29, The header fltest.h uses the
FL_STATIC_ASSERT macro (via FL_TEST_CASE_TEMPLATE_INVOKE and
FL_TEST_CASE_TEMPLATE_APPLY) but does not include its defining header; add an
explicit include for "fl/stl/static_assert.h" to fltest.h to avoid relying on
transitive includes and ensure FL_STATIC_ASSERT is always defined when
FL_TEST_CASE_TEMPLATE_INVOKE/_APPLY are used.
src/fl/math/filter/triangular_filter_impl.h (1)

3-7: ⚠️ Potential issue | 🟡 Minor

Missing fl/stl/static_assert.h include. FL_STATIC_ASSERT at line 14 relies on transitive inclusion; please add the direct include for robustness.

🔧 Proposed fix
 `#include` "fl/stl/circular_buffer.h"
 `#include` "fl/system/log.h"
 `#include` "fl/math/math.h"
 `#include` "fl/stl/span.h"
 `#include` "fl/stl/noexcept.h"
+#include "fl/stl/static_assert.h"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/math/filter/triangular_filter_impl.h` around lines 3 - 7, The header
is missing a direct include for fl/stl/static_assert.h required by the
FL_STATIC_ASSERT macro used in triangular_filter_impl (see FL_STATIC_ASSERT at
the top of the file); add `#include` "fl/stl/static_assert.h" to the include list
in src/fl/math/filter/triangular_filter_impl.h so the FL_STATIC_ASSERT symbol is
resolved without relying on transitive includes.
src/fl/detail/async_log_queue.h (1)

6-24: ⚠️ Potential issue | 🟡 Minor

Missing fl/stl/static_assert.h include. FL_STATIC_ASSERT is used at lines 19–24 but only int.h and noexcept.h are included. Since this is a template class, the assertions are instantiated at the caller's TU, so any user of AsyncLogQueue would need FL_STATIC_ASSERT already visible — add the direct include here to avoid that coupling.

🔧 Proposed fix
 `#include` "fl/stl/int.h"
 `#include` "fl/stl/noexcept.h"
+#include "fl/stl/static_assert.h"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/detail/async_log_queue.h` around lines 6 - 24, The file is missing the
header that defines FL_STATIC_ASSERT; update src/fl/detail/async_log_queue.h to
include the static-assert header so the compile-time checks used in template
AsyncLogQueue (the FL_STATIC_ASSERT calls validating DescriptorCount and
ArenaSize) are always available: add an `#include` for "fl/stl/static_assert.h"
near the other fl/stl includes so FL_STATIC_ASSERT is defined without relying on
users' translation units.
src/fl/system/fastpin_base.h (1)

9-15: ⚠️ Potential issue | 🟡 Minor

Missing fl/stl/static_assert.h include. FL_STATIC_ASSERT is used at line 145 but this header doesn't include the defining header, which is fragile against include-order changes.

🔧 Proposed fix
 `#include` "platforms/is_platform.h"
 `#include` "fl/stl/compiler_control.h"
 `#include` "fl/stl/noexcept.h"
+#include "fl/stl/static_assert.h"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/system/fastpin_base.h` around lines 9 - 15, fastpin_base.h uses the
FL_STATIC_ASSERT macro but does not include its defining header; add an explicit
include for "fl/stl/static_assert.h" alongside the other includes at the top of
fastpin_base.h so FL_STATIC_ASSERT is always defined regardless of include
order; ensure the include appears before any use of FL_STATIC_ASSERT (used later
in this file) and keep it grouped with the other "fl/stl/..." includes.
src/fl/asset.h (1)

28-33: ⚠️ Potential issue | 🟠 Major

Include fl/stl/static_assert.h so FL_ASSET is self-contained.

FL_ASSET expands FL_STATIC_ASSERT(...) at the caller's site (sketch code), so every translation unit that invokes the macro must have FL_STATIC_ASSERT visible. Since asset.h is the public header that defines FL_ASSET, it should pull in fl/stl/static_assert.h directly rather than hoping the sketch's include order provides it.

Proposed fix
 `#include` "fl/stl/int.h"
 `#include` "fl/stl/noexcept.h"
+#include "fl/stl/static_assert.h"
 `#include` "fl/stl/string.h"
 `#include` "fl/stl/string_view.h"
 `#include` "fl/stl/url.h"

Also consider refreshing the doc comments at lines 26, 82, and 121/133, which still refer to the validation as static_assert.

Also applies to: 136-143

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/asset.h` around lines 28 - 33, Add a direct include of
fl/stl/static_assert.h to src/fl/asset.h so FL_ASSET can expand
FL_STATIC_ASSERT() without relying on caller include order; update the header
comments around the FL_ASSET macro (locations near the existing doc comments at
lines ~26, ~82, and ~121/133 and the block around 136-143) to stop referring to
C++ static_assert and instead mention FL_STATIC_ASSERT or “static validation via
FL_STATIC_ASSERT” so the docs match the implementation.
src/fl/stl/function.h (1)

1-13: ⚠️ Potential issue | 🟡 Minor

Add direct include for fl/stl/static_assert.h.

FL_STATIC_ASSERT is used at lines 88, 90, 178, 214, 357, and 512, but the file does not directly include "fl/stl/static_assert.h". The macro is available only through transitive inclusion via noexcept.h, which is fragile. Add the direct include to ensure robustness and consistency with the pattern in other migrated files.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/function.h` around lines 1 - 13, The file uses the
FL_STATIC_ASSERT macro in multiple places (lines referenced in the review) but
doesn't directly include its header; add a direct include of
"fl/stl/static_assert.h" at the top of src/fl/stl/function.h alongside the other
includes so FL_STATIC_ASSERT is guaranteed to be available (avoid relying on
transitive inclusion from noexcept.h) and keep include ordering consistent with
other migrated files.
ci/lint_cpp/banned_macros_checker.py (1)

37-132: ⚠️ Potential issue | 🟡 Minor

Minor: string literals containing static_assert( can trigger false positives.

code_part = line.split("//")[0] strips only line comments, not string literals. A line like:

FL_WARN("static_assert(foo) is banned");

will pass the fast-path substring check and then match \bstatic_assert\s*\(, producing a spurious violation. Same hazard already exists for __has_include, but it's worth being aware of now that a second keyword is added. Low priority — easy to work around by quoting differently — but if you want a quick hedge, consider a crude string-literal stripper before the regex check, or at minimum document the gotcha.

Also worth noting: the regex is case-sensitive, so FL_STATIC_ASSERT( is correctly not matched by \bstatic_assert\s*\( — good.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ci/lint_cpp/banned_macros_checker.py` around lines 37 - 132, The false
positives come from literal strings being searched (e.g., STATIC_ASSERT_PATTERN
matching inside "static_assert("), so in check_file_content before using
code_part for keyword checks and regex searches (STATIC_ASSERT_PATTERN,
HAS_INCLUDE_PATTERN) strip string literals from code_part (both double-quoted
and single-quoted, handling escaped quotes) into a new variable (e.g.,
code_no_strings) and run the fast-path substring check and regex searches
against that sanitized text; keep the existing skips (comments, FL_HAS_INCLUDE
define) and only append violations based on matches found in the string-stripped
content.
🧹 Nitpick comments (3)
src/fl/stl/noexcept.h (1)

3-4: Unused include in this header.

fl/stl/static_assert.h is pulled in here but FL_STATIC_ASSERT is not used anywhere in noexcept.h. If this include is meant purely as a convenience re-export for consumers of noexcept.h, consider documenting it; otherwise it can be dropped to keep the header lean (it's already a widely included low-level header).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/fl/stl/noexcept.h` around lines 3 - 4, The include
"fl/stl/static_assert.h" in noexcept.h is unused (FL_STATIC_ASSERT isn't
referenced) — either remove the include to keep the header minimal or explicitly
document that noexcept.h intentionally re-exports static_assert for consumers;
if you choose removal, delete the `#include` line referencing static_assert.h from
noexcept.h, and if you choose to keep it, add a one-line comment above the
include stating it is an intentional re-export for API consumers (mentioning
FL_STATIC_ASSERT) so its presence is explicitly documented.
src/platforms/shared/clockless_blocking.h (1)

78-80: LGTM — mechanical swap to FL_STATIC_ASSERT is correct. Note: the pre-existing typo "addtional" in the T3 diagnostic string at line 80 is unchanged; consider fixing to "additional" while touching this line.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/platforms/shared/clockless_blocking.h` around lines 78 - 80, Fix the typo
in the static assertion message for T3: update the diagnostic string in the
FL_STATIC_ASSERT that references T3 (currently "addtional") to read "additional"
so the message becomes "T3 (additional time for low tail duration) must be
positive"; keep the existing FL_STATIC_ASSERT macro and T3 symbol unchanged
besides correcting the spelling.
ci/lint_cpp/test_banned_macros_checker.py (1)

29-58: LGTM — good coverage for the new rule.

Tests exercise the positive, negative, comments, multiline-comment, and skip-path cases. One optional add that would have caught a real bug class: a test asserting that FL_STATIC_ASSERT(cond, "msg"); containing literal token static_assert inside a string (e.g., FL_WARN("use FL_STATIC_ASSERT not static_assert");) is not flagged — see related comment on banned_macros_checker.py.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ci/lint_cpp/test_banned_macros_checker.py` around lines 29 - 58, Add a test
case to ensure tokens inside string literals are not flagged: in
TestBannedMacrosChecker add an assertion calling _violations with a line like
'FL_WARN("use FL_STATIC_ASSERT not static_assert");' (or similar string
containing the literal token static_assert) and assert len(...) == 0; this
mirrors the existing comment tests and will validate the behavior implemented in
BannedMacrosChecker/_violations (and the logic in banned_macros_checker.py) so
string contents are ignored.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/fl/fx/2d/noisepalette.cpp.hpp`:
- Around line 21-22: Add a direct include for the header that defines the
FL_STATIC_ASSERT macro (do not rely on transitive includes) so the assertion
that checks sizeof(currentPalette) == sizeof(CRGBPalette16) has a guaranteed
definition; place the include at the top of the file before the FL_STATIC_ASSERT
usage and ensure it references the project header that declares
FL_STATIC_ASSERT.

In `@src/fl/math/filter/savitzky_golay_filter_impl.h`:
- Around line 14-15: The header uses FL_STATIC_ASSERT but doesn't include its
definition; add an include for fl/stl/static_assert.h at the top of
savitzky_golay_filter_impl.h so FL_STATIC_ASSERT is defined before the
FL_STATIC_ASSERT(N == 0 || (N % 2 == 1), ...) check; ensure the include is
placed with the other project includes (or guarded by existing include patterns)
so the assertion compiles standalone.

In `@src/fl/stl/type_traits.cpp.hpp`:
- Around line 16-122: The file uses the FL_STATIC_ASSERT macro (seen in many
assertions like FL_STATIC_ASSERT(fl::is_integral<int>::value, ...)) but does not
directly include its header; add a direct include of the static assert header
(fl/stl/static_assert.h) near the top of this translation unit so the macro is
explicitly provided (instead of relying on transitive includes from
type_traits.h → noexcept.h → static_assert.h).

In `@src/fl/stl/unique_ptr.h`:
- Around line 14-16: unique_ptr.h uses the FL_STATIC_ASSERT macro but doesn't
include its definition; add an include for "fl/stl/static_assert.h" at the top
of unique_ptr.h (before the FL_STATIC_ASSERT usage) so the header is
self-contained and the macro is available when the unique_ptr
destructor/definition is instantiated.

In `@src/fl/stl/vector.h`:
- Line 114: vector.h uses the macro FL_STATIC_ASSERT at the top (the statement
"FL_STATIC_ASSERT(M <= N, \"Too many elements for FixedVector\")") but doesn't
include its definition; add a direct include of the static assert header
(fl/stl/static_assert.h) to vector.h so the file is self-contained and
FL_STATIC_ASSERT is defined where FixedVector is declared.

In `@src/platforms/esp/32/drivers/gpio_isr_rx/dual_isr_context.h`:
- Around line 30-31: The include of the C++-only header fl/stl/static_assert.h
should be moved behind a C++ guard so it is only pulled in when compiling as
C++: wrap the `#include` "fl/stl/static_assert.h" with an `#ifdef` __cplusplus /
`#endif` (leaving `#include` "fl/stl/stdint.h" unguarded) so the FL_STATIC_ASSERT
wrapper (and any C++ templates/namespaces inside static_assert.h) are only
available in C++ builds; update dual_isr_context.h accordingly so references to
FL_STATIC_ASSERT remain valid under __cplusplus but the header compiles cleanly
in C.

In `@src/platforms/esp/32/drivers/lcd_cam/clockless_lcd_i80_esp32.h.disabled`:
- Line 34: The static assertion using FL_STATIC_ASSERT around the strapping-pin
check contains a predicate that ends with "|| true", which makes the expression
always true so the assertion can never fire; update the predicate used in the
FL_STATIC_ASSERT (the strapping-pin check predicate) to remove the spurious "||
true" or replace it with the correct logical condition, or alternatively remove
the FL_STATIC_ASSERT entirely if the check is meant to be a non-blocking
warning; ensure you modify the assertion surrounding the strapping-pin logic
(the FL_STATIC_ASSERT invocation) so it reflects the intended check rather than
always evaluating true.

---

Outside diff comments:
In `@ci/lint_cpp/banned_macros_checker.py`:
- Around line 37-132: The false positives come from literal strings being
searched (e.g., STATIC_ASSERT_PATTERN matching inside "static_assert("), so in
check_file_content before using code_part for keyword checks and regex searches
(STATIC_ASSERT_PATTERN, HAS_INCLUDE_PATTERN) strip string literals from
code_part (both double-quoted and single-quoted, handling escaped quotes) into a
new variable (e.g., code_no_strings) and run the fast-path substring check and
regex searches against that sanitized text; keep the existing skips (comments,
FL_HAS_INCLUDE define) and only append violations based on matches found in the
string-stripped content.

In `@src/chipsets.h`:
- Around line 8-18: The header chipsets.h uses the FL_STATIC_ASSERT macro
(around the current line ~217) but does not include its definition; add an
explicit include of "fl/stl/static_assert.h" at the top of chipsets.h (near the
other fl/stl includes) so FL_STATIC_ASSERT is defined locally rather than
relying on transitive includes.

In `@src/FastLED.h`:
- Around line 1004-1027: Move the FL_STATIC_ASSERT check before any dependent
typedefs in the SPI addLeds overloads so the chipset validity is checked first:
in the template<ESPIChipsets CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN,
fl::EOrder RGB_ORDER, fl::u32 SPI_DATA_RATE> overload (where
ControllerTypeWithFreq is typedef'd), the template<ESPIChipsets CHIPSET, fl::u8
DATA_PIN, fl::u8 CLOCK_PIN> legacy overload (where ControllerType is typedef'd),
and the template<ESPIChipsets ... RGB_ORDER> overload (where
ControllerTypeWithOrder is typedef'd) place FL_STATIC_ASSERT(CHIP::IS_VALID,
"Unsupported chipset"); immediately after defining typedef
ClockedChipsetHelper<...> CHIP and before any typename/ControllerType typedefs;
also add an explicit include of the header that defines FL_STATIC_ASSERT (e.g.,
include the cpp_compat header that provides it) near the top of FastLED.h so the
static-assert symbol is not only transitively available.

In `@src/fl/asset.h`:
- Around line 28-33: Add a direct include of fl/stl/static_assert.h to
src/fl/asset.h so FL_ASSET can expand FL_STATIC_ASSERT() without relying on
caller include order; update the header comments around the FL_ASSET macro
(locations near the existing doc comments at lines ~26, ~82, and ~121/133 and
the block around 136-143) to stop referring to C++ static_assert and instead
mention FL_STATIC_ASSERT or “static validation via FL_STATIC_ASSERT” so the docs
match the implementation.

In `@src/fl/detail/async_log_queue.h`:
- Around line 6-24: The file is missing the header that defines
FL_STATIC_ASSERT; update src/fl/detail/async_log_queue.h to include the
static-assert header so the compile-time checks used in template AsyncLogQueue
(the FL_STATIC_ASSERT calls validating DescriptorCount and ArenaSize) are always
available: add an `#include` for "fl/stl/static_assert.h" near the other fl/stl
includes so FL_STATIC_ASSERT is defined without relying on users' translation
units.

In `@src/fl/fltest.h`:
- Around line 25-29: The header fltest.h uses the FL_STATIC_ASSERT macro (via
FL_TEST_CASE_TEMPLATE_INVOKE and FL_TEST_CASE_TEMPLATE_APPLY) but does not
include its defining header; add an explicit include for
"fl/stl/static_assert.h" to fltest.h to avoid relying on transitive includes and
ensure FL_STATIC_ASSERT is always defined when
FL_TEST_CASE_TEMPLATE_INVOKE/_APPLY are used.

In `@src/fl/math/filter/triangular_filter_impl.h`:
- Around line 3-7: The header is missing a direct include for
fl/stl/static_assert.h required by the FL_STATIC_ASSERT macro used in
triangular_filter_impl (see FL_STATIC_ASSERT at the top of the file); add
`#include` "fl/stl/static_assert.h" to the include list in
src/fl/math/filter/triangular_filter_impl.h so the FL_STATIC_ASSERT symbol is
resolved without relying on transitive includes.

In `@src/fl/stl/bit_cast.h`:
- Around line 10-13: Bit_cast.h uses the FL_STATIC_ASSERT macro (lines around
48–50) but doesn't include its defining header; add an include for
"fl/stl/static_assert.h" at the top of src/fl/stl/bit_cast.h alongside the other
includes so FL_STATIC_ASSERT is available when functions like bit_cast are
compiled.

In `@src/fl/stl/bitset.h`:
- Around line 1-10: The header uses the macro FL_STATIC_ASSERT (referenced in
bitset.h) but does not include its definition; add `#include`
"fl/stl/static_assert.h" to the includes at the top of src/fl/stl/bitset.h
(alongside the other fl/stl/*.h includes) so the macro is available when
bitset.h is used standalone.

In `@src/fl/stl/charconv.h`:
- Around line 12-15: The header fl/stl/charconv.h uses the FL_STATIC_ASSERT
macro but doesn't include its definition; add an include for the static-assert
wrapper (e.g. include "fl/stl/static_assert.h") at the top of charconv.h so
FL_STATIC_ASSERT is always available regardless of include order; ensure the
include appears alongside the other fl/stl/* includes so references to
FL_STATIC_ASSERT in this header compile unconditionally.

In `@src/fl/stl/function.h`:
- Around line 1-13: The file uses the FL_STATIC_ASSERT macro in multiple places
(lines referenced in the review) but doesn't directly include its header; add a
direct include of "fl/stl/static_assert.h" at the top of src/fl/stl/function.h
alongside the other includes so FL_STATIC_ASSERT is guaranteed to be available
(avoid relying on transitive inclusion from noexcept.h) and keep include
ordering consistent with other migrated files.

In `@src/fl/stl/not_null.h`:
- Around line 48-50: not_null.h uses the macro FL_STATIC_ASSERT but does not
include its header; add an explicit `#include` "fl/stl/static_assert.h" at the top
of not_null.h (near the other includes) so the file no longer relies on
transitive includes; apply the same change for the other occurrence later in the
file where FL_STATIC_ASSERT is used (the block around the functions/classes that
reference FL_STATIC_ASSERT).

In `@src/fl/stl/ratio.h`:
- Around line 9-11: The header uses the macro FL_STATIC_ASSERT (seen around the
static assertion at line 21) but only includes fl/stl/int.h transitively; make
the header self-contained by adding a direct `#include` for the header that
defines FL_STATIC_ASSERT (the library's static-assert header) at the top of
ratio.h before any usage, so FL_STATIC_ASSERT is always available when including
ratio.h.

In `@src/fl/stl/string.cpp.hpp`:
- Around line 1-14: The translation unit uses the FL_STATIC_ASSERT macro but
doesn't include its provider; add `#include` "fl/stl/static_assert.h" to this
fragment (and the corresponding second fragment around the other occurrence) so
FL_STATIC_ASSERT is defined directly rather than relying on other headers;
locate the uses of FL_STATIC_ASSERT in string.cpp.hpp and add the include near
the top with the other fl/stl/* includes to ensure the macro is available.

In `@src/fl/stl/type_traits.h`:
- Around line 7-10: type_traits.h uses the FL_STATIC_ASSERT macro without
including its provider; add `#include` "fl/stl/static_assert.h" to the top include
block (alongside fl/stl/move.h, fl/stl/int.h, fl/stl/noexcept.h) so
FL_STATIC_ASSERT is defined regardless of include order, and ensure the same
include is present where FL_STATIC_ASSERT is used later in the file (the other
occurrences around the 240-241 and 614-615 regions) so all uses reference the
header that provides the macro.

In `@src/fl/system/fastpin_base.h`:
- Around line 9-15: fastpin_base.h uses the FL_STATIC_ASSERT macro but does not
include its defining header; add an explicit include for
"fl/stl/static_assert.h" alongside the other includes at the top of
fastpin_base.h so FL_STATIC_ASSERT is always defined regardless of include
order; ensure the include appears before any use of FL_STATIC_ASSERT (used later
in this file) and keep it grouped with the other "fl/stl/..." includes.

---

Nitpick comments:
In `@ci/lint_cpp/test_banned_macros_checker.py`:
- Around line 29-58: Add a test case to ensure tokens inside string literals are
not flagged: in TestBannedMacrosChecker add an assertion calling _violations
with a line like 'FL_WARN("use FL_STATIC_ASSERT not static_assert");' (or
similar string containing the literal token static_assert) and assert len(...)
== 0; this mirrors the existing comment tests and will validate the behavior
implemented in BannedMacrosChecker/_violations (and the logic in
banned_macros_checker.py) so string contents are ignored.

In `@src/fl/stl/noexcept.h`:
- Around line 3-4: The include "fl/stl/static_assert.h" in noexcept.h is unused
(FL_STATIC_ASSERT isn't referenced) — either remove the include to keep the
header minimal or explicitly document that noexcept.h intentionally re-exports
static_assert for consumers; if you choose removal, delete the `#include` line
referencing static_assert.h from noexcept.h, and if you choose to keep it, add a
one-line comment above the include stating it is an intentional re-export for
API consumers (mentioning FL_STATIC_ASSERT) so its presence is explicitly
documented.

In `@src/platforms/shared/clockless_blocking.h`:
- Around line 78-80: Fix the typo in the static assertion message for T3: update
the diagnostic string in the FL_STATIC_ASSERT that references T3 (currently
"addtional") to read "additional" so the message becomes "T3 (additional time
for low tail duration) must be positive"; keep the existing FL_STATIC_ASSERT
macro and T3 symbol unchanged besides correcting the spelling.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: aed064d5-31be-433c-b3fb-36358f8c0c78

📥 Commits

Reviewing files that changed from the base of the PR and between f104eb8 and f9b4744.

📒 Files selected for processing (91)
  • ci/lint_cpp/banned_macros_checker.py
  • ci/lint_cpp/test_banned_macros_checker.py
  • src/FastLED.h
  • src/chipsets.h
  • src/cpp_compat.h
  • src/fl/asset.h
  • src/fl/detail/async_log_queue.h
  • src/fl/fltest.h
  • src/fl/fx/2d/noisepalette.cpp.hpp
  • src/fl/math/filter/hampel_filter_impl.h
  • src/fl/math/filter/median_filter_impl.h
  • src/fl/math/filter/savitzky_golay_filter_impl.h
  • src/fl/math/filter/triangular_filter_impl.h
  • src/fl/math/fixed_point/traits.h
  • src/fl/math/screenmap.cpp.hpp
  • src/fl/stl/allocator.h
  • src/fl/stl/bit_cast.h
  • src/fl/stl/bitset.h
  • src/fl/stl/charconv.h
  • src/fl/stl/function.h
  • src/fl/stl/hash.h
  • src/fl/stl/noexcept.h
  • src/fl/stl/not_null.h
  • src/fl/stl/pair.h
  • src/fl/stl/ratio.h
  • src/fl/stl/static_assert.h
  • src/fl/stl/string.cpp.hpp
  • src/fl/stl/type_traits.cpp.hpp
  • src/fl/stl/type_traits.h
  • src/fl/stl/unique_ptr.h
  • src/fl/stl/vector.h
  • src/fl/system/fastpin_base.h
  • src/pixel_controller.h
  • src/platforms/arm/common/m0clockless_c.h
  • src/platforms/arm/compile_test.hpp
  • src/platforms/arm/k20/clockless_block_arm_k20.h
  • src/platforms/arm/k66/clockless_block_arm_k66.h
  • src/platforms/arm/nrf52/arbiter_nrf52.h
  • src/platforms/arm/nrf52/clockless_arm_nrf52.h
  • src/platforms/arm/nrf52/fastspi_arm_nrf52.h
  • src/platforms/arm/sam/clockless_block_arm_sam.h
  • src/platforms/arm/stm32/fastspi_arm_stm32.h
  • src/platforms/arm/teensy/teensy31_32/clockless_block_arm_k20.h
  • src/platforms/arm/teensy/teensy36/clockless_block_arm_k66.h
  • src/platforms/avr/attiny/clockless_blocking.h
  • src/platforms/avr/attiny/clockless_blocking_controller.h
  • src/platforms/avr/clockless_avr.h
  • src/platforms/compile_test.cpp.hpp
  • src/platforms/esp/32/clockless_block_esp32.h
  • src/platforms/esp/32/core/fastpin_esp32.h
  • src/platforms/esp/32/core/fastspi_esp32_arduino.h
  • src/platforms/esp/32/core/fastspi_esp32_idf.h
  • src/platforms/esp/32/drivers/gpio_isr_rx/dual_isr_context.h
  • src/platforms/esp/32/drivers/i2s/clockless_i2s_esp32.h
  • src/platforms/esp/32/drivers/lcd_cam/clockless_lcd_i80_esp32.h.disabled
  • src/platforms/esp/32/drivers/parlio/parlio_buffer_calc.h
  • src/platforms/esp/32/drivers/rmt/rmt_4/idf4_clockless_rmt_esp32.h
  • src/platforms/esp/32/drivers/rmt/rmt_5/idf5_clockless.h
  • src/platforms/esp/32/drivers/rmt_rx/rmt_rx_channel.cpp.hpp
  • src/platforms/esp/32/drivers/spi/idf5_clockless_spi_esp32.h
  • src/platforms/esp/32/interrupts/riscv.hpp
  • src/platforms/intmap.h
  • src/platforms/shared/clockless_blocking.h
  • src/platforms/shared/spi_bitbang/spi_isr_16.h
  • src/platforms/shared/spi_bitbang/spi_isr_32.h
  • src/platforms/shared/spi_bitbang/spi_isr_8.h
  • src/platforms/stub/thread_stub_stl.h
  • tests/fl/asset.cpp
  • tests/fl/force_inline.cpp
  • tests/fl/gfx/corkscrew.cpp
  • tests/fl/math/alpha.cpp
  • tests/fl/math/fixed_point.cpp
  • tests/fl/math/random.cpp
  • tests/fl/rx_device.cpp
  • tests/fl/stl/allocator.cpp
  • tests/fl/stl/array.cpp
  • tests/fl/stl/bit_cast.cpp
  • tests/fl/stl/cstddef.cpp
  • tests/fl/stl/functional.cpp
  • tests/fl/stl/limits.cpp
  • tests/fl/stl/limits.hpp
  • tests/fl/stl/move.cpp
  • tests/fl/stl/not_null.cpp
  • tests/fl/stl/pair.cpp
  • tests/fl/stl/range_access.cpp
  • tests/fl/stl/stdint.cpp
  • tests/fl/stl/type_traits.cpp
  • tests/fl/stl/utility.cpp
  • tests/fl/system/delay.cpp
  • tests/platforms/cycle_type.cpp
  • tests/platforms/shared/clockless_timing.cpp

Comment thread src/fl/fx/2d/noisepalette.cpp.hpp Resolved
Comment thread src/fl/stl/type_traits.cpp.hpp Resolved
Comment thread src/fl/stl/unique_ptr.h Resolved
Comment thread src/fl/stl/vector.h Resolved
@zackees
zackees merged commit 8fa0cc0 into master Apr 22, 2026
63 of 80 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📊 Header Compilation Performance

Total Time: 763.44ms

Top 5 Slowest Headers

  1. FastLED.h - 577.30ms
  2. fl/fastled.h - 243.47ms
  3. fl/task/executor.h - 183.35ms
  4. crgb.h - 133.56ms
  5. fl/gfx/crgb.h - 132.62ms

Warnings

⚠️ Header FastLED.h exceeds 150ms (577.3ms)
⚠️ Header fl/fastled.h exceeds 150ms (243.5ms)
⚠️ Header fl/task/executor.h exceeds 150ms (183.3ms)
⚠️ Header crgb.h exceeds 50ms (133.6ms)
⚠️ Header fl/gfx/crgb.h exceeds 50ms (132.6ms)
⚠️ Header fl/math/ease.h exceeds 50ms (129.3ms)
⚠️ Header fl/math/fixed_point.h exceeds 50ms (127.9ms)
⚠️ Header fl/task/scheduler.h exceeds 50ms (96.0ms)
⚠️ Header fl/stl/singleton.h exceeds 50ms (89.4ms)
⚠️ Header fl/stl/thread_local.h exceeds 50ms (88.9ms)
⚠️ Header fl/stl/thread.h exceeds 50ms (88.1ms)
⚠️ Header platforms/thread.h exceeds 50ms (88.1ms)
⚠️ Header platforms/stub/thread_stub.h exceeds 50ms (88.0ms)
⚠️ Header platforms/stub/thread_stub_stl.h exceeds 50ms (88.0ms)
⚠️ Header fl/ui.h exceeds 50ms (87.6ms)
⚠️ Header fl/task/promise.h exceeds 50ms (78.1ms)
⚠️ Header fl/stl/json.h exceeds 50ms (55.4ms)
⚠️ Template instantiation time is high (44.6%)

Full Report
================================================================================
FASTLED COMPILATION PERFORMANCE REPORT
================================================================================
Generated: 2026-04-22 22:16:35
Compiler: clang++-17
File: ci/perf/test_compile.cpp

SUMMARY
--------------------------------------------------------------------------------
Total Compilation Time:    1,938.68 ms
Frontend Time:             11.54 ms (0.6%)
Backend Time:              35.12 ms (1.8%)

COMPILATION PHASES
--------------------------------------------------------------------------------
Source                    16913.41 ms (872.4%)
Templates                   346.09 ms ( 17.9%)

FASTLED HEADERS (Level 1 - Direct Includes)
--------------------------------------------------------------------------------
  1750.9 ms - FastLED.h (SLOW)
  1228.4 ms - fl/task/executor.h (SLOW)
   833.6 ms - fl/task/scheduler.h (SLOW)
   827.0 ms - fl/stl/singleton.h (SLOW)
   826.5 ms - fl/stl/thread_local.h (SLOW)
   825.6 ms - fl/stl/thread.h (SLOW)
   825.6 ms - platforms/thread.h (SLOW)
   825.5 ms - platforms/stub/thread_stub.h (SLOW)
   825.5 ms - platforms/stub/thread_stub_stl.h (SLOW)
   385.4 ms - fl/task/promise.h (SLOW)
   362.2 ms - fl/fastled.h (SLOW)
   353.6 ms - fl/stl/function.h (SLOW)
   233.1 ms - fl/stl/vector.h (SLOW)
   184.0 ms - crgb.h (SLOW)
   183.1 ms - fl/gfx/crgb.h (SLOW)
   179.8 ms - fl/math/ease.h (SLOW)
   178.4 ms - fl/math/fixed_point.h (SLOW)
   107.9 ms - fl/math/math.h (SLOW)
   106.2 ms - fl/stl/initializer_list.h (SLOW)
   104.9 ms - platforms.h (SLOW)

FASTLED HEADERS (Nested Includes - Up to 10 Levels)
--------------------------------------------------------------------------------
FastLED.h (1750.9ms)
  ├─ 1228.4 ms - fl/task/executor.h
  │ ├─  833.6 ms - fl/task/scheduler.h
  │ │ ├─  827.0 ms - fl/stl/singleton.h
  │ │ │ └─  826.5 ms - fl/stl/thread_local.h
  │ │ │   └─  825.6 ms - fl/stl/thread.h
  │ │ │     └─  825.6 ms - platforms/thread.h
  │ │ │       └─  825.5 ms - platforms/stub/thread_stub.h
  │ │ │         └─  825.5 ms - platforms/stub/thread_stub_stl.h
  │ │ │           └─  820.4 ms - thread
  │ │ │             ├─  484.1 ms - std_thread.h
  │ │ │             └─  254.1 ms - this_thread_sleep.h
  │ │ └─    6.0 ms - fl/task/task.h
  │ │   └─    2.4 ms - fl/trace.h
  │ │     ├─    1.5 ms - fl/stl/chrono.h
  │ │     └─    0.6 ms - fl/stl/tuple.h
  │ ├─  385.4 ms - fl/task/promise.h
  │ │ ├─  353.6 ms - fl/stl/function.h
  │ │ │ ├─  233.1 ms - fl/stl/vector.h
  │ │ │ │ ├─  107.9 ms - fl/math/math.h
  │ │ │ │ │ └─  104.4 ms - fl/stl/undef.h
  │ │ │ │ │   └─  151.3 ms - stdlib.h
  │ │ │ │ │     ├─   96.3 ms - cstdlib
  │ │ │ │ │     │ └─  151.3 ms - stdlib.h
  │ │ │ │ │     │   ├─   96.3 ms - cstdlib
  │ │ │ │ │     │   └─   17.4 ms - types.h
  │ │ │ │ │     └─   17.4 ms - types.h
  │ │ │ │ │       ├─   17.4 ms - types.h
  │ │ │ │ │       │ ├─   17.4 ms - types.h
  │ │ │ │ │       │ ├─    9.2 ms - endian.h
  │ │ │ │ │       │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │ │       │ └─    1.6 ms - select.h
  │ │ │ │ │       ├─    9.2 ms - endian.h
  │ │ │ │ │       ├─    2.0 ms - pthreadtypes.h
  │ │ │ │ │       │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │ │       └─    1.6 ms - select.h
  │ │ │ │ ├─  106.2 ms - fl/stl/initializer_list.h
  │ │ │ │ ├─   12.0 ms - fl/stl/allocator.h
  │ │ │ │ │ └─    8.2 ms - fl/stl/bitset.h
  │ │ │ │ │   └─    5.3 ms - fl/stl/bitset_dynamic.h
  │ │ │ │ │     └─    1.4 ms - fl/stl/unique_ptr.h
  │ │ │ │ └─    1.8 ms - fl/stl/basic_vector.h
  │ │ │ ├─  104.2 ms - fl/stl/variant.h
  │ │ │ │ └─  102.9 ms - fl/stl/new.h
  │ │ │ │   └─  102.9 ms - platforms/new.h
  │ │ │ │     └─  102.8 ms - platforms/shared/new.h
  │ │ │ │       └─   74.7 ms - new
  │ │ │ │         └─   56.1 ms - c++config.h
  │ │ │ │           └─   45.7 ms - os_defines.h
  │ │ │ ├─    9.1 ms - fl/stl/shared_ptr.h
  │ │ │ │ ├─    4.1 ms - fl/stl/type_traits.h
  │ │ │ │ ├─    1.0 ms - fl/stl/atomic.h
  │ │ │ │ └─    0.5 ms - fl/stl/bit_cast.h
  │ │ │ ├─    2.9 ms - fl/stl/algorithm.h
  │ │ │ │ └─    1.3 ms - fl/math/random.h
  │ │ │ │   └─    0.6 ms - fl/math/random8.h
  │ │ │ └─    1.0 ms - fl/stl/pair.h
  │ │ └─   28.2 ms - fl/stl/string.h
  │ │   ├─    8.5 ms - fl/stl/basic_string.h
  │ │   │ ├─    0.7 ms - fl/stl/not_null.h
  │ │   │ └─    0.6 ms - fl/stl/iterator.h
  │ │   ├─    5.4 ms - fl/stl/span.h
  │ │   │ └─    2.2 ms - fl/math/geometry.h
  │ │   ├─    3.4 ms - fl/stl/string_view.h
  │ │   └─    1.0 ms - fl/stl/optional.h
  │ ├─    7.8 ms - platforms/await.h
  │ │ └─    7.5 ms - platforms/coroutine_runtime.h
  │ │   └─    6.4 ms - fl/system/engine_events.h
  │ │     ├─    3.2 ms - fl/math/screenmap.h
  │ │     │ └─    2.3 ms - fl/stl/flat_map.h
  │ │     └─    2.1 ms - fl/math/xymap.h
  │ └─    0.5 ms - fl/task/promise_result.h
  ├─  362.2 ms - fl/fastled.h
  │ ├─  184.0 ms - crgb.h
  │ │ ├─  183.1 ms - fl/gfx/crgb.h
  │ │ │ └─  179.8 ms - fl/math/ease.h
  │ │ │   └─  178.4 ms - fl/math/fixed_point.h
  │ │ │     ├─   87.2 ms - fl/math/fixed_point/s4x12.h
  │ │ │     │ ├─   74.3 ms - fl/math/sin32.h
  │ │ │     │ │ └─   72.3 ms - fl/math/simd.h
  │ │ │     │ │   └─   71.9 ms - fl/math/simd/types.h
  │ │ │     │ │     └─   71.7 ms - platforms/simd.h
  │ │ │     │ ├─    0.7 ms - fl/math/fixed_point/traits.h
  │ │ │     │ └─    0.5 ms - fl/math/fixed_point/isqrt.h
  │ │ │     ├─   11.3 ms - fl/math/fixed_point/s8x8.h
  │ │ │     ├─   11.3 ms - fl/math/fixed_point/s8x24.h
  │ │ │     ├─   11.2 ms - fl/math/fixed_point/s24x8.h
  │ │ │     └─   11.2 ms - fl/math/fixed_point/s16x16.h
  │ │ └─    0.6 ms - chsv.h
  │ │   └─    0.5 ms - fl/gfx/hsv.h
  │ ├─  104.9 ms - platforms.h
  │ │ └─  104.9 ms - platforms/stub/fastled_stub.h
  │ │   ├─   79.7 ms - platforms/stub/fastspi_stub.h
  │ │   │ └─   79.7 ms - platforms/stub/fastspi_stub_generic.h
  │ │   │   ├─   75.1 ms - platforms/shared/active_strip_data/active_strip_data.h
  │ │   │   │ └─   73.5 ms - fl/id_tracker.h
  │ │   │   │   └─   72.7 ms - fl/stl/mutex.h
  │ │   │   │     └─   72.7 ms - platforms/mutex.h
  │ │   │   │       └─   72.6 ms - platforms/stub/mutex_stub.h
  │ │   │   └─    4.2 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │ │   └─   25.2 ms - platforms/stub/clockless_stub.h
  │ │     └─   25.1 ms - platforms/stub/clockless_channel_stub.h
  │ │       ├─    9.0 ms - fl/channels/data.h
  │ │       │ └─    6.6 ms - fl/channels/config.h
  │ │       │   ├─    1.4 ms - fl/chipsets/chipset_timing_config.h
  │ │       │   │ └─    0.9 ms - fl/chipsets/led_timing.h
  │ │       │   └─    1.1 ms - fl/chipsets/spi.h
  │ │       ├─    8.6 ms - fl/system/log.h
  │ │       │ └─    8.3 ms - fl/stl/strstream.h
  │ │       ├─    1.7 ms - fl/channels/manager.h
  │ │       ├─    1.1 ms - fl/stl/weak_ptr.h
  │ │       └─    0.8 ms - fl/channels/driver.h
  │ ├─   28.6 ms - colorutils.h
  │ │ └─   28.3 ms - fl/gfx/colorutils.h
  │ │   ├─    5.9 ms - fl/gfx/blur.h
  │ │   │ └─    3.2 ms - fl/gfx/canvas.h
  │ │   │   └─    1.9 ms - fl/math/alpha.h
  │ │   ├─    2.1 ms - fl/gfx/fill.h
  │ │   └─    1.2 ms - fl/gfx/crgb16.h
  │ ├─   15.5 ms - pixel_controller.h
  │ │ ├─   11.0 ms - pixel_iterator.h
  │ │ │ └─   11.0 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │ │   ├─    3.1 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │ │   ├─    3.1 ms - fl/chipsets/encoders/apa102.h
  │ │ │   │ └─    2.3 ms - fl/chipsets/encoders/encoder_utils.h
  │ │ │   │   └─    1.9 ms - fl/gfx/gamma_lut.h
  │ │ │   ├─    0.6 ms - fl/chipsets/encoders/sk9822.h
  │ │ │   └─    0.5 ms - fl/chipsets/encoders/hd108.h
  │ │ └─    1.8 ms - rgbw.h
  │ │   └─    1.7 ms - fl/gfx/rgbw.h
  │ └─   14.1 ms - pixeltypes.h
  │   ├─   11.7 ms - lib8tion.h
  │   │ ├─    5.8 ms - fl/math/math8.h
  │   │ │ ├─    3.0 ms - fl/math/intmap.h
  │   │ │ │ └─    2.4 ms - platforms/intmap.h
  │   │ │ ├─    1.5 ms - fl/math/scale8.h
  │   │ │ │ └─    1.5 ms - platforms/scale8.h
  │   │ │ │   └─    0.6 ms - platforms/shared/scale8.h
  │   │ │ └─    1.2 ms - platforms/math8.h
  │   │ │   └─    0.9 ms - platforms/shared/math8.h
  │   │ └─    1.3 ms - fl/math/beat.h
  │   │   └─    0.7 ms - fl/math/trig8.h
  │   │     └─    0.7 ms - platforms/trig8.h
  │   │       └─    0.6 ms - platforms/shared/trig8.h
  │   └─    2.1 ms - crgb.hpp
  ├─   83.2 ms - fl/ui.h
  │ ├─   50.9 ms - fl/stl/json.h
  │ │ └─   40.1 ms - fl/stl/json/types.h
  │ │   └─    4.8 ms - fl/stl/limits.h
  │ ├─    7.6 ms - fl/ui_impl.h
  │ │ └─    7.1 ms - platforms/ui_defs.h
  │ │   ├─    1.6 ms - platforms/shared/ui/json/audio.h
  │ │   │ └─    0.7 ms - platforms/shared/ui/json/audio_internal.h
  │ │   ├─    1.2 ms - platforms/shared/ui/json/button.h
  │ │   │ └─    0.5 ms - platforms/shared/ui/json/ui_internal.h
  │ │   ├─    0.7 ms - platforms/shared/ui/json/description.h
  │ │   ├─    0.6 ms - platforms/shared/ui/json/help.h
  │ │   └─    0.6 ms - platforms/shared/ui/json/number_field.h
  │ └─    6.6 ms - fl/asset.h
  │   └─    5.4 ms - fl/stl/url.h
  ├─   19.1 ms - chipsets.h
  │ ├─    7.9 ms - fl/chipsets/ucs7604.h
  │ │ └─    5.9 ms - fl/chipsets/encoders/ucs7604.h
  │ ├─    4.5 ms - fl/chipsets/apa102.h
  │ ├─    1.2 ms - fl/chipsets/lpd880x.h
  │ ├─    0.6 ms - fl/chipsets/encoders/ws2816.h
  │ └─    0.6 ms - fl/chipsets/p9813.h
  └─   16.4 ms - fl/audio/audio_processor.h
    ├─    4.1 ms - fl/audio/audio_context.h
    │ └─    1.2 ms - fl/audio/fft/fft.h
    ├─    1.6 ms - fl/audio/detector/vibe.h
    └─    1.1 ms - fl/audio/signal_conditioner.h
fl/task/executor.h (1228.4ms)
  ├─  833.6 ms - fl/task/scheduler.h
  │ ├─  827.0 ms - fl/stl/singleton.h
  │ │ └─  826.5 ms - fl/stl/thread_local.h
  │ │   └─  825.6 ms - fl/stl/thread.h
  │ │     └─  825.6 ms - platforms/thread.h
  │ │       └─  825.5 ms - platforms/stub/thread_stub.h
  │ │         └─  825.5 ms - platforms/stub/thread_stub_stl.h
  │ │           └─  820.4 ms - thread
  │ │             ├─  484.1 ms - std_thread.h
  │ │             │ ├─  132.0 ms - iosfwd
  │ │             │ ├─   48.0 ms - tuple
  │ │             │ ├─   15.3 ms - refwrap.h
  │ │             │ ├─    8.5 ms - gthr.h
  │ │             │ └─    6.5 ms - functional_hash.h
  │ │             └─  254.1 ms - this_thread_sleep.h
  │ │               ├─  242.8 ms - chrono.h
  │ │               └─    3.5 ms - cerrno
  │ └─    6.0 ms - fl/task/task.h
  │   └─    2.4 ms - fl/trace.h
  │     ├─    1.5 ms - fl/stl/chrono.h
  │     └─    0.6 ms - fl/stl/tuple.h
  ├─  385.4 ms - fl/task/promise.h
  │ ├─  353.6 ms - fl/stl/function.h
  │ │ ├─  233.1 ms - fl/stl/vector.h
  │ │ │ ├─  107.9 ms - fl/math/math.h
  │ │ │ │ └─  104.4 ms - fl/stl/undef.h
  │ │ │ │   └─  151.3 ms - stdlib.h
  │ │ │ │     ├─   96.3 ms - cstdlib
  │ │ │ │     │ └─  151.3 ms - stdlib.h
  │ │ │ │     │   ├─   96.3 ms - cstdlib
  │ │ │ │     │   │ └─  151.3 ms - stdlib.h
  │ │ │ │     │   └─   17.4 ms - types.h
  │ │ │ │     │     ├─   17.4 ms - types.h
  │ │ │ │     │     ├─    9.2 ms - endian.h
  │ │ │ │     │     ├─    2.0 ms - pthreadtypes.h
  │ │ │ │     │     └─    1.6 ms - select.h
  │ │ │ │     └─   17.4 ms - types.h
  │ │ │ │       ├─   17.4 ms - types.h
  │ │ │ │       │ ├─   17.4 ms - types.h
  │ │ │ │       │ │ ├─   17.4 ms - types.h
  │ │ │ │       │ │ ├─    9.2 ms - endian.h
  │ │ │ │       │ │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │       │ │ └─    1.6 ms - select.h
  │ │ │ │       │ ├─    9.2 ms - endian.h
  │ │ │ │       │ ├─    2.0 ms - pthreadtypes.h
  │ │ │ │       │ │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │       │ └─    1.6 ms - select.h
  │ │ │ │       ├─    9.2 ms - endian.h
  │ │ │ │       ├─    2.0 ms - pthreadtypes.h
  │ │ │ │       │ └─    1.5 ms - thread-shared-types.h
  │ │ │ │       └─    1.6 ms - select.h
  │ │ │ ├─  106.2 ms - fl/stl/initializer_list.h
  │ │ │ ├─   12.0 ms - fl/stl/allocator.h
  │ │ │ │ └─    8.2 ms - fl/stl/bitset.h
  │ │ │ │   └─    5.3 ms - fl/stl/bitset_dynamic.h
  │ │ │ │     └─    1.4 ms - fl/stl/unique_ptr.h
  │ │ │ └─    1.8 ms - fl/stl/basic_vector.h
  │ │ ├─  104.2 ms - fl/stl/variant.h
  │ │ │ └─  102.9 ms - fl/stl/new.h
  │ │ │   └─  102.9 ms - platforms/new.h
  │ │ │     └─  102.8 ms - platforms/shared/new.h
  │ │ │       └─   74.7 ms - new
  │ │ │         └─   56.1 ms - c++config.h
  │ │ │           └─   45.7 ms - os_defines.h
  │ │ │             └─   45.3 ms - features.h
  │ │ ├─    9.1 ms - fl/stl/shared_ptr.h
  │ │ │ ├─    4.1 ms - fl/stl/type_traits.h
  │ │ │ ├─    1.0 ms - fl/stl/atomic.h
  │ │ │ └─    0.5 ms - fl/stl/bit_cast.h
  │ │ ├─    2.9 ms - fl/stl/algorithm.h
  │ │ │ └─    1.3 ms - fl/math/random.h
  │ │ │   └─    0.6 ms - fl/math/random8.h
  │ │ └─    1.0 ms - fl/stl/pair.h
  │ └─   28.2 ms - fl/stl/string.h
  │   ├─    8.5 ms - fl/stl/basic_string.h
  │   │ ├─    0.7 ms - fl/stl/not_null.h
  │   │ └─    0.6 ms - fl/stl/iterator.h
  │   ├─    5.4 ms - fl/stl/span.h
  │   │ └─    2.2 ms - fl/math/geometry.h
  │   ├─    3.4 ms - fl/stl/string_view.h
  │   └─    1.0 ms - fl/stl/optional.h
  ├─    7.8 ms - platforms/await.h
  │ └─    7.5 ms - platforms/coroutine_runtime.h
  │   └─    6.4 ms - fl/system/engine_events.h
  │     ├─    3.2 ms - fl/math/screenmap.h
  │     │ └─    2.3 ms - fl/stl/flat_map.h
  │     └─    2.1 ms - fl/math/xymap.h
  └─    0.5 ms - fl/task/promise_result.h
fl/fastled.h (362.2ms)
  ├─  184.0 ms - crgb.h
  │ ├─  183.1 ms - fl/gfx/crgb.h
  │ │ └─  179.8 ms - fl/math/ease.h
  │ │   └─  178.4 ms - fl/math/fixed_point.h
  │ │     ├─   87.2 ms - fl/math/fixed_point/s4x12.h
  │ │     │ ├─   74.3 ms - fl/math/sin32.h
  │ │     │ │ └─   72.3 ms - fl/math/simd.h
  │ │     │ │   └─   71.9 ms - fl/math/simd/types.h
  │ │     │ │     └─   71.7 ms - platforms/simd.h
  │ │     │ │       └─   71.6 ms - platforms/shared/simd_x86.hpp
  │ │     │ ├─    0.7 ms - fl/math/fixed_point/traits.h
  │ │     │ └─    0.5 ms - fl/math/fixed_point/isqrt.h
  │ │     ├─   11.3 ms - fl/math/fixed_point/s8x8.h
  │ │     ├─   11.3 ms - fl/math/fixed_point/s8x24.h
  │ │     ├─   11.2 ms - fl/math/fixed_point/s24x8.h
  │ │     └─   11.2 ms - fl/math/fixed_point/s16x16.h
  │ └─    0.6 ms - chsv.h
  │   └─    0.5 ms - fl/gfx/hsv.h
  ├─  104.9 ms - platforms.h
  │ └─  104.9 ms - platforms/stub/fastled_stub.h
  │   ├─   79.7 ms - platforms/stub/fastspi_stub.h
  │   │ └─   79.7 ms - platforms/stub/fastspi_stub_generic.h
  │   │   ├─   75.1 ms - platforms/shared/active_strip_data/active_strip_data.h
  │   │   │ └─   73.5 ms - fl/id_tracker.h
  │   │   │   └─   72.7 ms - fl/stl/mutex.h
  │   │   │     └─   72.7 ms - platforms/mutex.h
  │   │   │       └─   72.6 ms - platforms/stub/mutex_stub.h
  │   │   │         └─   72.5 ms - platforms/stub/mutex_stub_stl.h
  │   │   └─    4.2 ms - platforms/shared/active_strip_tracker/active_strip_tracker.h
  │   └─   25.2 ms - platforms/stub/clockless_stub.h
  │     └─   25.1 ms - platforms/stub/clockless_channel_stub.h
  │       ├─    9.0 ms - fl/channels/data.h
  │       │ └─    6.6 ms - fl/channels/config.h
  │       │   ├─    1.4 ms - fl/chipsets/chipset_timing_config.h
  │       │   │ └─    0.9 ms - fl/chipsets/led_timing.h
  │       │   └─    1.1 ms - fl/chipsets/spi.h
  │       ├─    8.6 ms - fl/system/log.h
  │       │ └─    8.3 ms - fl/stl/strstream.h
  │       ├─    1.7 ms - fl/channels/manager.h
  │       ├─    1.1 ms - fl/stl/weak_ptr.h
  │       └─    0.8 ms - fl/channels/driver.h
  ├─   28.6 ms - colorutils.h
  │ └─   28.3 ms - fl/gfx/colorutils.h
  │   ├─    5.9 ms - fl/gfx/blur.h
  │   │ └─    3.2 ms - fl/gfx/canvas.h
  │   │   └─    1.9 ms - fl/math/alpha.h
  │   ├─    2.1 ms - fl/gfx/fill.h
  │   └─    1.2 ms - fl/gfx/crgb16.h
  ├─   15.5 ms - pixel_controller.h
  │ ├─   11.0 ms - pixel_iterator.h
  │ │ └─   11.0 ms - fl/chipsets/encoders/pixel_iterator.h
  │ │   ├─    3.1 ms - fl/chipsets/encoders/pixel_iterator_adapters.h
  │ │   ├─    3.1 ms - fl/chipsets/encoders/apa102.h
  │ │   │ └─    2.3 ms - fl/chipsets/encoders/encoder_utils.h
  │ │   │   └─    1.9 ms - fl/gfx/gamma_lut.h
  │ │   ├─    0.6 ms - fl/chipsets/encoders/sk9822.h
  │ │   └─    0.5 ms - fl/chipsets/encoders/hd108.h
  │ └─    1.8 ms - rgbw.h
  │   └─    1.7 ms - fl/gfx/rgbw.h
  └─   14.1 ms - pixeltypes.h
    ├─   11.7 ms - lib8tion.h
    │ ├─    5.8 ms - fl/math/math8.h
    │ │ ├─    3.0 ms - fl/math/intmap.h
    │ │ │ └─    2.4 ms - platforms/intmap.h
    │ │ ├─    1.5 ms - fl/math/scale8.h
    │ │ │ └─    1.5 ms - platforms/scale8.h
    │ │ │   └─    0.6 ms - platforms/shared/scale8.h
    │ │ └─    1.2 ms - platforms/math8.h
    │ │   └─    0.9 ms - platforms/shared/math8.h
    │ └─    1.3 ms - fl/math/beat.h
    │   └─    0.7 ms - fl/math/trig8.h
    │     └─    0.7 ms - platforms/trig8.h
    │       └─    0.6 ms - platforms/shared/trig8.h
    └─    2.1 ms - crgb.hpp
fl/ui.h (83.2ms)
  ├─   50.9 ms - fl/stl/json.h
  │ └─   40.1 ms - fl/stl/json/types.h
  │   └─    4.8 ms - fl/stl/limits.h
  ├─    7.6 ms - fl/ui_impl.h
  │ └─    7.1 ms - platforms/ui_defs.h
  │   ├─    1.6 ms - platforms/shared/ui/json/audio.h
  │   │ └─    0.7 ms - platforms/shared/ui/json/audio_internal.h
  │   ├─    1.2 ms - platforms/shared/ui/json/button.h
  │   │ └─    0.5 ms - platforms/shared/ui/json/ui_internal.h
  │   ├─    0.7 ms - platforms/shared/ui/json/description.h
  │   ├─    0.6 ms - platforms/shared/ui/json/help.h
  │   └─    0.6 ms - platforms/shared/ui/json/number_field.h
  └─    6.6 ms - fl/asset.h
    └─    5.4 ms - fl/stl/url.h
chipsets.h (19.1ms)
  ├─    7.9 ms - fl/chipsets/ucs7604.h
  │ └─    5.9 ms - fl/chipsets/encoders/ucs7604.h
  ├─    4.5 ms - fl/chipsets/apa102.h
  ├─    1.2 ms - fl/chipsets/lpd880x.h
  ├─    0.6 ms - fl/chipsets/encoders/ws2816.h
  └─    0.6 ms - fl/chipsets/p9813.h

TOP 20 SLOWEST OPERATIONS
--------------------------------------------------------------------------------
  1.  1750.9 ms - Source: FastLED.h
  2.  1750.9 ms - Total Source: 
  3.  1228.4 ms - Source: fl/task/executor.h
  4.   833.6 ms - Source: fl/task/scheduler.h
  5.   827.0 ms - Source: fl/stl/singleton.h
  6.   826.5 ms - Source: fl/stl/thread_local.h
  7.   825.6 ms - Source: fl/stl/thread.h
  8.   825.6 ms - Source: platforms/thread.h
  9.   825.5 ms - Source: platforms/stub/thread_stub.h
 10.   825.5 ms - Source: platforms/stub/thread_stub_stl.h
 11.   820.4 ms - Source: thread
 12.   484.1 ms - Source: std_thread.h
 13.   417.8 ms - Total ParseClass: 
 14.   385.4 ms - Source: fl/task/promise.h
 15.   362.2 ms - Source: fl/fastled.h
 16.   353.6 ms - Source: fl/stl/function.h
 17.   254.1 ms - Source: this_thread_sleep.h
 18.   242.8 ms - Source: chrono.h
 19.   233.1 ms - Source: fl/stl/vector.h
 20.   184.0 ms - Source: crgb.h

PERFORMANCE FLAGS
--------------------------------------------------------------------------------
⚠️  SLOW HEADERS (>50.0ms):
    - FastLED.h (1750.9ms)
    - fl/task/executor.h (1228.4ms)
    - fl/task/scheduler.h (833.6ms)
    - fl/stl/singleton.h (827.0ms)
    - fl/stl/thread_local.h (826.5ms)
    - fl/stl/thread.h (825.6ms)
    - platforms/thread.h (825.6ms)
    - platforms/stub/thread_stub.h (825.5ms)
    - platforms/stub/thread_stub_stl.h (825.5ms)
    - fl/task/promise.h (385.4ms)

⚠️  Template instantiation time is high (17.9% of total)
✓  Lexing time is acceptable (<10% of total)

RECOMMENDATIONS
--------------------------------------------------------------------------------
1. Consider optimizing FastLED.h (1750.9ms)
2. Consider optimizing fl/task/executor.h (1228.4ms)
3. Consider optimizing fl/task/scheduler.h (833.6ms)

================================================================================

@zackees
zackees deleted the add-fl-static-assert-lint branch August 21, 2026 19:15
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.

1 participant