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

Function blankCppApiPrefixMacros

src/extraction/languages/c-cpp.ts:606–609  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

604 */
605const CPP_API_PREFIX_RE = /\b[A-Z][A-Z0-9_]*(?:_API|_EXPORT|_ABI)\b(?=\s+[A-Za-z_])/g;
606export function blankCppApiPrefixMacros(source: string): string {
607 if (!/_(?:API|EXPORT|ABI)\b/.test(source)) return source;
608 return source.replace(CPP_API_PREFIX_RE, (m) => ' '.repeat(m.length));
609}
610
611/**
612 * Blank an Unreal-Engine annotation macro that appears MID-LINE (not

Callers 2

extraction.test.tsFile · 0.90
preParseCppSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected