MCPcopy Create free account
hub / github.com/FastLED/FastLED / find_missing_noexcept

Function find_missing_noexcept

ci/tools/check_noexcept.py:292–305  ·  view source on GitHub ↗

Find current non-exempt missing-FL_NOEXCEPT signatures.

(scope: str = "all")

Source from the content-addressed store, hash-verified

290
291
292def find_missing_noexcept(scope: str = "all") -> list[NoexceptHit]:
293 """Find current non-exempt missing-FL_NOEXCEPT signatures."""
294 clang_query = _find_clang_query()
295 if not clang_query:
296 raise NoexceptCheckError(
297 "clang-query not found. Install LLVM or the clang-tool-chain package."
298 )
299
300 all_hits: list[NoexceptHit] = []
301 for tu, file_regex in _SCOPES[scope]:
302 if not (PROJECT_ROOT / tu).exists():
303 raise NoexceptCheckError(f"translation unit not found: {tu}")
304 all_hits.extend(_run_clang_query(clang_query, tu, file_regex))
305 return all_hits
306
307
308def _print_hits(hits: list[NoexceptHit]) -> None:

Callers 2

run_noexcept_ast_checkFunction · 0.90
mainFunction · 0.85

Calls 3

NoexceptCheckErrorClass · 0.85
_find_clang_queryFunction · 0.70
_run_clang_queryFunction · 0.70

Tested by

no test coverage detected