0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

C++ の修飾名を demangle する Python モジュール

Posted at

GNU C++ / Clang 用です。VC++ などには対応していません。

アセンブラ レベルで使用される C++ シンボル名(修飾名)を関数

#include <cxxabi.h>
char *abi::__cxa_demangle( /*略*/ );

を使って C++ 表記形式に変換する単純な Python モジュールです。

実行例
>>> from cxademangle import demangle
>>> demangle('__ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEi')
'std::__1::basic_ostream<char, std::__1::char_traits<char>>::operator<<(int)'

変換できなかったときは入力文字列を返します。

レポジトリ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?