MCPcopy Create free account
hub / github.com/FastLED/FastLED / demangle_symbol

Function demangle_symbol

ci/util/elf.py:126–138  ·  view source on GitHub ↗

Demangle a C++ symbol using c++filt. Args: cppfilt_path (Path): Path to the c++filt executable. symbol (str): The symbol to demangle. Returns: str: The demangled symbol.

(cppfilt_path: Path, symbol: str)

Source from the content-addressed store, hash-verified

124
125
126def demangle_symbol(cppfilt_path: Path, symbol: str) -> str:
127 """
128 Demangle a C++ symbol using c++filt.
129
130 Args:
131 cppfilt_path (Path): Path to the c++filt executable.
132 symbol (str): The symbol to demangle.
133
134 Returns:
135 str: The demangled symbol.
136 """
137 command = [str(cppfilt_path), symbol]
138 return run_command(command, show_output=False).strip()
139
140
141def list_symbols_and_sizes(objdump_path: Path, cppfilt_path: Path, elf_file: Path):

Callers 2

list_symbols_and_sizesFunction · 0.70

Calls 1

run_commandFunction · 0.70

Tested by

no test coverage detected