clang 19.0.0git
Classes | Public Member Functions | List of all members
clang::ASTNameGenerator Class Reference

#include "clang/AST/Mangle.h"


class  Implementation

Public Member Functions

 ASTNameGenerator (ASTContext &Ctx)
 ~ASTNameGenerator ()
bool writeName (const Decl *D, raw_ostream &OS)
 Writes name for D to OS.
std::string getName (const Decl *D)
std::vector< std::string > getAllManglings (const Decl *D)

Detailed Description

Definition at line 298 of file Mangle.h.

Constructor & Destructor Documentation

◆ ASTNameGenerator()

ASTNameGenerator::ASTNameGenerator ( ASTContext Ctx)

Definition at line 587 of file Mangle.cpp.

◆ ~ASTNameGenerator()

ASTNameGenerator::~ASTNameGenerator ( )

Definition at line 590 of file Mangle.cpp.

Member Function Documentation

◆ getAllManglings()

std::vector< std::string > ASTNameGenerator::getAllManglings ( const Decl D)
all applicable mangled names. For example C++ constructors/destructors can have multiple.

Definition at line 600 of file Mangle.cpp.

◆ getName()

std::string ASTNameGenerator::getName ( const Decl D)
name for D

Definition at line 596 of file Mangle.cpp.

Referenced by clang::JSONNodeDumper::VisitNamedDecl().

◆ writeName()

bool ASTNameGenerator::writeName ( const Decl D,
raw_ostream &  OS 

Writes name for D to OS.

true on failure, false on success.

Definition at line 592 of file Mangle.cpp.

The documentation for this class was generated from the following files: