C/C++ source pre-processing before tree-sitter: recover both macro-annotated * class definitions and macro-prefixed function definitions. Offset-preserving.
(source: string)
| 359 | /** C/C++ source pre-processing before tree-sitter: recover both macro-annotated |
| 360 | * class definitions and macro-prefixed function definitions. Offset-preserving. */ |
| 361 | function preParseCppSource(source: string): string { |
| 362 | return blankCppInlineMacros(blankCppExportMacros(source)); |
| 363 | } |
| 364 | |
| 365 | export const cppExtractor: LanguageExtractor = { |
| 366 | // Recover macro-annotated class/struct definitions (`class MYMODULE_API Foo : Base`, |
nothing calls this directly
no test coverage detected