Skip to content

fix(video): add FL_NOEXCEPT to embeddedScreenMap accessors (12 NoexceptAstChecker violations) - #3090

Merged
zackees merged 1 commit into
masterfrom
fix/video-embedded-screenmap-noexcept
Jun 15, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/video-embedded-screenmap-noexcept

Conversation

@zackees

@zackees zackees commented Jun 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Quietens 12 NoexceptAstChecker violations from #3074 (FLED v1 container support), surfaced by the stop-hook lint check.

Files touched

  • `src/fl/fx/video.{h,cpp.hpp}` — `Video::hasEmbeddedScreenMap()` / `embeddedScreenMapJson()`
  • `src/fl/video/pixel_stream.{h,cpp.hpp}` — `PixelStream::hasEmbeddedScreenMap()` / `embeddedScreenMapJson()`
  • `src/fl/video/video_impl.{h,cpp.hpp}` — `VideoImpl::hasEmbeddedScreenMap()` / `embeddedScreenMapJson()`

All six accessors are simple forwarders / member-field returns; `FL_NOEXCEPT` is the correct annotation. No behavior change.

Test plan

  • `bash lint --cpp` passes (NoexceptAstChecker clean)
  • CI: full matrix

Summary by CodeRabbit

  • Chores
    • Updated method signatures to explicitly declare non-throwing exception guarantees for video operations.

Quietens the NoexceptAstChecker — pre-existing master breakage from
#3074 (FLED v1 container support). 12 violations across:

- src/fl/fx/video.{h,cpp.hpp}             — Video::has/embeddedScreenMap*
- src/fl/video/pixel_stream.{h,cpp.hpp}   — PixelStream::has/embeddedScreenMap*
- src/fl/video/video_impl.{h,cpp.hpp}     — VideoImpl::has/embeddedScreenMap*

All six accessors are simple forwarders / member-field returns; FL_NOEXCEPT
is the correct annotation. No behavior change.

Surfaced by the stop-hook lint check after meta #3079 closure.
@coderabbitai

coderabbitai Bot commented Jun 15, 2026 •

Copy link
Copy Markdown

Review Change Stack

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: d2c1d409-bb95-4021-a201-e5c5b2f7360c

📥 Commits

Reviewing files that changed from the base of the PR and between 81bcaf3 and 0135162.

📒 Files selected for processing (6)
  • src/fl/fx/video.cpp.hpp
  • src/fl/fx/video.h
  • src/fl/video/pixel_stream.cpp.hpp
  • src/fl/video/pixel_stream.h
  • src/fl/video/video_impl.cpp.hpp
  • src/fl/video/video_impl.h

📝 Walkthrough

Walkthrough

Adds FL_NOEXCEPT exception specifiers to hasEmbeddedScreenMap() and embeddedScreenMapJson() across the Video, VideoImpl, and PixelStream class hierarchy, updating both header declarations and .cpp.hpp definitions. No logic changes beyond minor early-return formatting in hasEmbeddedScreenMap().

Changes

FL_NOEXCEPT on embedded screen map accessors

Layer / File(s) Summary
Header declarations updated with FL_NOEXCEPT
src/fl/fx/video.h, src/fl/video/video_impl.h, src/fl/video/pixel_stream.h
Adds FL_NOEXCEPT to the hasEmbeddedScreenMap() and embeddedScreenMapJson() declarations in all three class headers.
Implementation definitions updated with FL_NOEXCEPT
src/fl/fx/video.cpp.hpp, src/fl/video/video_impl.cpp.hpp, src/fl/video/pixel_stream.cpp.hpp
Adds FL_NOEXCEPT to matching method definitions; hasEmbeddedScreenMap() in Video and VideoImpl also receives minor early-return style cleanup.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#3074: Touches the same hasEmbeddedScreenMap() and embeddedScreenMapJson() accessors across Video, VideoImpl, and PixelStream, making it directly related to this signature refinement.

Poem

🐇 Hop hop, no throws today,
FL_NOEXCEPT is here to stay!
The screen map methods, calm and still,
Promise never to spill.
A quiet rabbit, tidy and neat — ✨

✨ 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 fix/video-embedded-screenmap-noexcept

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.

@zackees
zackees merged commit 9105b85 into master Jun 15, 2026
8 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jun 15, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 15, 2026
@zackees
zackees deleted the fix/video-embedded-screenmap-noexcept branch August 21, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant