MCPcopy
hub / github.com/colbymchenry/codegraph / loadCppIncludeDirs

Function loadCppIncludeDirs

src/resolution/import-resolver.ts:351–360  ·  view source on GitHub ↗
(projectRoot: string)

Source from the content-addressed store, hash-verified

349 * Returns paths relative to projectRoot.
350 */
351export function loadCppIncludeDirs(projectRoot: string): string[] {
352 const cached = cppIncludeDirCache.get(projectRoot);
353 if (cached !== undefined) return cached;
354
355 const dirs = loadCppIncludeDirsFromCompileDB(projectRoot)
356 || loadCppIncludeDirsHeuristic(projectRoot);
357
358 cppIncludeDirCache.set(projectRoot, dirs);
359 return dirs;
360}
361
362/**
363 * Try to load include directories from compile_commands.json.

Callers 2

createContextMethod · 0.90
resolution.test.tsFile · 0.90

Calls 4

setMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected