Demangle a collection of symbols using the cxxfilt tool.
(cxxfilt: str, mangled_symbols: Iterable[Symbol])
| 155 | |
| 156 | |
| 157 | def demangle_symbols(cxxfilt: str, mangled_symbols: Iterable[Symbol]) -> None: |
| 158 | """Demangle a collection of symbols using the cxxfilt tool.""" |
| 159 | output = get_tool_output([cxxfilt] + [symbol.mangled for symbol in mangled_symbols]) |
| 160 | for symbol, demangled in zip(mangled_symbols, output.splitlines()): |
| 161 | symbol.demangled = demangled |
| 162 | |
| 163 | |
| 164 | def check_disallowed_symbols(cxxfilt: str, symbols: Iterable[Symbol]) -> None: |
no test coverage detected