LLVM  16.0.0git
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
AbstractManglingParser< Derived, Alloc > Struct Template Reference

#include "llvm/Demangle/ItaniumDemangle.h"

Inheritance diagram for AbstractManglingParser< Derived, Alloc >:
Inheritance graph
[legend]
Collaboration diagram for AbstractManglingParser< Derived, Alloc >:
Collaboration graph
[legend]

Classes

struct  NameState
 Holds some extra information about a <name> that is being parsed. More...
 
struct  OperatorInfo
 
class  ScopedTemplateParamList
 

Public Types

using TemplateParamList = PODSmallVector< Node *, 8 >
 

Public Member Functions

 AbstractManglingParser (const char *First_, const char *Last_)
 
Derived & getDerived ()
 
void reset (const char *First_, const char *Last_)
 
template<class T , class... Args>
Nodemake (Args &&... args)
 
template<class It >
NodeArray makeNodeArray (It begin, It end)
 
NodeArray popTrailingNodeArray (size_t FromPosition)
 
bool consumeIf (StringView S)
 
bool consumeIf (char C)
 
char consume ()
 
char look (unsigned Lookahead=0) const
 
size_t numLeft () const
 
StringView parseNumber (bool AllowNegative=false)
 
Qualifiers parseCVQualifiers ()
 
bool parsePositiveInteger (size_t *Out)
 
StringView parseBareSourceName ()
 
bool parseSeqId (size_t *Out)
 
NodeparseSubstitution ()
 
NodeparseTemplateParam ()
 
NodeparseTemplateParamDecl ()
 
NodeparseTemplateArgs (bool TagTemplates=false)
 
NodeparseTemplateArg ()
 
NodeparseExpr ()
 Parse the <expr> production. More...
 
NodeparsePrefixExpr (StringView Kind, Node::Prec Prec)
 
NodeparseBinaryExpr (StringView Kind, Node::Prec Prec)
 
NodeparseIntegerLiteral (StringView Lit)
 
NodeparseExprPrimary ()
 
template<class Float >
NodeparseFloatingLiteral ()
 
NodeparseFunctionParam ()
 
NodeparseConversionExpr ()
 
NodeparseBracedExpr ()
 
NodeparseFoldExpr ()
 
NodeparsePointerToMemberConversionExpr (Node::Prec Prec)
 
NodeparseSubobjectExpr ()
 
NodeparseType ()
 Parse the <type> production. More...
 
NodeparseFunctionType ()
 
NodeparseVectorType ()
 
NodeparseDecltype ()
 
NodeparseArrayType ()
 
NodeparsePointerToMemberType ()
 
NodeparseClassEnumType ()
 
NodeparseQualifiedType ()
 
NodeparseEncoding ()
 
bool parseCallOffset ()
 
NodeparseSpecialName ()
 
bool resolveForwardTemplateRefs (NameState &State)
 
NodeparseName (NameState *State=nullptr)
 Parse the <name> production> More...
 
NodeparseLocalName (NameState *State)
 
NodeparseOperatorName (NameState *State)
 
bool parseModuleNameOpt (ModuleName *&Module)
 
NodeparseUnqualifiedName (NameState *State, Node *Scope, ModuleName *Module)
 
NodeparseUnnamedTypeName (NameState *State)
 
NodeparseSourceName (NameState *State)
 
NodeparseUnscopedName (NameState *State, bool *isSubstName)
 
NodeparseNestedName (NameState *State)
 
NodeparseCtorDtorName (Node *&SoFar, NameState *State)
 
NodeparseAbiTags (Node *N)
 
const OperatorInfoparseOperatorEncoding ()
 
NodeparseUnresolvedName (bool Global)
 Parse the <unresolved-name> production. More...
 
NodeparseSimpleId ()
 
NodeparseBaseUnresolvedName ()
 
NodeparseUnresolvedType ()
 
NodeparseDestructorName ()
 
Nodeparse ()
 Top-level entry point into the parser. More...
 

Public Attributes

const char * First
 
const char * Last
 
PODSmallVector< Node *, 32 > Names
 
PODSmallVector< Node *, 32 > Subs
 
TemplateParamList OuterTemplateParams
 
PODSmallVector< TemplateParamList *, 4 > TemplateParams
 
PODSmallVector< ForwardTemplateReference *, 4 > ForwardTemplateRefs
 
bool TryToParseTemplateArgs = true
 
bool PermitForwardTemplateReferences = false
 
size_t ParsingLambdaParamsAtLevel = (size_t)-1
 
unsigned NumSyntheticTemplateParameters [3] = {}
 
Alloc ASTAllocator
 

Static Public Attributes

static const OperatorInfo Ops []
 
static const size_t NumOps
 

Detailed Description

template<typename Derived, typename Alloc>
struct AbstractManglingParser< Derived, Alloc >

Definition at line 2380 of file ItaniumDemangle.h.

Member Typedef Documentation

◆ TemplateParamList

template<typename Derived , typename Alloc >
using AbstractManglingParser< Derived, Alloc >::TemplateParamList = PODSmallVector<Node *, 8>

Definition at line 2394 of file ItaniumDemangle.h.

Constructor & Destructor Documentation

◆ AbstractManglingParser()

template<typename Derived , typename Alloc >
AbstractManglingParser< Derived, Alloc >::AbstractManglingParser ( const char *  First_,
const char *  Last_ 
)
inline

Definition at line 2437 of file ItaniumDemangle.h.

Member Function Documentation

◆ consume()

template<typename Derived , typename Alloc >
char AbstractManglingParser< Derived, Alloc >::consume ( )
inline

Definition at line 2492 of file ItaniumDemangle.h.

◆ consumeIf() [1/2]

template<typename Derived , typename Alloc >
bool AbstractManglingParser< Derived, Alloc >::consumeIf ( char  C)
inline

Definition at line 2484 of file ItaniumDemangle.h.

◆ consumeIf() [2/2]

template<typename Derived , typename Alloc >
bool AbstractManglingParser< Derived, Alloc >::consumeIf ( StringView  S)
inline

Definition at line 2476 of file ItaniumDemangle.h.

◆ getDerived()

template<typename Derived , typename Alloc >
Derived& AbstractManglingParser< Derived, Alloc >::getDerived ( )
inline

Definition at line 2440 of file ItaniumDemangle.h.

◆ look()

template<typename Derived , typename Alloc >
char AbstractManglingParser< Derived, Alloc >::look ( unsigned  Lookahead = 0) const
inline

Definition at line 2494 of file ItaniumDemangle.h.

◆ make()

template<typename Derived , typename Alloc >
template<class T , class... Args>
Node* AbstractManglingParser< Derived, Alloc >::make ( Args &&...  args)
inline

Definition at line 2456 of file ItaniumDemangle.h.

◆ makeNodeArray()

template<typename Derived , typename Alloc >
template<class It >
NodeArray AbstractManglingParser< Derived, Alloc >::makeNodeArray ( It  begin,
It  end 
)
inline

◆ numLeft()

template<typename Derived , typename Alloc >
size_t AbstractManglingParser< Derived, Alloc >::numLeft ( ) const
inline

Definition at line 2500 of file ItaniumDemangle.h.

◆ parse()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parse

Top-level entry point into the parser.

Definition at line 5450 of file ItaniumDemangle.h.

◆ parseAbiTags()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseAbiTags ( Node N)

Definition at line 3440 of file ItaniumDemangle.h.

◆ parseArrayType()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseArrayType

Definition at line 3621 of file ItaniumDemangle.h.

◆ parseBareSourceName()

template<typename Alloc , typename Derived >
StringView AbstractManglingParser< Alloc, Derived >::parseBareSourceName

Definition at line 3480 of file ItaniumDemangle.h.

◆ parseBaseUnresolvedName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseBaseUnresolvedName

Definition at line 3318 of file ItaniumDemangle.h.

◆ parseBinaryExpr()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseBinaryExpr ( StringView  Kind,
Node::Prec  Prec 
)

Definition at line 4127 of file ItaniumDemangle.h.

◆ parseBracedExpr()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseBracedExpr

Definition at line 4351 of file ItaniumDemangle.h.

◆ parseCallOffset()

template<typename Alloc , typename Derived >
bool AbstractManglingParser< Alloc, Derived >::parseCallOffset

Definition at line 4832 of file ItaniumDemangle.h.

◆ parseClassEnumType()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseClassEnumType

Definition at line 3667 of file ItaniumDemangle.h.

◆ parseConversionExpr()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseConversionExpr

Definition at line 4193 of file ItaniumDemangle.h.

◆ parseCtorDtorName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseCtorDtorName ( Node *&  SoFar,
NameState State 
)

Definition at line 3112 of file ItaniumDemangle.h.

◆ parseCVQualifiers()

template<typename Alloc , typename Derived >
Qualifiers AbstractManglingParser< Alloc, Derived >::parseCVQualifiers

Definition at line 4149 of file ItaniumDemangle.h.

◆ parseDecltype()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseDecltype

Definition at line 3605 of file ItaniumDemangle.h.

◆ parseDestructorName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseDestructorName

Definition at line 3277 of file ItaniumDemangle.h.

◆ parseEncoding()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseEncoding

Definition at line 5009 of file ItaniumDemangle.h.

◆ parseExpr()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseExpr

Parse the <expr> production.

Definition at line 4537 of file ItaniumDemangle.h.

◆ parseExprPrimary()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseExprPrimary

Definition at line 4231 of file ItaniumDemangle.h.

◆ parseFloatingLiteral()

template<typename Alloc , typename Derived >
template<class Float >
Node * AbstractManglingParser< Alloc, Derived >::parseFloatingLiteral

Definition at line 5132 of file ItaniumDemangle.h.

◆ parseFoldExpr()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseFoldExpr

Definition at line 4398 of file ItaniumDemangle.h.

◆ parseFunctionParam()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseFunctionParam

Definition at line 4166 of file ItaniumDemangle.h.

◆ parseFunctionType()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseFunctionType

Definition at line 3498 of file ItaniumDemangle.h.

◆ parseIntegerLiteral()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseIntegerLiteral ( StringView  Lit)

Definition at line 4140 of file ItaniumDemangle.h.

◆ parseLocalName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseLocalName ( NameState State)

Definition at line 2702 of file ItaniumDemangle.h.

◆ parseModuleNameOpt()

template<typename Derived , typename Alloc >
bool AbstractManglingParser< Derived, Alloc >::parseModuleNameOpt ( ModuleName *&  Module)

Definition at line 2826 of file ItaniumDemangle.h.

◆ parseName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseName ( NameState State = nullptr)

Parse the <name> production>

Definition at line 2666 of file ItaniumDemangle.h.

◆ parseNestedName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseNestedName ( NameState State)

Definition at line 3169 of file ItaniumDemangle.h.

◆ parseNumber()

template<typename Alloc , typename Derived >
StringView AbstractManglingParser< Alloc, Derived >::parseNumber ( bool  AllowNegative = false)

Definition at line 3455 of file ItaniumDemangle.h.

◆ parseOperatorEncoding()

template<typename Derived , typename Alloc >
const AbstractManglingParser< Derived, Alloc >::OperatorInfo * AbstractManglingParser< Derived, Alloc >::parseOperatorEncoding

Definition at line 3030 of file ItaniumDemangle.h.

◆ parseOperatorName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseOperatorName ( NameState State)

Definition at line 3049 of file ItaniumDemangle.h.

◆ parsePointerToMemberConversionExpr()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parsePointerToMemberConversionExpr ( Node::Prec  Prec)

Definition at line 4451 of file ItaniumDemangle.h.

◆ parsePointerToMemberType()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parsePointerToMemberType

Definition at line 3650 of file ItaniumDemangle.h.

◆ parsePositiveInteger()

template<typename Alloc , typename Derived >
bool AbstractManglingParser< Alloc, Derived >::parsePositiveInteger ( size_t Out)

Definition at line 3468 of file ItaniumDemangle.h.

◆ parsePrefixExpr()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parsePrefixExpr ( StringView  Kind,
Node::Prec  Prec 
)

Definition at line 4118 of file ItaniumDemangle.h.

◆ parseQualifiedType()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseQualifiedType

Definition at line 3690 of file ItaniumDemangle.h.

◆ parseSeqId()

template<typename Alloc , typename Derived >
bool AbstractManglingParser< Alloc, Derived >::parseSeqId ( size_t Out)

Definition at line 5148 of file ItaniumDemangle.h.

◆ parseSimpleId()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseSimpleId

Definition at line 3261 of file ItaniumDemangle.h.

◆ parseSourceName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseSourceName ( NameState State)

Definition at line 2927 of file ItaniumDemangle.h.

◆ parseSpecialName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseSpecialName

Definition at line 4865 of file ItaniumDemangle.h.

◆ parseSubobjectExpr()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseSubobjectExpr

Definition at line 4470 of file ItaniumDemangle.h.

◆ parseSubstitution()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseSubstitution

Definition at line 5181 of file ItaniumDemangle.h.

◆ parseTemplateArg()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseTemplateArg

Definition at line 5363 of file ItaniumDemangle.h.

◆ parseTemplateArgs()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseTemplateArgs ( bool  TagTemplates = false)

Definition at line 5405 of file ItaniumDemangle.h.

◆ parseTemplateParam()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseTemplateParam

Definition at line 5247 of file ItaniumDemangle.h.

◆ parseTemplateParamDecl()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseTemplateParamDecl

Definition at line 5306 of file ItaniumDemangle.h.

◆ parseType()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseType

Parse the <type> production.

Definition at line 3756 of file ItaniumDemangle.h.

◆ parseUnnamedTypeName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseUnnamedTypeName ( NameState State)

Definition at line 2849 of file ItaniumDemangle.h.

◆ parseUnqualifiedName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseUnqualifiedName ( NameState State,
Node Scope,
ModuleName Module 
)

Definition at line 2779 of file ItaniumDemangle.h.

◆ parseUnresolvedName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseUnresolvedName ( bool  Global)

Parse the <unresolved-name> production.

Definition at line 3352 of file ItaniumDemangle.h.

◆ parseUnresolvedType()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseUnresolvedType

Definition at line 3292 of file ItaniumDemangle.h.

◆ parseUnscopedName()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseUnscopedName ( NameState State,
bool *  isSubstName 
)

Definition at line 2739 of file ItaniumDemangle.h.

◆ parseVectorType()

template<typename Derived , typename Alloc >
Node * AbstractManglingParser< Derived, Alloc >::parseVectorType

Definition at line 3568 of file ItaniumDemangle.h.

◆ popTrailingNodeArray()

template<typename Derived , typename Alloc >
NodeArray AbstractManglingParser< Derived, Alloc >::popTrailingNodeArray ( size_t  FromPosition)
inline

Definition at line 2468 of file ItaniumDemangle.h.

◆ reset()

template<typename Derived , typename Alloc >
void AbstractManglingParser< Derived, Alloc >::reset ( const char *  First_,
const char *  Last_ 
)
inline

Definition at line 2442 of file ItaniumDemangle.h.

◆ resolveForwardTemplateRefs()

template<typename Derived , typename Alloc >
bool AbstractManglingParser< Derived, Alloc >::resolveForwardTemplateRefs ( NameState State)
inline

Definition at line 2555 of file ItaniumDemangle.h.

Member Data Documentation

◆ ASTAllocator

template<typename Derived , typename Alloc >
Alloc AbstractManglingParser< Derived, Alloc >::ASTAllocator

◆ First

template<typename Derived , typename Alloc >
const char* AbstractManglingParser< Derived, Alloc >::First

◆ ForwardTemplateRefs

template<typename Derived , typename Alloc >
PODSmallVector<ForwardTemplateReference *, 4> AbstractManglingParser< Derived, Alloc >::ForwardTemplateRefs

◆ Last

template<typename Derived , typename Alloc >
const char* AbstractManglingParser< Derived, Alloc >::Last

◆ Names

template<typename Derived , typename Alloc >
PODSmallVector<Node *, 32> AbstractManglingParser< Derived, Alloc >::Names

◆ NumOps

template<typename Derived , typename Alloc >
const size_t AbstractManglingParser< Derived, Alloc >::NumOps
static
Initial value:
= sizeof(Ops) /
sizeof(Ops[0])

Definition at line 2642 of file ItaniumDemangle.h.

◆ NumSyntheticTemplateParameters

template<typename Derived , typename Alloc >
unsigned AbstractManglingParser< Derived, Alloc >::NumSyntheticTemplateParameters[3] = {}

◆ Ops

template<typename Derived , typename Alloc >
const AbstractManglingParser< Derived, Alloc >::OperatorInfo AbstractManglingParser< Derived, Alloc >::Ops
static

Definition at line 2641 of file ItaniumDemangle.h.

◆ OuterTemplateParams

template<typename Derived , typename Alloc >
TemplateParamList AbstractManglingParser< Derived, Alloc >::OuterTemplateParams

◆ ParsingLambdaParamsAtLevel

template<typename Derived , typename Alloc >
size_t AbstractManglingParser< Derived, Alloc >::ParsingLambdaParamsAtLevel = (size_t)-1

◆ PermitForwardTemplateReferences

template<typename Derived , typename Alloc >
bool AbstractManglingParser< Derived, Alloc >::PermitForwardTemplateReferences = false

◆ Subs

template<typename Derived , typename Alloc >
PODSmallVector<Node *, 32> AbstractManglingParser< Derived, Alloc >::Subs

◆ TemplateParams

template<typename Derived , typename Alloc >
PODSmallVector<TemplateParamList *, 4> AbstractManglingParser< Derived, Alloc >::TemplateParams

◆ TryToParseTemplateArgs

template<typename Derived , typename Alloc >
bool AbstractManglingParser< Derived, Alloc >::TryToParseTemplateArgs = true

The documentation for this struct was generated from the following file:
AbstractManglingParser::Ops
static const OperatorInfo Ops[]
Definition: ItaniumDemangle.h:2641