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

Function _find_existing_compile_db

ci/util/fbuild_compiledb.py:83–91  ·  view source on GitHub ↗

Return an existing ``compile_commands.json`` for ``board_name``, or None.

(
    project_root: Path, build_root: Path, board_name: str
)

Source from the content-addressed store, hash-verified

81
82
83def _find_existing_compile_db(
84 project_root: Path, build_root: Path, board_name: str
85) -> Path | None:
86 """Return an existing ``compile_commands.json`` for ``board_name``, or None."""
87 for cand in _candidate_fbuild_release_dirs(project_root, build_root, board_name):
88 cdb = cand / "compile_commands.json"
89 if cdb.exists():
90 return cdb
91 return None
92
93
94def ensure_compile_commands(

Callers 1

ensure_compile_commandsFunction · 0.85

Calls 1

Tested by

no test coverage detected