Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclGroup.h84 Decl *getSingleDecl() { in getSingleDecl() function
88 const Decl *getSingleDecl() const { in getSingleDecl() function
89 return const_cast<DeclGroupRef*>(this)->getSingleDecl(); in getSingleDecl()
H A DStmtCXX.h371 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl()); in getPromiseDecl()
H A DStmt.h1158 const Decl *getSingleDecl() const { return DG.getSingleDecl(); } in getSingleDecl() function
1159 Decl *getSingleDecl() { return DG.getSingleDecl(); } in getSingleDecl() function
/freebsd-12.1/contrib/llvm/tools/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.cpp868 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
907 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
969 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1025 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp95 VD = dyn_cast_or_null<VarDecl>(PD->getSingleDecl()); in parseAssignment()
H A DExprEngineObjC.cpp122 const VarDecl *elemD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DBugReporterVisitors.cpp731 if (const auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) in matchAssignment()
1043 if (DS->getSingleDecl() != VR->getDecl()) in isInitializationOfVar()
1087 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in showBRDiagnostics()
H A DExprEngineCXX.cpp128 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in prepareForObjectConstruction()
H A DPathDiagnostic.cpp916 DS->getSingleDecl()->getLocation()); in genRange()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DUndefinedAssignmentChecker.cpp89 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in checkBind()
H A DVLASizeChecker.cpp85 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in checkPreStmt()
H A DNullabilityChecker.cpp1000 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in matchValueExprForBind()
1036 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in isARCNilInitializedLocal()
H A DBasicObjCFoundationChecks.cpp896 const VarDecl *ElemDecl = cast<VarDecl>(DS->getSingleDecl()); in checkElementNonNil()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp231 if (DS->isSingleDecl() && DS->getSingleDecl() == RefD) { in isPlusOneAssignToVar()
371 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()); in checkForGCDOrXPC()
H A DTransAutoreleasePool.cpp172 if (VarDecl *VD = dyn_cast<VarDecl>(DclS->getSingleDecl())) { in VisitCompoundStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DConstructionContext.cpp112 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType() in createBoundTemporaryFromLayers()
H A DLiveVariables.cpp298 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit()
442 VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DUninitializedValues.cpp705 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DConsumed.cpp845 if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl())) in VisitDeclStmt()
H A DCFG.cpp2665 VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in VisitDeclSubExpr()
4811 DeclMap[cast<DeclStmt>(stmt)->getSingleDecl()] = P; in StmtPrinterHelper()
4916 VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitDeclStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGCoroutine.cpp357 VarDecl const*VD = static_cast<VarDecl const*>(PM->getSingleDecl()); in addCopy()
496 auto *GroVarDecl = cast<VarDecl>(GroDeclStmt->getSingleDecl()); in EmitGroAlloca()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaStmt.cpp91 Decl *decl = DG.getSingleDecl(); in ActOnForEachDeclStmt()
1902 VarDecl *D = dyn_cast<VarDecl>(DS->getSingleDecl()); in ActOnObjCForCollectionStmt()
2101 Decl *LoopVar = DS->getSingleDecl(); in ActOnCXXForRangeStmt()
2357 VarDecl *RangeVar = cast<VarDecl>(RangeDS->getSingleDecl()); in BuildCXXForRangeStmt()
2361 VarDecl *LoopVar = cast<VarDecl>(LoopVarDS->getSingleDecl()); in BuildCXXForRangeStmt()
H A DSemaCoroutine.cpp556 cast<VarDecl>(cast<DeclStmt>(Move->second)->getSingleDecl()); in buildCoroutinePromise()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Parse/
H A DParseTemplate.cpp191 return usingDeclPtr.get().getSingleDecl(); in ParseSingleDeclarationAfterTemplate()

12