Home
last modified time | relevance | path

Searched refs:getSingleDecl (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclGroup.h79 Decl *getSingleDecl() { in getSingleDecl() function
83 const Decl *getSingleDecl() const { in getSingleDecl() function
84 return const_cast<DeclGroupRef*>(this)->getSingleDecl(); in getSingleDecl()
H A DStmtCXX.h388 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl()); in getPromiseDecl()
H A DStmt.h1637 const Decl *getSingleDecl() const { return DG.getSingleDecl(); }
1638 Decl *getSingleDecl() { return DG.getSingleDecl(); }
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtCXX.cpp68 VarDecl *RangeDecl = dyn_cast_or_null<VarDecl>(RangeStmt->getSingleDecl()); in getRangeInit()
78 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable()
H A DStmt.cpp1030 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1083 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1148 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1209 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp270 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in checkPreStmt()
274 else if (const auto *TND = dyn_cast<TypedefNameDecl>(DS->getSingleDecl())) in checkPreStmt()
H A DUndefinedAssignmentChecker.cpp81 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in checkBind()
H A DNullabilityChecker.cpp1196 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in matchValueExprForBind()
1232 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in isARCNilInitializedLocal()
H A DBasicObjCFoundationChecks.cpp901 const VarDecl *ElemDecl = cast<VarDecl>(DS->getSingleDecl()); in checkElementNonNil()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp97 VD = cast<VarDecl>(PD->getSingleDecl()); in parseAssignment()
H A DExprEngineObjC.cpp119 const VarDecl *elemD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DBugReporterVisitors.cpp876 if (const auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) in matchAssignment()
1188 if (DS->getSingleDecl() != VR->getDecl()) in isInitializationOfVar()
1287 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in showBRDiagnostics()
1533 const auto *Decl = DS->getSingleDecl(); in VisitNode()
H A DExprEngineCXX.cpp147 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in computeObjectUnderConstruction()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenACC.cpp1158 cast<ValueDecl>(UninstRangeStmt->getSingleDecl()); in checkRangeFor()
1168 const ValueDecl *InitVar = cast<ValueDecl>(RangeStmt->getSingleDecl()); in checkRangeFor()
1225 InitVar = dyn_cast<ValueDecl>(DS->getSingleDecl()); in checkForInit()
1525 DS->isSingleDecl() ? DS->getSingleDecl() : nullptr)) in checkFor()
1529 DS->isSingleDecl() ? DS->getSingleDecl() : nullptr)) in checkFor()
2435 NextLineDecl = NextDecl.get().getSingleDecl(); in ActOnEndRoutineDeclDirective()
2458 NextLineDecl = DS->getSingleDecl(); in ActOnEndRoutineStmtDirective()
H A DSemaStmt.cpp93 Decl *decl = DG.getSingleDecl(); in ActOnForEachDeclStmt()
2468 Decl *LoopVar = DS->getSingleDecl(); in ActOnCXXForRangeStmt()
2717 VarDecl *RangeVar = cast<VarDecl>(RangeDS->getSingleDecl()); in BuildCXXForRangeStmt()
2721 VarDecl *LoopVar = cast<VarDecl>(LoopVarDS->getSingleDecl()); in BuildCXXForRangeStmt()
H A DSemaTemplateInstantiateDecl.cpp1391 return Res.getSingleDecl(); in VisitOpenACCDeclareDecl()
1420 return Res.getSingleDecl(); in VisitOpenACCRoutineDecl()
4185 return Res.get().getSingleDecl(); in VisitOMPAllocateDecl()
4226 auto *NewDRD = cast<OMPDeclareReductionDecl>(DRD.get().getSingleDecl()); in VisitOMPDeclareReductionDecl()
4362 Decl *NewDMD = DG.get().getSingleDecl(); in VisitOMPDeclareMapperDecl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DConstructionContext.cpp111 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType() in createBoundTemporaryFromLayers()
H A DLiveVariables.cpp272 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit()
460 VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DUninitializedValues.cpp691 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DCFG.cpp3051 if (const auto *TND = dyn_cast<TypedefNameDecl>(DS->getSingleDecl())) { in VisitDeclSubExpr()
3069 VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in VisitDeclSubExpr()
5548 DeclMap[cast<DeclStmt>(stmt)->getSingleDecl()] = P; in StmtPrinterHelper()
5653 VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitDeclStmt()
H A DPathDiagnostic.cpp785 DS->getSingleDecl()->getLocation()); in genRange()
H A DConsumed.cpp837 if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl())) in VisitDeclStmt()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCoroutine.cpp530 VarDecl const*VD = static_cast<VarDecl const*>(PM->getSingleDecl()); in addCopy()
702 auto *GroVarDecl = cast<VarDecl>(GroDeclStmt->getSingleDecl()); in EmitGroAlloca()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DConstructionContext.h330 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in getArrayInitLoop()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp232 const auto &D = *cast<VarDecl>(S->getSingleDecl()); in VisitDeclStmt()

12