summaryrefslogtreecommitdiff
path: root/source/slang/mangle.h
blob: 60a1dff9e68e3128d0e00f2bbc7c1b202a60ac4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SLANG_MANGLE_H_INCLUDED
#define SLANG_MANGLE_H_INCLUDED

// This file implements the name mangling scheme for the Slang language.

#include "../core/basic.h"
#include "syntax.h"

namespace Slang
{
    String getMangledName(Decl* decl);
    String getMangledName(DeclRef<Decl> const & declRef);
    String getMangledName(DeclRefBase const & declRef);

    String getMangledNameForConformanceWitness(
        Type* sub,
        Type* sup);
}

#endif