Home
last modified time | relevance | path

Searched refs:ValueDecl (Results 1 – 25 of 170) sorted by relevance

1234567

/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTransferTest.cpp86 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
168 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
216 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
262 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
356 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
651 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
654 const ValueDecl *BarDecl = findValueDecl(ASTCtx, "Bar"); in TEST()
657 const ValueDecl *BazDecl = findValueDecl(ASTCtx, "Baz"); in TEST()
1191 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in derivedBaseMemberExpectations()
2308 const ValueDecl *MemberPointerDecl = in TEST()
[all …]
H A DTypeErasedDataflowAnalysisTest.cpp436 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST_F()
587 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST_F()
632 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST_F()
669 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST_F()
672 const ValueDecl *BarDecl = findValueDecl(ASTCtx, "Bar"); in TEST_F()
816 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST_F()
1020 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST_F()
1055 const ValueDecl *BarDecl = findValueDecl(ASTCtx, "Bar"); in TEST_F()
1098 const ValueDecl *BarDecl = findValueDecl(ASTCtx, "Bar"); in TEST_F()
1134 const ValueDecl *BarDecl = findValueDecl(ASTCtx, "Bar"); in TEST_F()
[all …]
H A DTestingSupport.cpp126 const ValueDecl *test::findValueDecl(ASTContext &ASTCtx, llvm::StringRef Name) { in findValueDecl()
129 auto *const Result = selectFirst<ValueDecl>("v", TargetNodes); in findValueDecl()
H A DChromiumCheckModelTest.cpp161 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
194 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/
H A DStorageLocation.h72 Type, llvm::DenseMap<const ValueDecl *, StorageLocation *>()) {} in AggregateStorageLocation()
76 llvm::DenseMap<const ValueDecl *, StorageLocation *> Children) in AggregateStorageLocation() argument
84 StorageLocation &getChild(const ValueDecl &D) const { in getChild()
91 llvm::DenseMap<const ValueDecl *, StorageLocation *> Children;
H A DDataflowEnvironment.h196 void setStorageLocation(const ValueDecl &D, StorageLocation &Loc);
201 StorageLocation *getStorageLocation(const ValueDecl &D, SkipPast SP) const;
243 Value *getValue(const ValueDecl &D, SkipPast SP) const;
370 llvm::DenseMap<const ValueDecl *, StorageLocation *> DeclToLoc;
378 std::pair<StructValue *, const ValueDecl *>>
H A DValue.h264 StructValue() : StructValue(llvm::DenseMap<const ValueDecl *, Value *>()) {} in StructValue()
266 explicit StructValue(llvm::DenseMap<const ValueDecl *, Value *> Children) in StructValue() argument
275 Value *getChild(const ValueDecl &D) const { in getChild()
283 void setChild(const ValueDecl &D, Value &Val) { Children[&D] = &Val; } in setChild()
286 llvm::DenseMap<const ValueDecl *, Value *> Children;
H A DDataflowAnalysisContext.h111 void setStorageLocation(const ValueDecl &D, StorageLocation &Loc) { in setStorageLocation()
118 StorageLocation *getStorageLocation(const ValueDecl &D) const { in getStorageLocation()
319 llvm::DenseMap<const ValueDecl *, StorageLocation *> DeclToLoc;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUseAfterMoveCheck.cpp68 const ValueDecl *MovedVariable, UseAfterMove *TheUseAfterMove);
72 const ValueDecl *MovedVariable,
74 void getUsesAndReinits(const CFGBlock *Block, const ValueDecl *MovedVariable,
79 void getReinits(const CFGBlock *Block, const ValueDecl *MovedVariable,
110 const ValueDecl *MovedVariable, in find()
145 const ValueDecl *MovedVariable, in findInternal()
215 const CFGBlock *Block, const ValueDecl *MovedVariable, in getUsesAndReinits()
237 bool isStandardSmartPointer(const ValueDecl *VD) { in isStandardSmartPointer()
296 const CFGBlock *Block, const ValueDecl *MovedVariable, in getReinits()
/llvm-project-15.0.7/clang/lib/AST/
H A DAPValue.cpp42 APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V) in LValueBase()
65 if (const ValueDecl *D = dyn_cast<const ValueDecl*>()) { in getType()
73 for (auto *Redecl = cast<ValueDecl>(D->getMostRecentDecl()); Redecl; in getType()
74 Redecl = cast_or_null<ValueDecl>(Redecl->getPreviousDecl())) { in getType()
190 B.Ptr = DenseMapInfo<const ValueDecl*>::getEmptyKey(); in getEmptyKey()
197 B.Ptr = DenseMapInfo<const ValueDecl*>::getTombstoneKey(); in getTombstoneKey()
781 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) in printPretty()
810 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { in printPretty()
835 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); in printPretty()
921 if (const ValueDecl *VD = getMemberPointerDecl()) { in printPretty()
[all …]
H A DAttrImpl.cpp152 OMPDeclareTargetDeclAttr::getActiveAttr(const ValueDecl *VD) { in getActiveAttr()
169 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(const ValueDecl *VD) { in isDeclareTargetDeclaration()
177 OMPDeclareTargetDeclAttr::getDeviceType(const ValueDecl *VD) { in getDeviceType()
185 OMPDeclareTargetDeclAttr::getLocation(const ValueDecl *VD) { in getLocation()
H A DASTDiagnostic.cpp596 ValueDecl *VD = nullptr;
701 void SetDeclarationDiff(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in SetDeclarationDiff()
737 Expr *FromExpr, ValueDecl *ToValueDecl, bool ToAddressOf, in SetFromIntegerAndToDeclarationDiff()
854 void GetDeclarationDiff(ValueDecl *&FromValueDecl, ValueDecl *&ToValueDecl, in GetDeclarationDiff()
887 Expr *&FromExpr, ValueDecl *&ToValueDecl, bool &ToAddressOf, in GetFromIntegerAndToDeclarationDiff()
1285 ValueDecl *FromValueDecl = nullptr, *ToValueDecl = nullptr; in DiffNonTypes()
1540 ValueDecl *FromValueDecl, *ToValueDecl; in TreeToString()
1553 ValueDecl *FromValueDecl; in TreeToString()
1575 ValueDecl *ToValueDecl; in TreeToString()
1905 void PrintValueDecl(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in PrintValueDecl()
[all …]
H A DOpenMPClause.cpp1113 ArrayRef<const ValueDecl *> Declarations) { in getUniqueDeclarationsTotalNumber()
1115 llvm::SmallPtrSet<const ValueDecl *, 8> Cache; in getUniqueDeclarationsTotalNumber()
1116 for (const ValueDecl *D : Declarations) { in getUniqueDeclarationsTotalNumber()
1117 const ValueDecl *VD = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr; in getUniqueDeclarationsTotalNumber()
1128 ArrayRef<ValueDecl *> Declarations, in Create()
1151 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1172 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1182 ArrayRef<ValueDecl *> Declarations, in Create()
1204 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1232 ArrayRef<ValueDecl *> Declarations, in Create()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaSYCL.cpp60 ValueDecl *DeclToCheck) { in deepTypeCheckForSYCLDevice()
67 auto Check = [&](QualType TypeToCheck, const ValueDecl *D) { in deepTypeCheckForSYCLDevice()
89 SmallVector<const ValueDecl *, 4> StackForRecursion; in deepTypeCheckForSYCLDevice()
97 const ValueDecl *Next = StackForRecursion.pop_back_val(); in deepTypeCheckForSYCLDevice()
/llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h314 const ValueDecl* valueDecl() const { in valueDecl()
438 using LVarIndexMap = llvm::DenseMap<const ValueDecl *, unsigned>;
441 using NameVarPair = std::pair<const ValueDecl *, til::SExpr *>;
478 til::SExpr *getCurrentLVarDefinition(const ValueDecl *VD);
481 const ValueDecl *VD = nullptr);
482 til::SExpr *lookupVarDecl(const ValueDecl *VD);
483 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E);
484 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DProgram.h63 llvm::Optional<unsigned> getGlobal(const ValueDecl *VD);
66 llvm::Optional<unsigned> getOrCreateGlobal(const ValueDecl *VD);
72 llvm::Optional<unsigned> createGlobal(const ValueDecl *VD);
H A DDescriptor.h115 const ValueDecl *asValueDecl() const { in asValueDecl()
116 return dyn_cast_or_null<ValueDecl>(asDecl()); in asValueDecl()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp142 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
149 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
155 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
171 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars()
223 llvm::SetVector<const ValueDecl *> EscapedDecls;
231 void markAsEscaped(const ValueDecl *VD) { in markAsEscaped()
236 VD = cast<ValueDecl>(VD->getCanonicalDecl()); in markAsEscaped()
277 void VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
296 const ValueDecl *VD = C.getCapturedVar(); in VisitOpenMPCapturedStmt()
389 const ValueDecl *VD = C.getCapturedVar(); in VisitCapturedStmt()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.h281 bool areSameVariable(const ValueDecl *First, const ValueDecl *Second);
440 const clang::ValueDecl *TheContainer, in VariableNamer()
458 const clang::ValueDecl *TheContainer;
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTMutationListener.h38 class ValueDecl; variable
93 virtual void InstantiationRequested(const ValueDecl *D) {} in InstantiationRequested()
H A DAPValue.h40 class ValueDecl; variable
147 typedef llvm::PointerUnion<const ValueDecl *, const Expr *, TypeInfoLValue,
153 LValueBase(const ValueDecl *P, unsigned I = 0, unsigned V = 0);
350 APValue(const ValueDecl *Member, bool IsDerivedMember,
567 const ValueDecl *getMemberPointerDecl() const;
667 void MakeMemberPointer(const ValueDecl *Member, bool IsDerivedMember,
690 setMemberPointerUninit(const ValueDecl *Member, bool IsDerivedMember,
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DExternalSemaSource.h35 class ValueDecl; variable
181 SmallVectorImpl<std::pair<ValueDecl *, in ReadPendingInstantiations() argument
/llvm-project-15.0.7/clang/lib/Analysis/
H A DThreadSafety.cpp279 using BeforeVect = SmallVector<const ValueDecl *, 4>;
296 BeforeInfo* insertAttrExprs(const ValueDecl* Vd,
299 BeforeInfo *getBeforeInfoForDecl(const ValueDecl *Vd,
302 void checkBeforeAfter(const ValueDecl* Vd,
636 const ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator()
1119 BeforeSet::getBeforeInfoForDecl(const ValueDecl *Vd, in getBeforeInfoForDecl()
1140 std::function<bool (const ValueDecl*)> traverse = [&](const ValueDecl* Vd) { in checkBeforeAfter()
1221 const ValueDecl *VD = LP->clangDecl(); in inCurrentScope()
1236 const ValueDecl *VD = P->clangDecl(); in inCurrentScope()
1705 const ValueDecl *D = getValueDecl(Exp); in checkAccess()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DThrowByValueCatchByReferenceCheck.cpp56 auto *ValueDecl = DeclRefExpr->getDecl(); in isCatchVariable() local
57 if (auto *VarDecl = dyn_cast<clang::VarDecl>(ValueDecl)) in isCatchVariable()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DOverlappingReplacementsTest.cpp88 UsageVisitor(const ValueDecl *VD, StringRef NewName, in check()
92 if (const ValueDecl *D = E->getDecl()) { in check()
102 const ValueDecl *VD; in check()

1234567