Home
last modified time | relevance | path

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

12

/freebsd-head/contrib/llvm-project/clang/include/clang/AST/
HDDeclGroup.h83 Decl *getSingleDecl() { in getSingleDecl() function
87 const Decl *getSingleDecl() const { in getSingleDecl() function
88 return const_cast<DeclGroupRef*>(this)->getSingleDecl(); in getSingleDecl()
HDStmtCXX.h388 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl()); in getPromiseDecl()
HDStmt.h1512 const Decl *getSingleDecl() const { return DG.getSingleDecl(); } in getSingleDecl() function
1513 Decl *getSingleDecl() { return DG.getSingleDecl(); } in getSingleDecl() function
/freebsd-head/contrib/llvm-project/clang/lib/AST/
HDStmtCXX.cpp68 VarDecl *RangeDecl = dyn_cast_or_null<VarDecl>(RangeStmt->getSingleDecl()); in getRangeInit()
78 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable()
HDStmt.cpp986 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1039 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1104 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1165 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
/freebsd-head/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
HDVLASizeChecker.cpp273 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in checkPreStmt()
277 else if (const auto *TND = dyn_cast<TypedefNameDecl>(DS->getSingleDecl())) in checkPreStmt()
HDUndefinedAssignmentChecker.cpp82 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in checkBind()
HDNullabilityChecker.cpp1196 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in matchValueExprForBind()
1232 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in isARCNilInitializedLocal()
HDBasicObjCFoundationChecks.cpp902 const VarDecl *ElemDecl = cast<VarDecl>(DS->getSingleDecl()); in checkElementNonNil()
/freebsd-head/contrib/llvm-project/clang/lib/ARCMigrate/
HDTransRetainReleaseDealloc.cpp230 if (DS->isSingleDecl() && DS->getSingleDecl() == RefD) { in isPlusOneAssignToVar()
370 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()); in checkForGCDOrXPC()
HDTransAutoreleasePool.cpp171 if (VarDecl *VD = dyn_cast<VarDecl>(DclS->getSingleDecl())) { in VisitCompoundStmt()
/freebsd-head/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
HDCheckerHelpers.cpp97 VD = cast<VarDecl>(PD->getSingleDecl()); in parseAssignment()
HDExprEngineObjC.cpp118 const VarDecl *elemD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
HDBugReporterVisitors.cpp969 if (const auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) in matchAssignment()
1281 if (DS->getSingleDecl() != VR->getDecl()) in isInitializationOfVar()
1352 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in showBRDiagnostics()
1581 const auto *Decl = DS->getSingleDecl(); in VisitNode()
HDExprEngineCXX.cpp137 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in computeObjectUnderConstruction()
/freebsd-head/contrib/llvm-project/clang/lib/Analysis/
HDConstructionContext.cpp111 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType() in createBoundTemporaryFromLayers()
HDLiveVariables.cpp255 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit()
423 VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
HDUninitializedValues.cpp685 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
HDCFG.cpp2942 if (const auto *TND = dyn_cast<TypedefNameDecl>(DS->getSingleDecl())) { in VisitDeclSubExpr()
2960 VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in VisitDeclSubExpr()
5439 DeclMap[cast<DeclStmt>(stmt)->getSingleDecl()] = P; in StmtPrinterHelper()
5544 VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitDeclStmt()
HDPathDiagnostic.cpp790 DS->getSingleDecl()->getLocation()); in genRange()
HDConsumed.cpp844 if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl())) in VisitDeclStmt()
/freebsd-head/contrib/llvm-project/clang/lib/CodeGen/
HDCGCoroutine.cpp529 VarDecl const*VD = static_cast<VarDecl const*>(PM->getSingleDecl()); in addCopy()
701 auto *GroVarDecl = cast<VarDecl>(GroDeclStmt->getSingleDecl()); in EmitGroAlloca()
/freebsd-head/contrib/llvm-project/clang/include/clang/Analysis/
HDConstructionContext.h330 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in getArrayInitLoop()
/freebsd-head/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
HDTransfer.cpp227 const auto &D = *cast<VarDecl>(S->getSingleDecl()); in VisitDeclStmt()
/freebsd-head/contrib/llvm-project/clang/lib/Sema/
HDSemaStmt.cpp97 Decl *decl = DG.getSingleDecl(); in ActOnForEachDeclStmt()
2361 Decl *LoopVar = DS->getSingleDecl(); in ActOnCXXForRangeStmt()
2610 VarDecl *RangeVar = cast<VarDecl>(RangeDS->getSingleDecl()); in BuildCXXForRangeStmt()
2614 VarDecl *LoopVar = cast<VarDecl>(LoopVarDS->getSingleDecl()); in BuildCXXForRangeStmt()

12