class ASTNameGenerator

Declaration

class ASTNameGenerator { /* full declaration omitted */ };

Declared at: clang/include/clang/AST/Mangle.h:286

Member Variables

private std::unique_ptr<Implementation> Impl

Method Overview

Methods

ASTNameGenerator(clang::ASTContext& Ctx)

Declared at: clang/include/clang/AST/Mangle.h:288

Parameters

clang::ASTContext& Ctx

std::vector<std::string> getAllManglings(
    const clang::Decl* D)

Declared at: clang/include/clang/AST/Mangle.h:300

Parameters

const clang::Decl* D

Returns

all applicable mangled names. For example C++ constructors/destructors can have multiple.

std::string getName(const clang::Decl* D)

Declared at: clang/include/clang/AST/Mangle.h:296

Parameters

const clang::Decl* D

Returns

name for \p D

bool writeName(const clang::Decl* D,
               llvm::raw_ostream& OS)

Description

Writes name for \p D to \p OS.

Declared at: clang/include/clang/AST/Mangle.h:293

Parameters

const clang::Decl* D
llvm::raw_ostream& OS

Returns

true on failure, false on success.

~ASTNameGenerator()

Declared at: clang/include/clang/AST/Mangle.h:289