(source: string)
| 604 | */ |
| 605 | const CPP_API_PREFIX_RE = /\b[A-Z][A-Z0-9_]*(?:_API|_EXPORT|_ABI)\b(?=\s+[A-Za-z_])/g; |
| 606 | export function blankCppApiPrefixMacros(source: string): string { |
| 607 | if (!/_(?:API|EXPORT|ABI)\b/.test(source)) return source; |
| 608 | return source.replace(CPP_API_PREFIX_RE, (m) => ' '.repeat(m.length)); |
| 609 | } |
| 610 | |
| 611 | /** |
| 612 | * Blank an Unreal-Engine annotation macro that appears MID-LINE (not |
no outgoing calls
no test coverage detected