class BlockScopeInfo

Declaration

class BlockScopeInfo : public CapturingScopeInfo { /* full declaration omitted */ };

Description

Retains information about a block that is currently being parsed.

Declared at: clang/include/clang/Sema/ScopeInfo.h:753

Inherits from: CapturingScopeInfo

Member Variables

public clang::BlockDecl* TheDecl
public clang::Scope* TheScope
TheScope - This is the scope for the block itself, which contains arguments etc.
public clang::QualType FunctionType
BlockType - The function type of the block, if one was given. Its return type may be BuiltinType::Dependent.

Inherited from CapturingScopeInfo:

public ImpCaptureStyle
public CaptureMap
public CXXThisCaptureIndex = 0
public Captures
public HasImplicitReturnType = false
public ReturnType

Inherited from FunctionScopeInfo:

public Kind
public HasBranchProtectedScope
public HasBranchIntoScope
public HasIndirectGoto
public HasMustTail
public HasDroppedStmt
public HasOMPDeclareReductionCombiner
public HasFallthroughStmt
public UsesFPIntrin
public HasPotentialAvailabilityViolations
public ObjCShouldCallSuper
public ObjCIsDesignatedInit
public ObjCWarnForNoDesignatedInitChain
public ObjCIsSecondaryInit
public ObjCWarnForNoInitDelegation
public NeedsCoroutineSuspends
public FirstCoroutineStmtKind
public FirstCoroutineStmtLoc
public FirstReturnLoc
public FirstCXXOrObjCTryLoc
public FirstTryType = Unknown
public FirstSEHTryLoc
public SwitchStack
public Returns
public CoroutinePromise = nullptr
public CoroutineParameterMoves
public CoroutineSuspends
public CompoundScopes
public Blocks
public ByrefBlockVars
public PossiblyUnreachableDiags
public ModifiedNonNullParams

Method Overview

  • public BlockScopeInfo(clang::DiagnosticsEngine & Diag, clang::Scope * BlockScope, clang::BlockDecl * Block)
  • public static bool classof(const clang::sema::FunctionScopeInfo * FSI)
  • public ~BlockScopeInfo()

Inherited from CapturingScopeInfo:

Inherited from FunctionScopeInfo:

Methods

BlockScopeInfo(clang::DiagnosticsEngine& Diag,
               clang::Scope* BlockScope,
               clang::BlockDecl* Block)

Declared at: clang/include/clang/Sema/ScopeInfo.h:765

Parameters

clang::DiagnosticsEngine& Diag
clang::Scope* BlockScope
clang::BlockDecl* Block

static bool classof(
    const clang::sema::FunctionScopeInfo* FSI)

Declared at: clang/include/clang/Sema/ScopeInfo.h:773

Parameters

const clang::sema::FunctionScopeInfo* FSI

~BlockScopeInfo()

Declared at: clang/include/clang/Sema/ScopeInfo.h:771