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

Function cppIncludedFile

src/resolution/cpp-includers.ts:157–159  ·  view source on GitHub ↗
(include: Node, context: ResolutionContext)

Source from the content-addressed store, hash-verified

155
156/** The indexed file the `#include` an import node records names, or null. */
157export function cppIncludedFile(include: Node, context: ResolutionContext): string | null {
158 return include.kind === 'import' && isCFamily(include.language) ? includedFile(toInclude(include), context, memoFor(context)) : null;
159}
160
161/**
162 * The indexed files an `#include` names under a source file's name

Callers

nothing calls this directly

Calls 4

includedFileFunction · 0.85
toIncludeFunction · 0.85
isCFamilyFunction · 0.70
memoForFunction · 0.70

Tested by

no test coverage detected