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

Method getCppIncludeNodes

src/db/queries.ts:4695–4703  ·  view source on GitHub ↗

* The import node of every C / C++ `#include`, narrowed to the path it * spells and where it is written: the include graph reads nothing else, and * decoding every import node of a large C++ project costs several times more.

()

Source from the content-addressed store, hash-verified

4693 * decoding every import node of a large C++ project costs several times more.
4694 */
4695 getCppIncludeNodes(): Array<Pick<Node, 'id' | 'name' | 'filePath' | 'language' | 'startLine' | 'startColumn'>> {
4696 if (!this.stmts.getCppIncludeNodes) {
4697 this.stmts.getCppIncludeNodes = this.db.prepare(
4698 `SELECT id, name, file_path AS filePath, language, start_line AS startLine, start_column AS startColumn
4699 FROM nodes WHERE kind = 'import' AND language IN ('c', 'cpp')`
4700 );
4701 }
4702 return this.stmts.getCppIncludeNodes.all() as Array<Pick<Node, 'id' | 'name' | 'filePath' | 'language' | 'startLine' | 'startColumn'>>;
4703 }
4704
4705 /**
4706 * Stream the distinct node names one row at a time — the incremental

Callers

nothing calls this directly

Calls 2

prepareMethod · 0.65
allMethod · 0.65

Tested by

no test coverage detected