clang
15.0.0git
|
Common data class for constructs that reference concepts with template arguments. More...
#include "clang/AST/ASTConcept.h"
Public Member Functions | |
ConceptReference (NestedNameSpecifierLoc NNS, SourceLocation TemplateKWLoc, DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, ConceptDecl *NamedConcept, const ASTTemplateArgumentListInfo *ArgsAsWritten) | |
ConceptReference () | |
const NestedNameSpecifierLoc & | getNestedNameSpecifierLoc () const |
const DeclarationNameInfo & | getConceptNameInfo () const |
SourceLocation | getConceptNameLoc () const |
SourceLocation | getTemplateKWLoc () const |
NamedDecl * | getFoundDecl () const |
ConceptDecl * | getNamedConcept () const |
const ASTTemplateArgumentListInfo * | getTemplateArgsAsWritten () 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) More... | |
Protected Attributes | |
NestedNameSpecifierLoc | NestedNameSpec |
SourceLocation | TemplateKWLoc |
The location of the template keyword, if specified when naming the concept. More... | |
DeclarationNameInfo | ConceptName |
The concept name used. More... | |
NamedDecl * | FoundDecl |
The declaration found by name lookup when the expression was created. More... | |
ConceptDecl * | NamedConcept |
The concept named. More... | |
const ASTTemplateArgumentListInfo * | ArgsAsWritten |
The template argument list source info used to specialize the concept. More... | |
Common data class for constructs that reference concepts with template arguments.
Definition at line 99 of file ASTConcept.h.
|
inline |
Definition at line 125 of file ASTConcept.h.
|
inline |
Definition at line 133 of file ASTConcept.h.
|
inline |
Definition at line 140 of file ASTConcept.h.
References ConceptName.
Referenced by getConceptNameLoc(), clang::Sema::SubstTypeConstraint(), and clang::ASTDeclWriter::VisitTemplateTypeParmDecl().
|
inline |
Definition at line 142 of file ASTConcept.h.
References getConceptNameInfo(), and clang::DeclarationNameInfo::getLoc().
|
inline |
Definition at line 148 of file ASTConcept.h.
References FoundDecl.
|
inline |
Definition at line 152 of file ASTConcept.h.
References NamedConcept.
Referenced by canonicalizeImmediatelyDeclaredConstraint(), clang::ASTContext::isSameTemplateParameter(), clang::Sema::SubstTypeConstraint(), and clang::ASTDeclWriter::VisitTemplateTypeParmDecl().
|
inline |
Definition at line 136 of file ASTConcept.h.
References NestedNameSpec.
Referenced by clang::ConceptSpecializationExpr::getBeginLoc(), clang::Sema::SubstTypeConstraint(), and clang::ASTDeclWriter::VisitTemplateTypeParmDecl().
|
inline |
Definition at line 156 of file ASTConcept.h.
References ArgsAsWritten.
Referenced by clang::computeDependence(), clang::ASTContext::isSameTemplateParameter(), clang::Sema::SubstTypeConstraint(), clang::ASTNodeTraverser< ASTDumper, TextNodeDumper >::VisitConceptSpecializationExpr(), and clang::ASTDeclWriter::VisitTemplateTypeParmDecl().
|
inline |
Definition at line 146 of file ASTConcept.h.
References TemplateKWLoc.
|
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 162 of file ASTConcept.h.
References ArgsAsWritten.
Referenced by clang::ASTContext::isSameTemplateParameter(), clang::TypeConstraint::print(), and clang::ASTNodeTraverser< ASTDumper, TextNodeDumper >::VisitConceptSpecializationExpr().
|
protected |
The template argument list source info used to specialize the concept.
Definition at line 122 of file ASTConcept.h.
Referenced by clang::ConceptSpecializationExpr::getEndLoc(), getTemplateArgsAsWritten(), hasExplicitTemplateArgs(), and clang::TypeConstraint::print().
|
protected |
The concept name used.
Definition at line 109 of file ASTConcept.h.
Referenced by clang::ConceptSpecializationExpr::getBeginLoc(), getConceptNameInfo(), clang::ConceptSpecializationExpr::getEndLoc(), and clang::TypeConstraint::print().
|
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 115 of file ASTConcept.h.
Referenced by getFoundDecl().
|
protected |
The concept named.
Definition at line 118 of file ASTConcept.h.
Referenced by clang::ConceptSpecializationExpr::Create(), and getNamedConcept().
|
protected |
Definition at line 102 of file ASTConcept.h.
Referenced by getNestedNameSpecifierLoc(), and clang::TypeConstraint::print().
|
protected |
The location of the template keyword, if specified when naming the concept.
Definition at line 106 of file ASTConcept.h.
Referenced by getTemplateKWLoc().