clang 20.0.0git
|
The result of a constraint satisfaction check, containing the necessary information to diagnose an unsatisfied constraint. More...
#include "clang/AST/ASTConcept.h"
Public Member Functions | |
const UnsatisfiedConstraintRecord * | begin () const |
const UnsatisfiedConstraintRecord * | end () const |
ASTConstraintSatisfaction (const ASTContext &C, const ConstraintSatisfaction &Satisfaction) | |
ASTConstraintSatisfaction (const ASTContext &C, const ASTConstraintSatisfaction &Satisfaction) | |
Static Public Member Functions | |
static ASTConstraintSatisfaction * | Create (const ASTContext &C, const ConstraintSatisfaction &Satisfaction) |
static ASTConstraintSatisfaction * | Rebuild (const ASTContext &C, const ASTConstraintSatisfaction &Satisfaction) |
Public Attributes | |
std::size_t | NumRecords |
bool | IsSatisfied: 1 |
bool | ContainsErrors: 1 |
The result of a constraint satisfaction check, containing the necessary information to diagnose an unsatisfied constraint.
This is safe to store in an AST node, as opposed to ConstraintSatisfaction.
Definition at line 87 of file ASTConcept.h.
ASTConstraintSatisfaction::ASTConstraintSatisfaction | ( | const ASTContext & | C, |
const ConstraintSatisfaction & | Satisfaction | ||
) |
Definition at line 37 of file ASTConcept.cpp.
References clang::C, CreateUnsatisfiedConstraintRecord(), clang::ConstraintSatisfaction::Details, and NumRecords.
ASTConstraintSatisfaction::ASTConstraintSatisfaction | ( | const ASTContext & | C, |
const ASTConstraintSatisfaction & | Satisfaction | ||
) |
Definition at line 48 of file ASTConcept.cpp.
References begin(), clang::C, CreateUnsatisfiedConstraintRecord(), and NumRecords.
|
inline |
Definition at line 94 of file ASTConcept.h.
Referenced by ASTConstraintSatisfaction().
|
static |
Definition at line 60 of file ASTConcept.cpp.
References clang::C, and clang::ConstraintSatisfaction::Details.
|
inline |
Definition at line 98 of file ASTConcept.h.
References NumRecords.
|
static |
Definition at line 69 of file ASTConcept.cpp.
References clang::C, and NumRecords.
Referenced by clang::Sema::BuildNestedRequirement().
bool clang::ASTConstraintSatisfaction::ContainsErrors |
Definition at line 92 of file ASTConcept.h.
Referenced by addConstraintSatisfaction().
bool clang::ASTConstraintSatisfaction::IsSatisfied |
Definition at line 91 of file ASTConcept.h.
Referenced by addConstraintSatisfaction(), clang::Sema::DiagnoseUnsatisfiedConstraint(), and clang::ConceptSpecializationExpr::isSatisfied().
std::size_t clang::ASTConstraintSatisfaction::NumRecords |
Definition at line 90 of file ASTConcept.h.
Referenced by addConstraintSatisfaction(), ASTConstraintSatisfaction(), end(), and Rebuild().