|
clang 24.0.0git
|
Retains information about a function, method, or block that is currently being parsed. More...
#include "clang/Sema/ScopeInfo.h"
Classes | |
| struct | SwitchInfo |
| A SwitchStmt, along with a flag indicating if its list of case statements is incomplete (because we dropped an invalid one while parsing), as well as the DeclContext containing the statement. More... | |
| class | WeakObjectProfileTy |
| Represents a simple identification of a weak object. More... | |
| class | WeakUseTy |
| Represents a single use of a weak object. More... | |
Public Types | |
| enum | { TryLocIsCXX , TryLocIsObjC , Unknown } |
| using | WeakUseVector = SmallVector<WeakUseTy, 4> |
| Used to collect uses of a particular weak object in a function body. | |
| using | WeakObjectUseMap |
| Used to collect all uses of weak objects in a function body. | |
Public Attributes | |
| ScopeKind | Kind: 3 |
| What kind of scope we are describing. | |
| bool | HasBranchProtectedScope: 1 |
| Whether this function contains a VLA, @try, try, C++ initializer, or anything else that can't be jumped past. | |
| bool | HasBranchIntoScope: 1 |
| Whether this function contains any switches or direct gotos. | |
| bool | HasIndirectGoto: 1 |
| Whether this function contains any indirect gotos. | |
| bool | HasMustTail: 1 |
Whether this function contains any statement marked with [[clang::musttail]]. | |
| bool | HasDroppedStmt: 1 |
| Whether a statement was dropped because it was invalid. | |
| bool | HasOMPDeclareReductionCombiner: 1 |
| True if current scope is for OpenMP declare reduction combiner. | |
| bool | HasFallthroughStmt: 1 |
| Whether there is a fallthrough statement in this function. | |
| bool | UsesFPIntrin: 1 |
| Whether this function uses constrained floating point intrinsics. | |
| bool | HasPotentialAvailabilityViolations: 1 |
| Whether we make reference to a declaration that could be unavailable. | |
| bool | ObjCShouldCallSuper: 1 |
A flag that is set when parsing a method that must call super's implementation, such as -dealloc, -finalize, or any method marked with __attribute__((objc_requires_super)). | |
| bool | ObjCIsDesignatedInit: 1 |
| True when this is a method marked as a designated initializer. | |
| bool | ObjCWarnForNoDesignatedInitChain: 1 |
| This starts true for a method marked as designated initializer and will be set to false if there is an invocation to a designated initializer of the super class. | |
| bool | ObjCIsSecondaryInit: 1 |
| True when this is an initializer method not marked as a designated initializer within a class that has at least one initializer marked as a designated initializer. | |
| bool | ObjCWarnForNoInitDelegation: 1 |
| This starts true for a secondary initializer method and will be set to false if there is an invocation of an initializer on 'self'. | |
| bool | NeedsCoroutineSuspends: 1 |
| True only when this function has not already built, or attempted to build, the initial and final coroutine suspend points. | |
| unsigned char | FirstCoroutineStmtKind: 2 |
| An enumeration representing the kind of the first coroutine statement in the function. | |
| bool | FoundImmediateEscalatingExpression: 1 |
| Whether we found an immediate-escalating expression. | |
| SourceLocation | FirstCoroutineStmtLoc |
| First coroutine statement in the current function. | |
| SourceLocation | FirstReturnLoc |
| First 'return' statement in the current function. | |
| SourceLocation | FirstCXXOrObjCTryLoc |
| First C++ 'try' or ObjC @try statement in the current function. | |
| enum clang::sema::FunctionScopeInfo:: { ... } | FirstTryType = Unknown |
| SourceLocation | FirstSEHTryLoc |
| First SEH '__try' statement in the current function. | |
| SourceLocation | FirstVLALoc |
| First use of a VLA within the current function. | |
| SmallVector< SwitchInfo, 8 > | SwitchStack |
| SwitchStack - This is the current set of active switch statements in the block. | |
| SmallVector< ReturnStmt *, 4 > | Returns |
| The list of return statements that occur within the function or block, if there is any chance of applying the named return value optimization, or if we need to infer a return type. | |
| VarDecl * | CoroutinePromise = nullptr |
| The promise object for this coroutine, if any. | |
| llvm::SmallMapVector< ParmVarDecl *, Stmt *, 4 > | CoroutineParameterMoves |
| A mapping between the coroutine function parameters that were moved to the coroutine frame, and their move statements. | |
| std::pair< Stmt *, Stmt * > | CoroutineSuspends |
| The initial and final coroutine suspend points. | |
| SmallVector< CompoundScopeInfo, 4 > | CompoundScopes |
| The stack of currently active compound statement scopes in the function. | |
| llvm::SmallPtrSet< const BlockDecl *, 1 > | Blocks |
| The set of blocks that are introduced in this function. | |
| llvm::TinyPtrVector< VarDecl * > | ByrefBlockVars |
| The set of __block variables that are introduced in this function. | |
| SmallVector< PossiblyUnreachableDiag, 4 > | PossiblyUnreachableDiags |
| A list of PartialDiagnostics created but delayed within the current function scope. | |
| llvm::SmallPtrSet< const ParmVarDecl *, 8 > | ModifiedNonNullParams |
| A list of parameters which have the nonnull attribute and are modified in the function. | |
| llvm::SmallVector< AddrLabelExpr *, 4 > | AddrLabels |
| The set of GNU address of label extension "&&label". | |
| std::optional< SemaSYCL::SYCLKernelCallStmtASTFragments > | SYCLKernelASTFragments |
| Implicit calls to the SYCL runtime library are synthesized for functions declared with the sycl_kernel_entry_point attribute. | |
Protected Types | |
| enum | ScopeKind : uint8_t { SK_Function , SK_Block , SK_Lambda , SK_CapturedRegion } |
Protected Member Functions | |
| FunctionScopeInfo (const FunctionScopeInfo &)=default | |
Retains information about a function, method, or block that is currently being parsed.
Definition at line 105 of file ScopeInfo.h.
Used to collect all uses of weak objects in a function body.
Part of the implementation of -Wrepeated-use-of-weak.
Definition at line 386 of file ScopeInfo.h.
Used to collect uses of a particular weak object in a function body.
Part of the implementation of -Wrepeated-use-of-weak.
Definition at line 381 of file ScopeInfo.h.
| anonymous enum |
| Enumerator | |
|---|---|
| TryLocIsCXX | |
| TryLocIsObjC | |
| Unknown | |
Definition at line 191 of file ScopeInfo.h.
|
protected |
| Enumerator | |
|---|---|
| SK_Function | |
| SK_Block | |
| SK_Lambda | |
| SK_CapturedRegion | |
Definition at line 107 of file ScopeInfo.h.
|
protecteddefault |
References FunctionScopeInfo().
Referenced by clang::sema::CapturingScopeInfo::CapturingScopeInfo(), clang::sema::CapturingScopeInfo::classof(), and FunctionScopeInfo().
|
inline |
Definition at line 400 of file ScopeInfo.h.
References Diag(), false, FoundImmediateEscalatingExpression, HasBranchIntoScope, HasBranchProtectedScope, HasDroppedStmt, HasFallthroughStmt, HasIndirectGoto, HasMustTail, HasOMPDeclareReductionCombiner, HasPotentialAvailabilityViolations, Kind, NeedsCoroutineSuspends, ObjCIsDesignatedInit, ObjCIsSecondaryInit, ObjCShouldCallSuper, ObjCWarnForNoDesignatedInitChain, ObjCWarnForNoInitDelegation, SK_Function, true, and UsesFPIntrin.
|
virtual |
Definition at line 259 of file ScopeInfo.cpp.
|
inline |
Definition at line 501 of file ScopeInfo.h.
References Blocks.
Referenced by clang::Sema::ActOnBlockStmtExpr().
|
inline |
Definition at line 506 of file ScopeInfo.h.
References ByrefBlockVars.
Referenced by clang::Sema::CheckCompleteVariableDeclaration().
| void FunctionScopeInfo::Clear | ( | ) |
Clear out the information in this function scope, making it suitable for reuse.
Definition at line 24 of file ScopeInfo.cpp.
References AddrLabels, Blocks, ByrefBlockVars, CoroutineParameterMoves, CoroutinePromise, CoroutineSuspends, FirstCoroutineStmtLoc, FirstCXXOrObjCTryLoc, FirstReturnLoc, FirstSEHTryLoc, FirstVLALoc, FoundImmediateEscalatingExpression, HasBranchIntoScope, HasBranchProtectedScope, HasDroppedStmt, HasFallthroughStmt, HasIndirectGoto, HasOMPDeclareReductionCombiner, HasPotentialAvailabilityViolations, ModifiedNonNullParams, NeedsCoroutineSuspends, ObjCIsDesignatedInit, ObjCIsSecondaryInit, ObjCShouldCallSuper, ObjCWarnForNoDesignatedInitChain, ObjCWarnForNoInitDelegation, PossiblyUnreachableDiags, Returns, SwitchStack, and UsesFPIntrin.
|
inline |
Definition at line 526 of file ScopeInfo.h.
References clang::sema::CoAwait, clang::sema::CoReturn, clang::sema::CoYield, FirstCoroutineStmtKind, and FirstCoroutineStmtLoc.
Referenced by clang::Sema::ActOnReturnStmt(), and checkReturnStmtInCoroutine().
|
inline |
Definition at line 439 of file ScopeInfo.h.
Referenced by diagnoseRepeatedUseOfWeak().
|
inline |
Definition at line 548 of file ScopeInfo.h.
References CoroutineSuspends, and NeedsCoroutineSuspends.
|
inline |
Determine whether an unrecoverable error has occurred within this function.
Note that this may return false even if the function body is invalid, because the errors may be suppressed if they're caused by prior invalid declarations.
FIXME: Migrate the caller of this to use containsErrors() instead once it's ready.
Definition at line 420 of file ScopeInfo.h.
|
inline |
Definition at line 510 of file ScopeInfo.h.
References FirstCoroutineStmtLoc.
Referenced by clang::Sema::ActOnFinishFunctionBody(), clang::Sema::ActOnReturnStmt(), and clang::sema::AnalysisBasedWarnings::IssueWarnings().
|
inline |
Definition at line 564 of file ScopeInfo.h.
References Kind, and SK_Function.
| void FunctionScopeInfo::markSafeWeakUse | ( | const Expr * | E | ) |
Record that a given expression is a "safe" access of a weak object (e.g.
assigning it to a strong variable.)
Part of the implementation of -Wrepeated-use-of-weak.
Definition at line 160 of file ScopeInfo.cpp.
References clang::ObjCPropertyDecl::findPropertyDecl(), clang::PseudoObjectExpr::getSyntacticForm(), clang::Expr::IgnoreParenCasts(), clang::isa(), and markSafeWeakUse().
Referenced by clang::Sema::CheckAssignmentOperands(), clang::Sema::checkUnsafeExprAssigns(), and markSafeWeakUse().
|
inline |
Definition at line 495 of file ScopeInfo.h.
References HasBranchIntoScope, HasBranchProtectedScope, HasDroppedStmt, HasIndirectGoto, and HasMustTail.
Referenced by clang::Sema::ActOnFinishFunctionBody().
|
inline |
Record that a weak object was accessed.
Part of the implementation of -Wrepeated-use-of-weak.
Definition at line 1100 of file ScopeInfo.h.
Referenced by clang::Sema::BuildDeclRefExpr(), and LookupMemberExpr().
| void FunctionScopeInfo::recordUseOfWeak | ( | const ObjCMessageExpr * | Msg, |
| const ObjCPropertyDecl * | Prop ) |
Definition at line 152 of file ScopeInfo.cpp.
References clang::ObjCMessageExpr::getInstanceReceiver(), and clang::ObjCMessageExpr::getNumArgs().
Definition at line 552 of file ScopeInfo.h.
References CoroutineSuspends, and NeedsCoroutineSuspends.
|
inline |
Definition at line 512 of file ScopeInfo.h.
References clang::sema::CoAwait, clang::sema::CoReturn, clang::sema::CoYield, FirstCoroutineStmtKind, FirstCoroutineStmtLoc, and clang::Keyword.
|
inline |
Definition at line 443 of file ScopeInfo.h.
References HasBranchIntoScope.
|
inline |
Definition at line 447 of file ScopeInfo.h.
References HasBranchProtectedScope.
Referenced by clang::Sema::BuildCompoundLiteralExpr(), setHasCXXTry(), setHasObjCTry(), and setHasSEHTry().
|
inline |
Definition at line 473 of file ScopeInfo.h.
References FirstCXXOrObjCTryLoc, FirstTryType, setHasBranchProtectedScope(), and TryLocIsCXX.
Referenced by clang::Sema::ActOnCXXTryBlock().
|
inline |
Definition at line 457 of file ScopeInfo.h.
References HasDroppedStmt.
|
inline |
Definition at line 465 of file ScopeInfo.h.
References HasFallthroughStmt.
|
inline |
Definition at line 451 of file ScopeInfo.h.
References HasIndirectGoto.
|
inline |
Definition at line 455 of file ScopeInfo.h.
References HasMustTail.
|
inline |
Definition at line 479 of file ScopeInfo.h.
References FirstCXXOrObjCTryLoc, FirstTryType, setHasBranchProtectedScope(), and TryLocIsObjC.
Referenced by clang::SemaObjC::ActOnObjCAtTryStmt().
|
inline |
Definition at line 461 of file ScopeInfo.h.
References HasOMPDeclareReductionCombiner.
|
inline |
Definition at line 485 of file ScopeInfo.h.
References FirstSEHTryLoc, and setHasBranchProtectedScope().
Referenced by clang::Sema::ActOnSEHTryBlock().
|
inline |
Definition at line 490 of file ScopeInfo.h.
References FirstVLALoc.
Definition at line 542 of file ScopeInfo.h.
References CoroutineSuspends, and NeedsCoroutineSuspends.
|
inline |
Definition at line 469 of file ScopeInfo.h.
References UsesFPIntrin.
Referenced by clang::Sema::ActOnAfterCompoundStatementLeadingPragmas().
| llvm::SmallVector<AddrLabelExpr *, 4> clang::sema::FunctionScopeInfo::AddrLabels |
The set of GNU address of label extension "&&label".
Definition at line 252 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnAddrLabel(), and Clear().
| llvm::SmallPtrSet<const BlockDecl *, 1> clang::sema::FunctionScopeInfo::Blocks |
The set of blocks that are introduced in this function.
Definition at line 237 of file ScopeInfo.h.
Referenced by addBlock(), Clear(), and markEscapingByrefs().
| llvm::TinyPtrVector<VarDecl *> clang::sema::FunctionScopeInfo::ByrefBlockVars |
The set of __block variables that are introduced in this function.
Definition at line 240 of file ScopeInfo.h.
Referenced by addByrefBlockVar(), Clear(), and markEscapingByrefs().
| SmallVector<CompoundScopeInfo, 4> clang::sema::FunctionScopeInfo::CompoundScopes |
The stack of currently active compound statement scopes in the function.
Definition at line 234 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnCompoundStmt(), clang::SemaOpenMP::ActOnOpenMPDeclareMapperDirective(), clang::SemaOpenMP::ActOnOpenMPDeclareReductionDirectiveStart(), clang::Sema::getCurCompoundScope(), and clang::Sema::PopCompoundScope().
| llvm::SmallMapVector<ParmVarDecl *, Stmt *, 4> clang::sema::FunctionScopeInfo::CoroutineParameterMoves |
A mapping between the coroutine function parameters that were moved to the coroutine frame, and their move statements.
Definition at line 227 of file ScopeInfo.h.
Referenced by Clear().
The promise object for this coroutine, if any.
Definition at line 223 of file ScopeInfo.h.
Referenced by Clear().
The initial and final coroutine suspend points.
Definition at line 230 of file ScopeInfo.h.
Referenced by Clear(), hasInvalidCoroutineSuspends(), setCoroutineSuspends(), and setNeedsCoroutineSuspends().
| unsigned char clang::sema::FunctionScopeInfo::FirstCoroutineStmtKind |
An enumeration representing the kind of the first coroutine statement in the function.
One of co_return, co_await, or co_yield.
Definition at line 177 of file ScopeInfo.h.
Referenced by getFirstCoroutineStmtKeyword(), and setFirstCoroutineStmt().
| SourceLocation clang::sema::FunctionScopeInfo::FirstCoroutineStmtLoc |
First coroutine statement in the current function.
(ex co_return, co_await, co_yield)
Definition at line 184 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnReturnStmt(), checkReturnStmtInCoroutine(), Clear(), getFirstCoroutineStmtKeyword(), isCoroutine(), and setFirstCoroutineStmt().
| SourceLocation clang::sema::FunctionScopeInfo::FirstCXXOrObjCTryLoc |
First C++ 'try' or ObjC @try statement in the current function.
Definition at line 190 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnSEHTryBlock(), Clear(), setHasCXXTry(), and setHasObjCTry().
| SourceLocation clang::sema::FunctionScopeInfo::FirstReturnLoc |
First 'return' statement in the current function.
Definition at line 187 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnReturnStmt(), checkReturnStmtInCoroutine(), and Clear().
| SourceLocation clang::sema::FunctionScopeInfo::FirstSEHTryLoc |
First SEH '__try' statement in the current function.
Definition at line 194 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnCXXTryBlock(), clang::SemaObjC::ActOnObjCAtTryStmt(), Clear(), and setHasSEHTry().
| enum { ... } clang::sema::FunctionScopeInfo::FirstTryType |
Referenced by clang::Sema::ActOnSEHTryBlock(), setHasCXXTry(), and setHasObjCTry().
| SourceLocation clang::sema::FunctionScopeInfo::FirstVLALoc |
First use of a VLA within the current function.
Definition at line 197 of file ScopeInfo.h.
Referenced by Clear(), and setHasVLA().
| bool clang::sema::FunctionScopeInfo::FoundImmediateEscalatingExpression |
Whether we found an immediate-escalating expression.
Definition at line 180 of file ScopeInfo.h.
Referenced by clang::Sema::CheckImmediateEscalatingFunctionDefinition(), Clear(), and FunctionScopeInfo().
| bool clang::sema::FunctionScopeInfo::HasBranchIntoScope |
Whether this function contains any switches or direct gotos.
Definition at line 123 of file ScopeInfo.h.
Referenced by Clear(), FunctionScopeInfo(), NeedsScopeChecking(), and setHasBranchIntoScope().
| bool clang::sema::FunctionScopeInfo::HasBranchProtectedScope |
Whether this function contains a VLA, @try, try, C++ initializer, or anything else that can't be jumped past.
Definition at line 120 of file ScopeInfo.h.
Referenced by Clear(), FunctionScopeInfo(), NeedsScopeChecking(), and setHasBranchProtectedScope().
| bool clang::sema::FunctionScopeInfo::HasDroppedStmt |
Whether a statement was dropped because it was invalid.
Definition at line 133 of file ScopeInfo.h.
Referenced by Clear(), FunctionScopeInfo(), NeedsScopeChecking(), and setHasDroppedStmt().
| bool clang::sema::FunctionScopeInfo::HasFallthroughStmt |
Whether there is a fallthrough statement in this function.
Definition at line 139 of file ScopeInfo.h.
Referenced by Clear(), FunctionScopeInfo(), clang::sema::AnalysisBasedWarnings::IssueWarnings(), and setHasFallthroughStmt().
| bool clang::sema::FunctionScopeInfo::HasIndirectGoto |
Whether this function contains any indirect gotos.
Definition at line 126 of file ScopeInfo.h.
Referenced by Clear(), FunctionScopeInfo(), NeedsScopeChecking(), and setHasIndirectGoto().
| bool clang::sema::FunctionScopeInfo::HasMustTail |
Whether this function contains any statement marked with [[clang::musttail]].
Definition at line 130 of file ScopeInfo.h.
Referenced by FunctionScopeInfo(), NeedsScopeChecking(), and setHasMustTail().
| bool clang::sema::FunctionScopeInfo::HasOMPDeclareReductionCombiner |
True if current scope is for OpenMP declare reduction combiner.
Definition at line 136 of file ScopeInfo.h.
Referenced by Clear(), clang::Sema::DiagnoseUseOfDecl(), FunctionScopeInfo(), and setHasOMPDeclareReductionCombiner().
| bool clang::sema::FunctionScopeInfo::HasPotentialAvailabilityViolations |
Whether we make reference to a declaration that could be unavailable.
Definition at line 146 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnFinishFunctionBody(), Clear(), and FunctionScopeInfo().
| ScopeKind clang::sema::FunctionScopeInfo::Kind |
What kind of scope we are describing.
Definition at line 116 of file ScopeInfo.h.
Referenced by clang::sema::BlockScopeInfo::BlockScopeInfo(), clang::sema::CapturedRegionScopeInfo::CapturedRegionScopeInfo(), clang::sema::BlockScopeInfo::classof(), clang::sema::CapturedRegionScopeInfo::classof(), clang::sema::CapturingScopeInfo::classof(), clang::sema::LambdaScopeInfo::classof(), FunctionScopeInfo(), isPlainFunction(), and clang::sema::LambdaScopeInfo::LambdaScopeInfo().
| llvm::SmallPtrSet<const ParmVarDecl *, 8> clang::sema::FunctionScopeInfo::ModifiedNonNullParams |
A list of parameters which have the nonnull attribute and are modified in the function.
Definition at line 249 of file ScopeInfo.h.
Referenced by Clear().
| bool clang::sema::FunctionScopeInfo::NeedsCoroutineSuspends |
True only when this function has not already built, or attempted to build, the initial and final coroutine suspend points.
Definition at line 172 of file ScopeInfo.h.
Referenced by Clear(), FunctionScopeInfo(), hasInvalidCoroutineSuspends(), setCoroutineSuspends(), and setNeedsCoroutineSuspends().
| bool clang::sema::FunctionScopeInfo::ObjCIsDesignatedInit |
True when this is a method marked as a designated initializer.
Definition at line 154 of file ScopeInfo.h.
Referenced by clang::SemaObjC::BuildInstanceMessage(), Clear(), and FunctionScopeInfo().
| bool clang::sema::FunctionScopeInfo::ObjCIsSecondaryInit |
True when this is an initializer method not marked as a designated initializer within a class that has at least one initializer marked as a designated initializer.
Definition at line 164 of file ScopeInfo.h.
Referenced by clang::SemaObjC::BuildInstanceMessage(), Clear(), and FunctionScopeInfo().
| bool clang::sema::FunctionScopeInfo::ObjCShouldCallSuper |
A flag that is set when parsing a method that must call super's implementation, such as -dealloc, -finalize, or any method marked with __attribute__((objc_requires_super)).
Definition at line 151 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnFinishFunctionBody(), Clear(), and FunctionScopeInfo().
| bool clang::sema::FunctionScopeInfo::ObjCWarnForNoDesignatedInitChain |
This starts true for a method marked as designated initializer and will be set to false if there is an invocation to a designated initializer of the super class.
Definition at line 159 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnFinishFunctionBody(), clang::SemaObjC::BuildInstanceMessage(), Clear(), and FunctionScopeInfo().
| bool clang::sema::FunctionScopeInfo::ObjCWarnForNoInitDelegation |
This starts true for a secondary initializer method and will be set to false if there is an invocation of an initializer on 'self'.
Definition at line 168 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnFinishFunctionBody(), clang::SemaObjC::BuildInstanceMessage(), Clear(), and FunctionScopeInfo().
| SmallVector<PossiblyUnreachableDiag, 4> clang::sema::FunctionScopeInfo::PossiblyUnreachableDiags |
A list of PartialDiagnostics created but delayed within the current function scope.
These diagnostics are vetted for reachability prior to being emitted.
Definition at line 245 of file ScopeInfo.h.
Referenced by Clear(), flushDiagnostics(), and clang::sema::AnalysisBasedWarnings::IssueWarnings().
| SmallVector<ReturnStmt*, 4> clang::sema::FunctionScopeInfo::Returns |
The list of return statements that occur within the function or block, if there is any chance of applying the named return value optimization, or if we need to infer a return type.
Definition at line 220 of file ScopeInfo.h.
Referenced by Clear(), and clang::Sema::deduceClosureReturnType().
| SmallVector<SwitchInfo, 8> clang::sema::FunctionScopeInfo::SwitchStack |
SwitchStack - This is the current set of active switch statements in the block.
Definition at line 215 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnCaseExpr(), clang::Sema::ActOnCaseStmt(), clang::Sema::ActOnDefaultStmt(), clang::Sema::ActOnFinishSwitchStmt(), clang::Sema::ActOnStartOfSwitchStmt(), AddKeywordsToConsumer(), AddOrdinaryNameResults(), Clear(), DiagnoseSwitchCaseInExpansionStmt(), and clang::isInSwitchCaseLabel().
| std::optional<SemaSYCL::SYCLKernelCallStmtASTFragments> clang::sema::FunctionScopeInfo::SYCLKernelASTFragments |
Implicit calls to the SYCL runtime library are synthesized for functions declared with the sycl_kernel_entry_point attribute.
These calls require types and lookup results for SYCL runtime library declared functions that are produced at the start of a function definition. SYCLKernelASTFragments caches these artifacts for later use to construct a SYCLKernelCallStmt or UnresolvedSYCLKernelCallStmt. If production of these artifacts fails, a diagnostic will have been issued and a disengaged optional stored.
Definition at line 262 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnStartOfFunctionDef().
| bool clang::sema::FunctionScopeInfo::UsesFPIntrin |
Whether this function uses constrained floating point intrinsics.
Definition at line 142 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnFinishFunctionBody(), Clear(), FunctionScopeInfo(), and setUsesFPIntrin().