(source: string)
| 834 | const C_LEADING_ATTR_MACRO_RE = |
| 835 | /^([ \t]*)([A-Z][A-Z0-9_]{2,})(?=\s+[A-Za-z_]\w*[\s*]+[A-Za-z_]\w*\s*\()/gm; |
| 836 | export function blankCLeadingAttrMacros(source: string): string { |
| 837 | return source.replace( |
| 838 | C_LEADING_ATTR_MACRO_RE, |
| 839 | (_m, ws: string, macro: string) => ws + ' '.repeat(macro.length) |
| 840 | ); |
| 841 | } |
| 842 | |
| 843 | /** |
| 844 | * Blank the body of `#ifdef __cplusplus … #endif` guard regions in C sources. |
no outgoing calls
no test coverage detected