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:
- public addCapture
- public addThisCapture
- public addVLATypeCapture
- public classof
- public getCXXThisCapture
- public getCapture
- public getCapture
- public isCXXThisCaptured
- public isCaptured
- public isVLATypeCaptured
Inherited from FunctionScopeInfo:
- public Clear
- public NeedsScopeChecking
- public addBlock
- public addByrefBlockVar
- public getFirstCoroutineStmtKeyword
- public getWeakObjectUses
- public hasInvalidCoroutineSuspends
- public hasUnrecoverableErrorOccurred
- public isCoroutine
- public isPlainFunction
- public markSafeWeakUse
- public recordUseOfWeak
- public recordUseOfWeak
- public setCoroutineSuspends
- public setFirstCoroutineStmt
- public setHasBranchIntoScope
- public setHasBranchProtectedScope
- public setHasCXXTry
- public setHasDroppedStmt
- public setHasFallthroughStmt
- public setHasIndirectGoto
- public setHasMustTail
- public setHasOMPDeclareReductionCombiner
- public setHasObjCTry
- public setHasSEHTry
- public setNeedsCoroutineSuspends
- public setUsesFPIntrin
Methods
¶BlockScopeInfo(clang::DiagnosticsEngine& Diag,
clang::Scope* BlockScope,
clang::BlockDecl* Block)
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)
static bool classof(
const clang::sema::FunctionScopeInfo* FSI)
Declared at: clang/include/clang/Sema/ScopeInfo.h:773
Parameters
- const clang::sema::FunctionScopeInfo* FSI
¶~BlockScopeInfo()
~BlockScopeInfo()
Declared at: clang/include/clang/Sema/ScopeInfo.h:771