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