MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / find_compile_commands

Function find_compile_commands

scripts/lint.py:30–45  ·  view source on GitHub ↗

Find compile_commands.json in build directory or project root.

()

Source from the content-addressed store, hash-verified

28
29def find_compile_commands() -> Optional[Path]:
30 """Find compile_commands.json in build directory or project root."""
31 project_dir = Path(__file__).parent.parent
32 build_dir = project_dir / "build"
33
34 # Check build directory first
35 build_commands = build_dir / "compile_commands.json"
36 if build_commands.exists():
37 return build_commands
38
39 # Check project root
40 root_commands = project_dir / "compile_commands.json"
41 if root_commands.exists():
42 return root_commands
43
44 return None
45
46
47def get_system_include_args() -> List[str]:
48 """Get system include paths for macOS."""

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected