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

Function preParseCppSource

src/extraction/languages/c-cpp.ts:361–363  ·  view source on GitHub ↗

C/C++ source pre-processing before tree-sitter: recover both macro-annotated * class definitions and macro-prefixed function definitions. Offset-preserving.

(source: string)

Source from the content-addressed store, hash-verified

359/** C/C++ source pre-processing before tree-sitter: recover both macro-annotated
360 * class definitions and macro-prefixed function definitions. Offset-preserving. */
361function preParseCppSource(source: string): string {
362 return blankCppInlineMacros(blankCppExportMacros(source));
363}
364
365export const cppExtractor: LanguageExtractor = {
366 // Recover macro-annotated class/struct definitions (`class MYMODULE_API Foo : Base`,

Callers

nothing calls this directly

Calls 2

blankCppInlineMacrosFunction · 0.85
blankCppExportMacrosFunction · 0.85

Tested by

no test coverage detected