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

Function blankCAutoInference

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

Source from the content-addressed store, hash-verified

2281 */
2282const C_AUTO_INFER_RE = /\bauto(?=[ \t]+[A-Za-z_]\w*[ \t]*=)/g;
2283export function blankCAutoInference(source: string): string {
2284 C_AUTO_INFER_RE.lastIndex = 0;
2285 if (!C_AUTO_INFER_RE.test(source)) return source;
2286 C_AUTO_INFER_RE.lastIndex = 0;
2287 return source.replace(C_AUTO_INFER_RE, () => ' ');
2288}
2289
2290/**
2291 * 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