Home
last modified time | relevance | path

Searched defs:VD (Results 1 – 25 of 178) sorted by relevance

12345678

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp48 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) in NextVA() local
75 if (VarDecl* VD = dyn_cast<VarDecl>(D)) { in HandleDecl() local
116 VarDecl* VD = cast<VarDecl>(*DGI); in GetDeclExpr() local
H A DAttrImpl.cpp153 OMPDeclareTargetDeclAttr::getActiveAttr(const ValueDecl *VD) { in getActiveAttr()
172 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(const ValueDecl *VD) { in isDeclareTargetDeclaration()
180 OMPDeclareTargetDeclAttr::getDeviceType(const ValueDecl *VD) { in getDeviceType()
188 OMPDeclareTargetDeclAttr::getLocation(const ValueDecl *VD) { in getLocation()
H A DItaniumCXXABI.cpp45 static const IdentifierInfo *findAnonymousUnionVarDeclName(const VarDecl& VD) { in findAnonymousUnionVarDeclName()
160 unsigned getStaticLocalNumber(const VarDecl *VD) override { in getStaticLocalNumber()
165 unsigned getManglingNumber(const VarDecl *VD, unsigned) override { in getManglingNumber()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DUnsafeBufferUsage.h71 void set(const VarDecl *VD, Kind K) { Map[VD] = K; } in set()
73 Kind lookup(const VarDecl *VD) const { in lookup()
133 void addDebugNoteForVar(const VarDecl *VD, SourceLocation Loc, in addDebugNoteForVar()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp221 til::LiteralPtr *SExprBuilder::createVariable(const VarDecl *VD) { in createVariable()
310 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr() local
369 auto *VD = getValueDeclFromSExpr(E); in hasAnyPointerType() local
397 if (const auto *VD = dyn_cast<CXXMethodDecl>(D)) in translateMemberExpr() local
544 const ValueDecl *VD = nullptr; in translateBinAssign() local
661 if (auto *VD = dyn_cast_or_null<VarDecl>(I)) { in translateDeclStmt() local
682 const ValueDecl *VD) { in addStatement()
694 til::SExpr *SExprBuilder::lookupVarDecl(const ValueDecl *VD) { in lookupVarDecl()
704 static void maybeUpdateVD(til::SExpr *E, const ValueDecl *VD) { in maybeUpdateVD()
714 til::SExpr *SExprBuilder::addVarDecl(const ValueDecl *VD, til::SExpr *E) { in addVarDecl()
[all …]
H A DLiveVariables.cpp255 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit() local
328 static bool writeShouldKill(const VarDecl *VD) { in writeShouldKill()
358 } else if (const auto *VD = dyn_cast<VarDecl>(D)) { in VisitBinaryOperator() local
372 for (const VarDecl *VD : in VisitBlockExpr() local
390 } else if (const auto *VD = dyn_cast<VarDecl>(D)) { in VisitDeclRefExpr() local
409 } else if (const auto *VD = dyn_cast<VarDecl>(DI)) { in VisitDeclStmt() local
419 const VarDecl *VD = nullptr; in VisitObjCForCollectionStmt() local
H A DUninitializedValues.cpp269 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() local
318 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() local
328 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr()
360 if (const auto *VD = dyn_cast<VarDecl>(ME->getMemberDecl())) { in classify() local
388 auto *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt() local
685 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); in VisitObjCForCollectionStmt() local
760 if (const VarDecl *VD = Var.getDecl()) in VisitBinaryOperator() local
767 auto *VD = dyn_cast<VarDecl>(DI); in VisitDeclStmt() local
818 if (const VarDecl *VD = findVar(Ex).getDecl()) in VisitGCCAsmStmt() local
H A DUnsafeBufferUsage.cpp1235 if (const auto *VD = dyn_cast<VarDecl>(D)) { in discoverDecl() local
1519 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in groupWarningGadgetsByVar() local
1548 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in groupFixablesByVar() local
1663 static bool isNonNegativeIntegerExpr(const Expr *Expr, const VarDecl *VD, in isNonNegativeIntegerExpr()
1677 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in getFixits() local
1707 const auto *VD = cast<VarDecl>(DREs.front()->getDecl()); in getFixits() local
1791 static SourceLocation getVarDeclIdentifierLoc(const VarDecl *VD) { in getVarDeclIdentifierLoc()
1799 getVarDeclIdentifierText(const VarDecl *VD, const SourceManager &SM, in getVarDeclIdentifierText()
1817 static bool hasUnsupportedSpecifiers(const VarDecl *VD, in hasUnsupportedSpecifiers()
1854 getPointeeTypeText(const VarDecl *VD, const SourceManager &SM, in getPointeeTypeText()
[all …]
H A DCFG.cpp67 if (VarDecl *VD = dyn_cast<VarDecl>(D)) in GetEndLoc() local
324 void addVar(VarDecl *VD) { in addVar()
640 void maybeAddScopeBeginForVarDecl(CFGBlock *B, const VarDecl *VD, in maybeAddScopeBeginForVarDecl()
880 void appendAutomaticObjDtor(CFGBlock *B, VarDecl *VD, Stmt *S) { in appendAutomaticObjDtor()
884 void appendCleanupFunction(CFGBlock *B, VarDecl *VD) { in appendCleanupFunction()
888 void appendLifetimeEnds(CFGBlock *B, VarDecl *VD, Stmt *S) { in appendLifetimeEnds()
912 void appendScopeBegin(CFGBlock *B, const VarDecl *VD, const Stmt *S) { in appendScopeBegin()
917 void appendScopeEnd(CFGBlock *B, const VarDecl *VD, const Stmt *S) { in appendScopeEnd()
2098 if (VarDecl *VD = dyn_cast<VarDecl>(DI)) in addLocalScopeForDeclStmt() local
2150 LocalScope* CFGBuilder::addLocalScopeForVarDecl(VarDecl *VD, in addLocalScopeForVarDecl()
[all …]
H A DAnalysisDeclContext.cpp144 static bool isSelfDecl(const VarDecl *VD) { in isSelfDecl()
154 const VarDecl *VD = I.getVariable(); in getSelfDecl() local
172 ValueDecl *VD = LC.getCapturedVar(); in getSelfDecl() local
610 if (const auto *VD = dyn_cast<VarDecl>(DR->getDecl())) { in VisitDeclRefExpr() local
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp57 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) { in WriteNamedDecl() local
86 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) in WriteNamedDecl() local
214 const auto *VD = cast<VarDecl>(ND); in HandleNamedDecl() local
253 if (const auto *VD = dyn_cast<ValueDecl>(ND)) { in HandleTranslationUnit() local
313 auto VD = cast<ValueDecl>(E.first)->getType(); in HandleTranslationUnit() local
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DVarBypassDetector.cpp36 const VarDecl *VD = dyn_cast<VarDecl>(D); in BuildScopeInformation() local
42 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) in BuildScopeInformation() local
H A DCGOpenMPRuntimeGPU.cpp134 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars() local
195 void markAsEscaped(const ValueDecl *VD) { in markAsEscaped()
248 void VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
267 const ValueDecl *VD = C.getCapturedVar(); in VisitOpenMPCapturedStmt() local
331 if (const auto *VD = dyn_cast_or_null<ValueDecl>(D)) in VisitDeclStmt() local
360 const ValueDecl *VD = C.getCapturedVar(); in VisitCapturedStmt() local
373 const ValueDecl *VD = C.getCapturedVar(); in VisitLambdaExpr() local
386 const VarDecl *VD = C.getVariable(); in VisitBlockExpr() local
413 const ValueDecl *VD = E->getDecl(); in VisitDeclRefExpr() local
1052 const auto *VD = cast<VarDecl>(Rec.first); in emitGenericVarsProlog() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp123 auto *VD = dyn_cast_or_null<VarDecl>(D); in CUDATargetContextRAII() local
609 bool IsDependentVar(VarDecl *VD) { in IsDependentVar()
626 bool HasAllowedCUDADeviceStaticInitializer(SemaCUDA &S, VarDecl *VD, in HasAllowedCUDADeviceStaticInitializer()
646 auto HasEmptyDtor = [&](VarDecl *VD) { in HasAllowedCUDADeviceStaticInitializer()
658 void SemaCUDA::checkAllowedInitializer(VarDecl *VD) { in checkAllowedInitializer()
805 void SemaCUDA::MaybeAddConstantAttr(VarDecl *VD) { in MaybeAddConstantAttr()
H A DCheckExprLifetime.cpp224 static bool isVarOnPath(IndirectLocalPath &Path, VarDecl *VD) { in isVarOnPath()
571 auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in visitLocalsRetainedByReferenceBinding() local
677 auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in visitLocalsRetainedByInitializer() local
1156 auto *VD = DRE ? dyn_cast<VarDecl>(DRE->getDecl()) : nullptr; in checkExprLifetimeImpl() local
1260 const VarDecl *VD = cast<VarDecl>(Elem.D); in checkExprLifetimeImpl() local
1272 const ValueDecl *VD = Elem.Capture->getCapturedVar(); in checkExprLifetimeImpl() local
H A DScope.cpp136 void Scope::updateNRVOCandidate(VarDecl *VD) { in updateNRVOCandidate()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp109 std::optional<unsigned> Program::getGlobal(const ValueDecl *VD) { in getGlobal()
135 std::optional<unsigned> Program::getOrCreateGlobal(const ValueDecl *VD, in getOrCreateGlobal()
147 std::optional<unsigned> Program::getOrCreateDummy(const ValueDecl *VD) { in getOrCreateDummy()
182 std::optional<unsigned> Program::createGlobal(const ValueDecl *VD, in createGlobal()
H A DInterp.cpp62 const ValueDecl *VD) { in diagnoseMissingInitializer()
86 else if (const auto *VD = dyn_cast<VarDecl>(D); in diagnoseUnknownDecl() local
94 const ValueDecl *VD) { in diagnoseNonConstVariable()
257 const auto *VD = Ptr.getDeclDesc()->asValueDecl(); in CheckExtern() local
304 auto IsConstType = [&S](const VarDecl *VD) -> bool { in CheckConstant()
477 if (const auto *VD = Ptr.getDeclDesc()->asVarDecl(); in CheckInitialized() local
501 const auto *VD = cast<VarDecl>(Ptr.getDeclDesc()->asValueDecl()); in CheckGlobalInitialized() local
H A DContext.h97 static bool shouldBeGloballyIndexed(const ValueDecl *VD) { in shouldBeGloballyIndexed()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp58 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsStaticLocal() local
84 const VarDecl *VD = nullptr; in parseAssignment() local
H A DLoopUnrolling.cpp186 const VarDecl *VD = cast<VarDecl>(DR->getDecl()->getCanonicalDecl()); in isCapturedByReference() local
193 static bool isFoundInStmt(const Stmt *S, const VarDecl *VD) { in isFoundInStmt()
210 const VarDecl *VD = cast<VarDecl>(DR->getDecl()->getCanonicalDecl()); in isPossiblyEscaped() local
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDereferenceChecker.cpp75 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in AddDerefSource() local
110 const VarDecl *VD; in getDereferenceExpr() local
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.h98 if (auto *VD = dyn_cast<VarDecl>(D)) in isPartOfPerModuleInitializer() local
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp231 if (VarDecl *VD = dyn_cast<VarDecl>(RefD)) in isPlusOneAssignToVar() local
370 VarDecl *VD = dyn_cast_or_null<VarDecl>(DeclS->getSingleDecl()); in checkForGCDOrXPC() local
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DCFG.h320 CFGScopeBegin(const VarDecl *VD, const Stmt *S) in CFGScopeBegin()
346 CFGScopeEnd(const VarDecl *VD, const Stmt *S) : CFGElement(ScopeEnd, VD, S) {} in CFGScopeEnd()
391 CFGCleanupFunction(const VarDecl *VD) in CFGCleanupFunction()
1151 void appendScopeBegin(const VarDecl *VD, const Stmt *S, in appendScopeBegin()
1156 void appendScopeEnd(const VarDecl *VD, const Stmt *S, BumpVectorContext &C) { in appendScopeEnd()
1172 void appendAutomaticObjDtor(VarDecl *VD, Stmt *S, BumpVectorContext &C) { in appendAutomaticObjDtor()
1176 void appendCleanupFunction(const VarDecl *VD, BumpVectorContext &C) { in appendCleanupFunction()
1180 void appendLifetimeEnds(VarDecl *VD, Stmt *S, BumpVectorContext &C) { in appendLifetimeEnds()

12345678