Home
last modified time | relevance | path

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

12

/freebsd-14.2/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.h388 return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl()); in getPromiseDecl()
H A DStmt.h1510 const Decl *getSingleDecl() const { return DG.getSingleDecl(); } in getSingleDecl() function
1511 Decl *getSingleDecl() { return DG.getSingleDecl(); } in getSingleDecl() function
/freebsd-14.2/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.cpp985 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1038 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1103 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
1164 return cast<VarDecl>(DS->getSingleDecl()); in getConditionVariable()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp273 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in checkPreStmt()
277 else if (const auto *TND = dyn_cast<TypedefNameDecl>(DS->getSingleDecl())) in checkPreStmt()
H A DUndefinedAssignmentChecker.cpp82 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in checkBind()
H A DNullabilityChecker.cpp1195 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in matchValueExprForBind()
1231 auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in isARCNilInitializedLocal()
H A DBasicObjCFoundationChecks.cpp906 const VarDecl *ElemDecl = cast<VarDecl>(DS->getSingleDecl()); in checkElementNonNil()
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp96 VD = cast<VarDecl>(PD->getSingleDecl()); in parseAssignment()
H A DExprEngineObjC.cpp118 const VarDecl *elemD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DBugReporterVisitors.cpp965 if (const auto *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) in matchAssignment()
1277 if (DS->getSingleDecl() != VR->getDecl()) in isInitializationOfVar()
1348 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in showBRDiagnostics()
1577 const auto *Decl = DS->getSingleDecl(); in VisitNode()
H A DExprEngineCXX.cpp137 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in computeObjectUnderConstruction()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DConstructionContext.cpp111 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType() in createBoundTemporaryFromLayers()
H A DLiveVariables.cpp255 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit()
423 VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DUninitializedValues.cpp685 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt()
H A DCFG.cpp2945 if (const auto *TND = dyn_cast<TypedefNameDecl>(DS->getSingleDecl())) { in VisitDeclSubExpr()
2963 VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); in VisitDeclSubExpr()
5442 DeclMap[cast<DeclStmt>(stmt)->getSingleDecl()] = P; in StmtPrinterHelper()
5547 VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitDeclStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCoroutine.cpp396 VarDecl const*VD = static_cast<VarDecl const*>(PM->getSingleDecl()); in addCopy()
568 auto *GroVarDecl = cast<VarDecl>(GroDeclStmt->getSingleDecl()); in EmitGroAlloca()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/
H A DConstructionContext.h330 const auto *Var = cast<VarDecl>(DS->getSingleDecl()); in getArrayInitLoop()
/freebsd-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseTemplate.cpp209 return D.get().getSingleDecl(); in ParseSingleDeclarationAfterTemplate()
228 return usingDeclPtr.get().getSingleDecl(); in ParseSingleDeclarationAfterTemplate()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp203 const auto &D = *cast<VarDecl>(S->getSingleDecl()); in VisitDeclStmt()
H A DDataflowEnvironment.cpp346 getFieldsGlobalsAndFuncs(*DS->getSingleDecl(), Fields, Vars, Funcs); in getFieldsGlobalsAndFuncs()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp92 Decl *decl = DG.getSingleDecl(); in ActOnForEachDeclStmt()
2307 VarDecl *D = dyn_cast<VarDecl>(DS->getSingleDecl()); in ActOnObjCForCollectionStmt()
2519 Decl *LoopVar = DS->getSingleDecl(); in ActOnCXXForRangeStmt()
2769 VarDecl *RangeVar = cast<VarDecl>(RangeDS->getSingleDecl()); in BuildCXXForRangeStmt()
2773 VarDecl *LoopVar = cast<VarDecl>(LoopVarDS->getSingleDecl()); in BuildCXXForRangeStmt()

12