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

Function blankCAutoInference

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

Source from the content-addressed store, hash-verified

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