clang  12.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::ASTConstraintSatisfaction Struct Referencefinal

The result of a constraint satisfaction check, containing the necessary information to diagnose an unsatisfied constraint. More...

#include "clang/AST/ASTConcept.h"

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

Public Member Functions

const UnsatisfiedConstraintRecordbegin () const
 
const UnsatisfiedConstraintRecordend () const
 
 ASTConstraintSatisfaction (const ASTContext &C, const ConstraintSatisfaction &Satisfaction)
 

Static Public Member Functions

static ASTConstraintSatisfactionCreate (const ASTContext &C, const ConstraintSatisfaction &Satisfaction)
 

Public Attributes

std::size_t NumRecords
 
bool IsSatisfied: 1
 

Detailed Description

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 77 of file ASTConcept.h.

Constructor & Destructor Documentation

◆ ASTConstraintSatisfaction()

ASTConstraintSatisfaction::ASTConstraintSatisfaction ( const ASTContext C,
const ConstraintSatisfaction Satisfaction 
)

Definition at line 23 of file ASTConcept.cpp.

References clang::C, clang::ConstraintSatisfaction::Details, IsSatisfied, memcpy(), and NumRecords.

Referenced by Create().

Member Function Documentation

◆ begin()

const UnsatisfiedConstraintRecord* clang::ASTConstraintSatisfaction::begin ( ) const
inline

Definition at line 83 of file ASTConcept.h.

◆ Create()

ASTConstraintSatisfaction * ASTConstraintSatisfaction::Create ( const ASTContext C,
const ConstraintSatisfaction Satisfaction 
)
static

◆ end()

const UnsatisfiedConstraintRecord* clang::ASTConstraintSatisfaction::end ( ) const
inline

Definition at line 87 of file ASTConcept.h.

References clang::C, and clang::Create().

Member Data Documentation

◆ IsSatisfied

bool clang::ASTConstraintSatisfaction::IsSatisfied

◆ NumRecords

std::size_t clang::ASTConstraintSatisfaction::NumRecords

Definition at line 80 of file ASTConcept.h.

Referenced by addConstraintSatisfaction(), and ASTConstraintSatisfaction().


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