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

Function blankCAutoInference

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

Source from the content-addressed store, hash-verified

1085 */
1086const C_AUTO_INFER_RE = /\bauto(?=[ \t]+[A-Za-z_]\w*[ \t]*=)/g;
1087export function blankCAutoInference(source: string): string {
1088 C_AUTO_INFER_RE.lastIndex = 0;
1089 if (!C_AUTO_INFER_RE.test(source)) return source;
1090 C_AUTO_INFER_RE.lastIndex = 0;
1091 return source.replace(C_AUTO_INFER_RE, () => ' ');
1092}
1093
1094/**
1095 * 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