Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DDeclGroup.h83 Decl *getSingleDecl() { in getSingleDecl() function
87 const Decl *getSingleDecl() const { in getSingleDecl() function
88 return const_cast<DeclGroupRef*>(this)->getSingleDecl(); in getSingleDecl()
H A DStmtCXX.h386 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl()); in getPromiseDecl()
H A DStmt.h1306 const Decl *getSingleDecl() const { return DG.getSingleDecl(); } in getSingleDecl() function
1307 Decl *getSingleDecl() { return DG.getSingleDecl(); } in getSingleDecl() function
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DStmtCXX.cpp67 VarDecl *RangeDecl = dyn_cast_or_null<VarDecl>(RangeStmt->getSingleDecl()); in getRangeInit()
77 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable()
H A DStmt.cpp977 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1030 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1095 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1156 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp260 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in checkPreStmt()
264 else if (const auto *TND = dyn_cast<TypedefNameDecl>(DS->getSingleDecl())) in checkPreStmt()
H A DUndefinedAssignmentChecker.cpp88 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in checkBind()
H A DNullabilityChecker.cpp1038 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in matchValueExprForBind()
1074 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in isARCNilInitializedLocal()
H A DBasicObjCFoundationChecks.cpp896 const VarDecl *ElemDecl = cast<VarDecl>(DS->getSingleDecl()); in checkElementNonNil()
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp230 if (DS->isSingleDecl() && DS->getSingleDecl() == RefD) { in isPlusOneAssignToVar()
370 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()); in checkForGCDOrXPC()
H A DTransAutoreleasePool.cpp171 if (VarDecl *VD = dyn_cast<VarDecl>(DclS->getSingleDecl())) { in VisitCompoundStmt()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp95 VD = cast<VarDecl>(PD->getSingleDecl()); in parseAssignment()
H A DExprEngineObjC.cpp118 const VarDecl *elemD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DBugReporterVisitors.cpp882 if (const auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) in matchAssignment()
1199 if (DS->getSingleDecl() != VR->getDecl()) in isInitializationOfVar()
1270 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in showBRDiagnostics()
H A DExprEngineCXX.cpp126 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in computeObjectUnderConstruction()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DConstructionContext.cpp111 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType() in createBoundTemporaryFromLayers()
H A DLiveVariables.cpp249 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit()
401 VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DUninitializedValues.cpp692 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DCFG.cpp2848 if (const auto *TND = dyn_cast<TypedefNameDecl>(DS->getSingleDecl())) { in VisitDeclSubExpr()
2866 VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in VisitDeclSubExpr()
5151 DeclMap[cast<DeclStmt>(stmt)->getSingleDecl()] = P; in StmtPrinterHelper()
5256 VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitDeclStmt()
H A DConsumed.cpp844 if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl())) in VisitDeclStmt()
H A DPathDiagnostic.cpp788 DS->getSingleDecl()->getLocation()); in genRange()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCoroutine.cpp355 VarDecl const*VD = static_cast<VarDecl const*>(PM->getSingleDecl()); in addCopy()
494 auto *GroVarDecl = cast<VarDecl>(GroDeclStmt->getSingleDecl()); in EmitGroAlloca()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp91 Decl *decl = DG.getSingleDecl(); in ActOnForEachDeclStmt()
2260 VarDecl *D = dyn_cast<VarDecl>(DS->getSingleDecl()); in ActOnObjCForCollectionStmt()
2462 Decl *LoopVar = DS->getSingleDecl(); in ActOnCXXForRangeStmt()
2712 VarDecl *RangeVar = cast<VarDecl>(RangeDS->getSingleDecl()); in BuildCXXForRangeStmt()
2716 VarDecl *LoopVar = cast<VarDecl>(LoopVarDS->getSingleDecl()); in BuildCXXForRangeStmt()
H A DSemaCoroutine.cpp564 cast<VarDecl>(cast<DeclStmt>(Move->second)->getSingleDecl()); in buildCoroutinePromise()
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseTemplate.cpp215 return usingDeclPtr.get().getSingleDecl(); in ParseSingleDeclarationAfterTemplate()

12