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

Function parse_depfile_inputs

ci/compile_pch.py:164–178  ·  view source on GitHub ↗

Parse the depfile and return a list of dependency file paths.

(depfile_path: Path)

Source from the content-addressed store, hash-verified

162
163
164def parse_depfile_inputs(depfile_path: Path) -> list[Path]:
165 """Parse the depfile and return a list of dependency file paths."""
166 if not depfile_path.exists():
167 return []
168
169 content = depfile_path.read_text(encoding="utf-8")
170 separator_idx = _find_depfile_separator(content)
171
172 if separator_idx == -1:
173 return []
174
175 # Extract dependencies (everything after ": ")
176 deps_str = content[separator_idx + 2 :]
177
178 return [Path(t) for t in _tokenize_depfile_deps(deps_str) if t]
179
180
181def hash_input_files(files: list[Path]) -> str:

Callers 2

invalidate_stale_pchFunction · 0.85
mainFunction · 0.85

Calls 2

_find_depfile_separatorFunction · 0.85
_tokenize_depfile_depsFunction · 0.85

Tested by

no test coverage detected