clang  14.0.0git
Public Member Functions | List of all members
clang::MangleNumberingContext Class Referenceabstract

Keeps track of the mangled names of lambda expressions and block literals within a particular context. More...

#include "clang/AST/MangleNumberingContext.h"

Public Member Functions

virtual ~MangleNumberingContext ()
 
virtual unsigned getManglingNumber (const CXXMethodDecl *CallOperator)=0
 Retrieve the mangling number of a new lambda expression with the given call operator within this context. More...
 
virtual unsigned getManglingNumber (const BlockDecl *BD)=0
 Retrieve the mangling number of a new block literal within this context. More...
 
virtual unsigned getStaticLocalNumber (const VarDecl *VD)=0
 Static locals are numbered by source order. More...
 
virtual unsigned getManglingNumber (const VarDecl *VD, unsigned MSLocalManglingNumber)=0
 Retrieve the mangling number of a static local variable within this context. More...
 
virtual unsigned getManglingNumber (const TagDecl *TD, unsigned MSLocalManglingNumber)=0
 Retrieve the mangling number of a static local variable within this context. More...
 
virtual unsigned getDeviceManglingNumber (const CXXMethodDecl *)
 Retrieve the mangling number of a new lambda expression with the given call operator within the device context. More...
 

Detailed Description

Keeps track of the mangled names of lambda expressions and block literals within a particular context.

Definition at line 31 of file MangleNumberingContext.h.

Constructor & Destructor Documentation

◆ ~MangleNumberingContext()

virtual clang::MangleNumberingContext::~MangleNumberingContext ( )
inlinevirtual

Definition at line 33 of file MangleNumberingContext.h.

Member Function Documentation

◆ getDeviceManglingNumber()

virtual unsigned clang::MangleNumberingContext::getDeviceManglingNumber ( const CXXMethodDecl )
inlinevirtual

Retrieve the mangling number of a new lambda expression with the given call operator within the device context.

No device number is assigned if there's no device numbering context is associated.

Definition at line 59 of file MangleNumberingContext.h.

Referenced by clang::Sema::handleLambdaNumbering().

◆ getManglingNumber() [1/4]

virtual unsigned clang::MangleNumberingContext::getManglingNumber ( const BlockDecl BD)
pure virtual

Retrieve the mangling number of a new block literal within this context.

◆ getManglingNumber() [2/4]

virtual unsigned clang::MangleNumberingContext::getManglingNumber ( const CXXMethodDecl CallOperator)
pure virtual

Retrieve the mangling number of a new lambda expression with the given call operator within this context.

Referenced by clang::Sema::ActOnBlockStart(), clang::Sema::handleLambdaNumbering(), and clang::Sema::handleTagNumbering().

◆ getManglingNumber() [3/4]

virtual unsigned clang::MangleNumberingContext::getManglingNumber ( const TagDecl TD,
unsigned  MSLocalManglingNumber 
)
pure virtual

Retrieve the mangling number of a static local variable within this context.

◆ getManglingNumber() [4/4]

virtual unsigned clang::MangleNumberingContext::getManglingNumber ( const VarDecl VD,
unsigned  MSLocalManglingNumber 
)
pure virtual

Retrieve the mangling number of a static local variable within this context.

◆ getStaticLocalNumber()

virtual unsigned clang::MangleNumberingContext::getStaticLocalNumber ( const VarDecl VD)
pure virtual

Static locals are numbered by source order.


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