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 598 of file Mangle.cpp.

◆ ~ASTNameGenerator()

ASTNameGenerator::~ASTNameGenerator ( )

Definition at line 601 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 611 of file Mangle.cpp.

References D.

◆ getName()

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

Definition at line 607 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 603 of file Mangle.cpp.

References D.


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