Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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.h384 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl()); in getPromiseDecl()
H A DStmt.h1314 const Decl *getSingleDecl() const { return DG.getSingleDecl(); } in getSingleDecl() function
1315 Decl *getSingleDecl() { return DG.getSingleDecl(); } in getSingleDecl() function
/llvm-project-15.0.7/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.cpp983 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1036 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1101 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1162 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp132 dyn_cast<VarDecl>(InitDeclStatement->getSingleDecl())) { in hasKnownBounds()
181 dyn_cast<VarDecl>(InitDeclStatement->getSingleDecl())) { in hasLargeNumIterations()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DConstructionContext.cpp111 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType() in createBoundTemporaryFromLayers()
H A DLiveVariables.cpp254 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit()
422 VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DUninitializedValues.cpp692 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DElseAfterReturnCheck.cpp89 const Decl *InitDecl = InitDeclStmt->getSingleDecl(); in checkInitDeclUsageInElse()
/llvm-project-15.0.7/polly/lib/External/isl/interface/
H A Dextract_interface.cc158 decl = D.getSingleDecl(); in HandleTopLevelDecl()
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DConstructionContext.h330 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in getArrayInitLoop()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp141 initGlobalVar(*DS->getSingleDecl(), Env); in initGlobalVars()
H A DTransfer.cpp130 const auto &D = *cast<VarDecl>(S->getSingleDecl()); in VisitDeclStmt()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.cpp808 isAliasDecl(Context, S->getSingleDecl(), IndexVar)) { in VisitDeclStmt()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseTemplate.cpp208 return D.get().getSingleDecl(); in ParseSingleDeclarationAfterTemplate()
219 return usingDeclPtr.get().getSingleDecl(); in ParseSingleDeclarationAfterTemplate()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCoroutine.cpp355 VarDecl const*VD = static_cast<VarDecl const*>(PM->getSingleDecl()); in addCopy()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp91 Decl *decl = DG.getSingleDecl(); in ActOnForEachDeclStmt()
2297 VarDecl *D = dyn_cast<VarDecl>(DS->getSingleDecl()); in ActOnObjCForCollectionStmt()
2500 Decl *LoopVar = DS->getSingleDecl(); in ActOnCXXForRangeStmt()
2750 VarDecl *RangeVar = cast<VarDecl>(RangeDS->getSingleDecl()); in BuildCXXForRangeStmt()
2754 VarDecl *LoopVar = cast<VarDecl>(LoopVarDS->getSingleDecl()); in BuildCXXForRangeStmt()

12