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

Function cDeclarationView

src/extraction/grammars.ts:798–800  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

796const C_DIRECTIVE_RE = /^[ \t]*#(?:[^\\\n]|\\(?:\r\n|[\s\S]))*/gm;
797
798function cDeclarationView(source: string): string {
799 return source.replace(C_NOISE_RE, ' ').replace(C_DIRECTIVE_RE, '');
800}
801
802const CPP_ID = String.raw`[A-Za-z_]\w*`;
803/**

Callers 1

findCppDeclarationSyntaxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected