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

Method getCppIncludeEdges

src/db/queries.ts:4574–4580  ·  view source on GitHub ↗

The `#include`s of C and C++ files the graph holds: the file writing each, and the indexed file it names.

()

Source from the content-addressed store, hash-verified

4572
4573 /** The `#include`s of C and C++ files the graph holds: the file writing each, and the indexed file it names. */
4574 getCppIncludeEdges(): Array<{ source: string; target: string }> {
4575 return this.db.prepare(
4576 `SELECT s.file_path AS source, t.file_path AS target FROM edges e
4577 JOIN nodes s ON s.id = e.source JOIN nodes t ON t.id = e.target
4578 WHERE e.kind = 'imports' AND s.kind = 'file' AND t.kind = 'file' AND s.language IN ('c', 'cpp')`
4579 ).all() as Array<{ source: string; target: string }>;
4580 }
4581
4582 /**
4583 * The failed C++ calls and function values with a qualifier outside `std`

Callers 1

includersOfMethod · 0.80

Calls 2

allMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected