clang 19.0.0git
Public Member Functions | Public Attributes | List of all members
clang::QualifierInfo Struct Reference

A struct with extended info about a syntactic name qualifier, to be used for the case of out-of-line declarations. More...

#include "clang/AST/Decl.h"

Public Member Functions

 QualifierInfo ()=default
 
 QualifierInfo (const QualifierInfo &)=delete
 
QualifierInfooperator= (const QualifierInfo &)=delete
 
void setTemplateParameterListsInfo (ASTContext &Context, ArrayRef< TemplateParameterList * > TPLists)
 Sets info about "outer" template parameter lists.
 

Public Attributes

NestedNameSpecifierLoc QualifierLoc
 
unsigned NumTemplParamLists = 0
 The number of "outer" template parameter lists.
 
TemplateParameterList ** TemplParamLists = nullptr
 A new-allocated array of size NumTemplParamLists, containing pointers to the "outer" template parameter lists.
 

Detailed Description

A struct with extended info about a syntactic name qualifier, to be used for the case of out-of-line declarations.

Definition at line 743 of file Decl.h.

Constructor & Destructor Documentation

◆ QualifierInfo() [1/2]

clang::QualifierInfo::QualifierInfo ( )
default

◆ QualifierInfo() [2/2]

clang::QualifierInfo::QualifierInfo ( const QualifierInfo )
delete

Member Function Documentation

◆ operator=()

QualifierInfo & clang::QualifierInfo::operator= ( const QualifierInfo )
delete

◆ setTemplateParameterListsInfo()

void QualifierInfo::setTemplateParameterListsInfo ( ASTContext Context,
ArrayRef< TemplateParameterList * >  TPLists 
)

Sets info about "outer" template parameter lists.

Definition at line 2098 of file Decl.cpp.

References clang::ASTContext::Deallocate(), NumTemplParamLists, and TemplParamLists.

Referenced by clang::TagDecl::setTemplateParameterListsInfo().

Member Data Documentation

◆ NumTemplParamLists

unsigned clang::QualifierInfo::NumTemplParamLists = 0

The number of "outer" template parameter lists.

The count includes all of the template parameter lists that were matched against the template-ids occurring into the NNS and possibly (in the case of an explicit specialization) a final "template <>".

Definition at line 750 of file Decl.h.

Referenced by clang::ASTRecordWriter::AddQualifierInfo(), clang::TagDecl::getNumTemplateParameterLists(), clang::ASTRecordReader::readQualifierInfo(), and setTemplateParameterListsInfo().

◆ QualifierLoc

NestedNameSpecifierLoc clang::QualifierInfo::QualifierLoc

◆ TemplParamLists

TemplateParameterList** clang::QualifierInfo::TemplParamLists = nullptr

A new-allocated array of size NumTemplParamLists, containing pointers to the "outer" template parameter lists.

It includes all of the template parameter lists that were matched against the template-ids occurring into the NNS and possibly (in the case of an explicit specialization) a final "template <>".

Definition at line 757 of file Decl.h.

Referenced by clang::ASTRecordWriter::AddQualifierInfo(), clang::TagDecl::getTemplateParameterList(), clang::ASTRecordReader::readQualifierInfo(), and setTemplateParameterListsInfo().


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