(source: string)
| 2281 | */ |
| 2282 | const C_AUTO_INFER_RE = /\bauto(?=[ \t]+[A-Za-z_]\w*[ \t]*=)/g; |
| 2283 | export 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,` / |
no outgoing calls
no test coverage detected