(source: string)
| 1075 | */ |
| 1076 | const C_AUTO_INFER_RE = /\bauto(?=[ \t]+[A-Za-z_]\w*[ \t]*=)/g; |
| 1077 | export function blankCAutoInference(source: string): string { |
| 1078 | C_AUTO_INFER_RE.lastIndex = 0; |
| 1079 | if (!C_AUTO_INFER_RE.test(source)) return source; |
| 1080 | C_AUTO_INFER_RE.lastIndex = 0; |
| 1081 | return source.replace(C_AUTO_INFER_RE, () => ' '); |
| 1082 | } |
| 1083 | |
| 1084 | /** |
| 1085 | * Blank a trailing parameter-attribute macro — `int argc UNUSED,` / |
no outgoing calls
no test coverage detected