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

Function clean_pch

ci/wasm_compile_pch.py:390–406  ·  view source on GitHub ↗

Remove all PCH artifacts.

()

Source from the content-addressed store, hash-verified

388
389
390def clean_pch() -> int:
391 """Remove all PCH artifacts."""
392 print("Cleaning PCH artifacts...")
393
394 removed_count = 0
395 for artifact in [PCH_OUTPUT, PCH_DEPFILE, PCH_METADATA]:
396 if artifact.exists():
397 artifact.unlink()
398 print(f" Removed: {artifact}")
399 removed_count += 1
400
401 if removed_count == 0:
402 print(" No PCH artifacts found to clean")
403 else:
404 print(f"✓ Cleaned {removed_count} PCH artifact(s)")
405
406 return 0
407
408
409def main() -> int:

Callers 1

mainFunction · 0.85

Calls 2

unlinkMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected