aboutsummaryrefslogblamecommitdiffstats
path: root/util/system/demangle_impl.h
blob: 081004f976b673575601e47df94fcb7428950318 (plain) (tree)



















                                                                                           
#pragma once

#include <util/generic/ptr.h>
#include <util/generic/string.h>

namespace NPrivate {

    /*
     * cxxabi::__cxa_demangle (and thus TCppDemanger) have terrible memory ownership model.
     *
     * Consider using CppDemangle instead. It is slow, but robust.
     */
    class TCppDemangler {
    public:
        const char* Demangle(const char* name);

    private:
        THolder<char, TFree> TmpBuf_;
    };

} //namespace NPrivate