clang  12.0.0git
Public Member Functions | List of all members
clang::TypeConstraint Class Reference

#include "clang/AST/ASTConcept.h"

Inheritance diagram for clang::TypeConstraint:
Inheritance graph
[legend]
Collaboration diagram for clang::TypeConstraint:
Collaboration graph
[legend]

Public Member Functions

 TypeConstraint (NestedNameSpecifierLoc NNS, DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, ConceptDecl *NamedConcept, const ASTTemplateArgumentListInfo *ArgsAsWritten, Expr *ImmediatelyDeclaredConstraint)
 
ExprgetImmediatelyDeclaredConstraint () const
 Get the immediately-declared constraint expression introduced by this type-constraint, that is - the constraint expression that is added to the associated constraints of the enclosing declaration in practice. More...
 
void print (llvm::raw_ostream &OS, PrintingPolicy Policy) const
 
- Public Member Functions inherited from clang::ConceptReference
 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) More...
 

Additional Inherited Members

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

Detailed Description

Definition at line 169 of file ASTConcept.h.

Constructor & Destructor Documentation

◆ TypeConstraint()

clang::TypeConstraint::TypeConstraint ( NestedNameSpecifierLoc  NNS,
DeclarationNameInfo  ConceptNameInfo,
NamedDecl FoundDecl,
ConceptDecl NamedConcept,
const ASTTemplateArgumentListInfo ArgsAsWritten,
Expr ImmediatelyDeclaredConstraint 
)
inline

Definition at line 175 of file ASTConcept.h.

Member Function Documentation

◆ getImmediatelyDeclaredConstraint()

Expr* clang::TypeConstraint::getImmediatelyDeclaredConstraint ( ) const
inline

Get the immediately-declared constraint expression introduced by this type-constraint, that is - the constraint expression that is added to the associated constraints of the enclosing declaration in practice.

Definition at line 187 of file ASTConcept.h.

References print().

Referenced by clang::ASTContext::getCommentForDecl(), and clang::ASTDeclWriter::VisitTemplateTypeParmDecl().

◆ print()

void TypeConstraint::print ( llvm::raw_ostream &  OS,
PrintingPolicy  Policy 
) const

Definition at line 1423 of file DeclTemplate.cpp.


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