class RequiresExprBodyDecl

Declaration

class RequiresExprBodyDecl : public Decl, public DeclContext { /* full declaration omitted */ };

Description

Represents the body of a requires-expression.

This decl exists merely to serve as the DeclContext for the local parameters of the requires expression as well as other declarations inside it. In this example, a RequiresExpr object will be generated for the expression, and a RequiresExprBodyDecl will be created to hold the parameter t and the template argument list imposed by the compound requirement.

Declared at: clang/include/clang/AST/DeclCXX.h:1959

Inherits from: Decl, DeclContext

Member Variables

Inherited from DeclContext:

protected
protected FirstDecl = nullptr
protected LastDecl = nullptr

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • public static clang::RequiresExprBodyDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation StartLoc)
  • public static clang::RequiresExprBodyDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
  • private RequiresExprBodyDecl(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation StartLoc)
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)

Inherited from DeclContext:

Inherited from Decl:

Methods

static clang::RequiresExprBodyDecl* Create(
    clang::ASTContext& C,
    clang::DeclContext* DC,
    clang::SourceLocation StartLoc)

Declared at: clang/include/clang/AST/DeclCXX.h:1967

Parameters

clang::ASTContext& C
clang::DeclContext* DC
clang::SourceLocation StartLoc

static clang::RequiresExprBodyDecl*
CreateDeserialized(clang::ASTContext& C,
                   unsigned int ID)

Declared at: clang/include/clang/AST/DeclCXX.h:1970

Parameters

clang::ASTContext& C
unsigned int ID

RequiresExprBodyDecl(
    clang::ASTContext& C,
    clang::DeclContext* DC,
    clang::SourceLocation StartLoc)

Declared at: clang/include/clang/AST/DeclCXX.h:1960

Parameters

clang::ASTContext& C
clang::DeclContext* DC
clang::SourceLocation StartLoc

static bool classof(const clang::Decl* D)

Declared at: clang/include/clang/AST/DeclCXX.h:1973

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

Declared at: clang/include/clang/AST/DeclCXX.h:1974

Parameters

clang::Decl::Kind K