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

Function check_cpp_files_changed

ci/cpp_lint_cache.py:66–86  ·  view source on GitHub ↗

Check if C++ files have changed since the last successful lint run. Uses zccache-fingerprint for blake3-based change detection. Returns: True if files changed and C++ linting should run False if no changes detected and linting can be skipped

()

Source from the content-addressed store, hash-verified

64
65
66def check_cpp_files_changed() -> bool:
67 """
68 Check if C++ files have changed since the last successful lint run.
69
70 Uses zccache-fingerprint for blake3-based change detection.
71
72 Returns:
73 True if files changed and C++ linting should run
74 False if no changes detected and linting can be skipped
75 """
76 include, exclude = _get_cpp_lint_patterns()
77
78 cache = _get_cpp_lint_cache()
79 needs_update = cache.check_needs_update(include=include, exclude=exclude)
80
81 if needs_update:
82 print_cache_miss("C++ files changed - running linting")
83 return True
84 else:
85 print_cache_hit("No C++ changes detected - skipping linting")
86 return False
87
88
89def mark_cpp_lint_success() -> None:

Callers 2

run_cpp_lintFunction · 0.90
mainFunction · 0.85

Calls 5

print_cache_missFunction · 0.90
print_cache_hitFunction · 0.90
_get_cpp_lint_patternsFunction · 0.85
_get_cpp_lint_cacheFunction · 0.85
check_needs_updateMethod · 0.45

Tested by

no test coverage detected