clang 17.0.0git
Public Member Functions | Protected Attributes | List of all members
clang::ConceptReference Class Reference

Common data class for constructs that reference concepts with template arguments. More...

#include "clang/AST/ASTConcept.h"

Inheritance diagram for clang::ConceptReference:
Inheritance graph
[legend]

Public Member Functions

 ConceptReference (NestedNameSpecifierLoc NNS, SourceLocation TemplateKWLoc, DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, ConceptDecl *NamedConcept, const ASTTemplateArgumentListInfo *ArgsAsWritten)
 
 ConceptReference ()
 
const NestedNameSpecifierLocgetNestedNameSpecifierLoc () const
 
const DeclarationNameInfogetConceptNameInfo () const
 
SourceLocation getConceptNameLoc () const
 
SourceLocation getTemplateKWLoc () const
 
NamedDeclgetFoundDecl () const
 
ConceptDeclgetNamedConcept () const
 
const ASTTemplateArgumentListInfogetTemplateArgsAsWritten () const
 
bool hasExplicitTemplateArgs () const
 Whether or not template arguments were explicitly specified in the concept reference (they might not be in type constraints, for example)
 

Protected Attributes

NestedNameSpecifierLoc NestedNameSpec
 
SourceLocation TemplateKWLoc
 The location of the template keyword, if specified when naming the concept.
 
DeclarationNameInfo ConceptName
 The concept name used.
 
NamedDeclFoundDecl
 The declaration found by name lookup when the expression was created.
 
ConceptDeclNamedConcept
 The concept named.
 
const ASTTemplateArgumentListInfoArgsAsWritten
 The template argument list source info used to specialize the concept.
 

Detailed Description

Common data class for constructs that reference concepts with template arguments.

Definition at line 112 of file ASTConcept.h.

Constructor & Destructor Documentation

◆ ConceptReference() [1/2]

clang::ConceptReference::ConceptReference ( NestedNameSpecifierLoc  NNS,
SourceLocation  TemplateKWLoc,
DeclarationNameInfo  ConceptNameInfo,
NamedDecl FoundDecl,
ConceptDecl NamedConcept,
const ASTTemplateArgumentListInfo ArgsAsWritten 
)
inline

Definition at line 138 of file ASTConcept.h.

◆ ConceptReference() [2/2]

clang::ConceptReference::ConceptReference ( )
inline

Definition at line 146 of file ASTConcept.h.

Member Function Documentation

◆ getConceptNameInfo()

const DeclarationNameInfo & clang::ConceptReference::getConceptNameInfo ( ) const
inline

◆ getConceptNameLoc()

SourceLocation clang::ConceptReference::getConceptNameLoc ( ) const
inline

Definition at line 155 of file ASTConcept.h.

References getConceptNameInfo(), and clang::DeclarationNameInfo::getLoc().

◆ getFoundDecl()

NamedDecl * clang::ConceptReference::getFoundDecl ( ) const
inline

Definition at line 161 of file ASTConcept.h.

References FoundDecl.

◆ getNamedConcept()

ConceptDecl * clang::ConceptReference::getNamedConcept ( ) const
inline

◆ getNestedNameSpecifierLoc()

const NestedNameSpecifierLoc & clang::ConceptReference::getNestedNameSpecifierLoc ( ) const
inline

◆ getTemplateArgsAsWritten()

const ASTTemplateArgumentListInfo * clang::ConceptReference::getTemplateArgsAsWritten ( ) const
inline

◆ getTemplateKWLoc()

SourceLocation clang::ConceptReference::getTemplateKWLoc ( ) const
inline

Definition at line 159 of file ASTConcept.h.

References TemplateKWLoc.

◆ hasExplicitTemplateArgs()

bool clang::ConceptReference::hasExplicitTemplateArgs ( ) const
inline

Whether or not template arguments were explicitly specified in the concept reference (they might not be in type constraints, for example)

Definition at line 175 of file ASTConcept.h.

References ArgsAsWritten.

Referenced by clang::ASTContext::isSameTypeConstraint(), clang::TypeConstraint::print(), and clang::ASTNodeTraverser< Derived, NodeDelegateType >::VisitConceptSpecializationExpr().

Member Data Documentation

◆ ArgsAsWritten

const ASTTemplateArgumentListInfo* clang::ConceptReference::ArgsAsWritten
protected

The template argument list source info used to specialize the concept.

Definition at line 135 of file ASTConcept.h.

Referenced by clang::ConceptSpecializationExpr::Create(), clang::ConceptSpecializationExpr::getEndLoc(), getTemplateArgsAsWritten(), hasExplicitTemplateArgs(), and clang::TypeConstraint::print().

◆ ConceptName

DeclarationNameInfo clang::ConceptReference::ConceptName
protected

◆ FoundDecl

NamedDecl* clang::ConceptReference::FoundDecl
protected

The declaration found by name lookup when the expression was created.

Can differ from NamedConcept when, for example, the concept was found through a UsingShadowDecl.

Definition at line 128 of file ASTConcept.h.

Referenced by clang::ConceptSpecializationExpr::Create(), and getFoundDecl().

◆ NamedConcept

ConceptDecl* clang::ConceptReference::NamedConcept
protected

The concept named.

Definition at line 131 of file ASTConcept.h.

Referenced by clang::ConceptSpecializationExpr::Create(), and getNamedConcept().

◆ NestedNameSpec

NestedNameSpecifierLoc clang::ConceptReference::NestedNameSpec
protected

◆ TemplateKWLoc

SourceLocation clang::ConceptReference::TemplateKWLoc
protected

The location of the template keyword, if specified when naming the concept.

Definition at line 119 of file ASTConcept.h.

Referenced by clang::ConceptSpecializationExpr::Create(), and getTemplateKWLoc().


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