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

Function _find_clang_query

ci/lint/clang_tidy/noexcept_platforms.py:53–72  ·  view source on GitHub ↗

Find clang-query binary.

()

Source from the content-addressed store, hash-verified

51
52
53def _find_clang_query() -> str:
54 """Find clang-query binary."""
55 # System LLVM install (Windows)
56 system_path = Path("C:/Program Files/LLVM/bin/clang-query.exe")
57 if system_path.exists():
58 return str(system_path)
59
60 # Project cache
61 cache_path = (
62 PROJECT_ROOT / ".cache" / "clang-tools" / "clang" / "bin" / "clang-query.exe"
63 )
64 if cache_path.exists():
65 return str(cache_path)
66
67 # PATH fallback
68 found = shutil.which("clang-query")
69 if found:
70 return found
71
72 return ""
73
74
75# ============================================================================

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected