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

#include "clang/AST/Mangle.h"

Classes

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 297 of file Mangle.h.

Constructor & Destructor Documentation

◆ ASTNameGenerator()

ASTNameGenerator::ASTNameGenerator ( ASTContext Ctx)
explicit

Definition at line 597 of file Mangle.cpp.

◆ ~ASTNameGenerator()

ASTNameGenerator::~ASTNameGenerator ( )

Definition at line 600 of file Mangle.cpp.

Member Function Documentation

◆ getAllManglings()

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

Definition at line 610 of file Mangle.cpp.

References D.

◆ getName()

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

Definition at line 606 of file Mangle.cpp.

References D.

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

◆ writeName()

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

Writes name for D to OS.

Returns
true on failure, false on success.

Definition at line 602 of file Mangle.cpp.

References D.


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