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

Function invalidate_cpp_cache

ci/cpp_lint_cache.py:108–119  ·  view source on GitHub ↗

Invalidate the cache when lint fails, forcing a re-run next time.

()

Source from the content-addressed store, hash-verified

106
107
108def invalidate_cpp_cache() -> None:
109 """Invalidate the cache when lint fails, forcing a re-run next time."""
110 cache = _get_cpp_lint_cache()
111
112 try:
113 cache.invalidate()
114 print_cache_miss("C++ lint cache invalidated - will re-run linting next time")
115 except KeyboardInterrupt as ki:
116 handle_keyboard_interrupt(ki)
117 raise
118 except Exception as e:
119 print_cache_miss(f"Failed to invalidate C++ cache: {e}")
120
121
122def main() -> int:

Callers 2

run_cpp_lintFunction · 0.90
mainFunction · 0.85

Calls 4

print_cache_missFunction · 0.90
_get_cpp_lint_cacheFunction · 0.85
invalidateMethod · 0.45

Tested by

no test coverage detected