MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / loadCppIncludeDirs

Function loadCppIncludeDirs

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

Source from the content-addressed store, hash-verified

523 * Returns paths relative to projectRoot.
524 */
525export function loadCppIncludeDirs(projectRoot: string): string[] {
526 const cached = cppIncludeDirCache.get(projectRoot);
527 if (cached !== undefined) return cached;
528
529 const dirs = loadCppIncludeDirsFromCompileDB(projectRoot)
530 || loadCppIncludeDirsHeuristic(projectRoot);
531
532 cppIncludeDirCache.set(projectRoot, dirs);
533 return dirs;
534}
535
536/**
537 * Try to load include directories from compile_commands.json.

Callers 2

createContextMethod · 0.90
resolution.test.tsFile · 0.90

Calls 4

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected