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

Function blankCAutoInference

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

Source from the content-addressed store, hash-verified

1075 */
1076const C_AUTO_INFER_RE = /\bauto(?=[ \t]+[A-Za-z_]\w*[ \t]*=)/g;
1077export function blankCAutoInference(source: string): string {
1078 C_AUTO_INFER_RE.lastIndex = 0;
1079 if (!C_AUTO_INFER_RE.test(source)) return source;
1080 C_AUTO_INFER_RE.lastIndex = 0;
1081 return source.replace(C_AUTO_INFER_RE, () => ' ');
1082}
1083
1084/**
1085 * Blank a trailing parameter-attribute macro — `int argc UNUSED,` /

Callers 2

preParseCSourceFunction · 0.85
extraction.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected