Home
last modified time | relevance | path

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

1234

/external/clang/include/clang/Analysis/Analyses/
DThreadSafetyCommon.h289 const ValueDecl* valueDecl() const { in valueDecl()
403 typedef llvm::DenseMap<const ValueDecl *, unsigned> LVarIndexMap;
406 typedef std::pair<const ValueDecl *, til::SExpr *> NameVarPair;
460 til::SExpr *getCurrentLVarDefinition(const ValueDecl *VD);
463 const ValueDecl *VD = nullptr);
464 til::SExpr *lookupVarDecl(const ValueDecl *VD);
465 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E);
466 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
DThreadSafetyTIL.h359 Variable(SExpr *D, const clang::ValueDecl *Cvd = nullptr)
376 const clang::ValueDecl *clangDecl() const { return Cvdecl; } in clangDecl()
387 void setClangDecl(const clang::ValueDecl *VD) { Cvdecl = VD; } in setClangDecl()
408 const clang::ValueDecl *Cvdecl; // The clang declaration for this variable.
631 LiteralPtr(const clang::ValueDecl *D) : SExpr(COP_LiteralPtr), Cvdecl(D) {} in LiteralPtr()
635 const clang::ValueDecl *clangDecl() const { return Cvdecl; } in clangDecl()
648 const clang::ValueDecl *Cvdecl;
915 Project(SExpr *R, const clang::ValueDecl *Cvd) in Project()
925 const clang::ValueDecl *clangDecl() const { return Cvdecl; } in clangDecl()
957 const clang::ValueDecl *Cvdecl;
[all …]
/external/clang/lib/AST/
DAPValue.cpp71 llvm::PointerIntPair<const ValueDecl*, 1, bool> MemberAndIsDerivedMember;
404 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) in printPretty()
428 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { in printPretty()
450 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); in printPretty()
530 if (const ValueDecl *VD = getMemberPointerDecl()) { in printPretty()
608 const ValueDecl *APValue::getMemberPointerDecl() const { in getMemberPointerDecl()
642 void APValue::MakeMemberPointer(const ValueDecl *Member, bool IsDerivedMember, in MakeMemberPointer()
DOpenMPClause.cpp570 ArrayRef<ValueDecl *> Declarations) { in getUniqueDeclarationsTotalNumber()
572 llvm::SmallPtrSet<const ValueDecl *, 8> Cache; in getUniqueDeclarationsTotalNumber()
574 const ValueDecl *VD = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr; in getUniqueDeclarationsTotalNumber()
586 ArrayRef<Expr *> Vars, ArrayRef<ValueDecl *> Declarations, in Create()
608 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
629 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
640 ArrayRef<ValueDecl *> Declarations, in Create()
659 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
678 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
689 ArrayRef<Expr *> Vars, ArrayRef<ValueDecl *> Declarations, in Create()
[all …]
DASTDiagnostic.cpp531 ValueDecl *VD = nullptr;
637 void SetDeclarationDiff(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in SetDeclarationDiff()
655 ValueDecl *FromValueDecl, bool FromAddressOf, bool FromNullPtr, in SetFromDeclarationAndToIntegerDiff()
673 Expr *FromExpr, ValueDecl *ToValueDecl, bool ToAddressOf, in SetFromIntegerAndToDeclarationDiff()
790 void GetDeclarationDiff(ValueDecl *&FromValueDecl, ValueDecl *&ToValueDecl, in GetDeclarationDiff()
806 ValueDecl *&FromValueDecl, bool &FromAddressOf, bool &FromNullPtr, in GetFromDeclarationAndToIntegerDiff()
823 Expr *&FromExpr, ValueDecl *&ToValueDecl, bool &ToAddressOf, in GetFromIntegerAndToDeclarationDiff()
1138 Expr *&E, ValueDecl *&VD, in InitializeNonTypeDiffVariables()
1209 ValueDecl *FromValueDecl = nullptr, *ToValueDecl = nullptr; in DiffNonTypes()
1464 ValueDecl *FromValueDecl, *ToValueDecl; in TreeToString()
[all …]
DExprConstant.cpp65 if (const ValueDecl *D = B.dyn_cast<const ValueDecl*>()) in getType()
546 EvaluatingDecl((const ValueDecl *)nullptr), in EvalInfo()
1153 explicit MemberPtr(const ValueDecl *Decl) : in MemberPtr()
1158 const ValueDecl *getDecl() const { in getDecl()
1186 llvm::PointerIntPair<const ValueDecl*, 1, bool> DeclAndIsDerivedMember;
1340 if (const ValueDecl *D = B.dyn_cast<const ValueDecl*>()) { in IsGlobalLValue()
1390 const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>(); in NoteLValueLocation()
1413 const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>(); in CheckLValueConstantExpression()
1428 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { in CheckLValueConstantExpression()
1468 const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>(); in CheckLValueConstantExpression()
[all …]
/external/clang/include/clang/AST/
DOpenMPClause.h2800 ValueDecl *AssociatedDeclaration = nullptr;
2805 ValueDecl *AssociatedDeclaration) in MappableComponent()
2809 ? cast<ValueDecl>(AssociatedDeclaration->getCanonicalDecl()) in MappableComponent()
2813 ValueDecl *getAssociatedDeclaration() const { in getAssociatedDeclaration()
2837 getUniqueDeclarationsTotalNumber(ArrayRef<ValueDecl *> Declarations);
2861 MutableArrayRef<ValueDecl *> getUniqueDeclsRef() { in getUniqueDeclsRef()
2862 return MutableArrayRef<ValueDecl *>( in getUniqueDeclsRef()
2863 static_cast<T *>(this)->template getTrailingObjects<ValueDecl *>(), in getUniqueDeclsRef()
2869 ArrayRef<ValueDecl *> getUniqueDeclsRef() const { in getUniqueDeclsRef()
2870 return ArrayRef<ValueDecl *>( in getUniqueDeclsRef()
[all …]
DAPValue.h31 class ValueDecl; variable
56 typedef llvm::PointerUnion<const ValueDecl *, const Expr *> LValueBase;
157 APValue(const ValueDecl *Member, bool IsDerivedMember, in APValue()
334 const ValueDecl *getMemberPointerDecl() const;
441 void MakeMemberPointer(const ValueDecl *Member, bool IsDerivedMember,
DTemplateBase.h37 class ValueDecl; variable
81 ValueDecl *D;
136 TemplateArgument(ValueDecl *D, QualType QT) { in TemplateArgument()
245 ValueDecl *getAsDecl() const { in getAsDecl()
DDeclOpenMP.h102 class OMPDeclareReductionDecl final : public ValueDecl, public DeclContext {
119 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr), in OMPDeclareReductionDecl()
DExpr.h52 class ValueDecl; variable
938 ValueDecl *D;
966 ValueDecl *D, bool RefersToEnlosingVariableOrCapture,
981 DeclRefExpr(ValueDecl *D, bool RefersToEnclosingVariableOrCapture, QualType T,
997 SourceLocation TemplateKWLoc, ValueDecl *D,
1004 SourceLocation TemplateKWLoc, ValueDecl *D,
1017 ValueDecl *getDecl() { return D; } in getDecl()
1018 const ValueDecl *getDecl() const { return D; } in getDecl()
1019 void setDecl(ValueDecl *NewD) { D = NewD; } in setDecl()
2326 ValueDecl *MemberDecl;
[all …]
/external/clang/lib/Sema/
DSemaOpenMP.cpp71 typedef llvm::DenseMap<ValueDecl *, DSAInfo> DeclSAMapTy;
72 typedef llvm::DenseMap<ValueDecl *, Expr *> AlignedMapTy;
74 typedef llvm::DenseMap<ValueDecl *, LCDeclInfo> LoopControlVariablesMapTy;
76 ValueDecl *, OMPClauseMappableExprCommon::MappableExprComponentLists>
126 DSAVarData getDSA(StackTy::reverse_iterator& Iter, ValueDecl *D);
164 Expr *addUniqueAligned(ValueDecl *D, Expr *NewDE);
167 void addLoopControlVariable(ValueDecl *D, VarDecl *Capture);
172 LCDeclInfo isLoopControlVariable(ValueDecl *D);
177 LCDeclInfo isParentLoopControlVariable(ValueDecl *D);
180 ValueDecl *getParentLoopControlVariable(unsigned I);
[all …]
/external/clang/lib/Analysis/
DThreadSafety.cpp243 bool containsMutexDecl(FactManager &FM, const ValueDecl* Vd) const { in containsMutexDecl()
258 typedef SmallVector<const ValueDecl*, 4> BeforeVect;
268 typedef llvm::DenseMap<const ValueDecl *, std::unique_ptr<BeforeInfo>>
270 typedef llvm::DenseMap<const ValueDecl*, bool> CycleMap;
275 BeforeInfo* insertAttrExprs(const ValueDecl* Vd,
278 BeforeInfo *getBeforeInfoForDecl(const ValueDecl *Vd,
281 void checkBeforeAfter(const ValueDecl* Vd,
592 ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator()
967 BeforeSet::BeforeInfo* BeforeSet::insertAttrExprs(const ValueDecl* Vd, in insertAttrExprs()
989 if (const ValueDecl *Cpvd = Cp.valueDecl()) { in insertAttrExprs()
[all …]
DThreadSafetyCommon.cpp268 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr()
299 static const ValueDecl *getValueDeclFromSExpr(const til::SExpr *E) { in getValueDeclFromSExpr()
339 const ValueDecl *D = in translateMemberExpr()
340 cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in translateMemberExpr()
474 const ValueDecl *VD = nullptr; in translateBinAssign()
612 const ValueDecl *VD) { in addStatement()
624 til::SExpr *SExprBuilder::lookupVarDecl(const ValueDecl *VD) { in lookupVarDecl()
634 static void maybeUpdateVD(til::SExpr *E, const ValueDecl *VD) { in maybeUpdateVD()
644 til::SExpr *SExprBuilder::addVarDecl(const ValueDecl *VD, til::SExpr *E) { in addVarDecl()
653 til::SExpr *SExprBuilder::updateVarDecl(const ValueDecl *VD, til::SExpr *E) { in updateVarDecl()
/external/clang/include/clang/Sema/
DExternalSemaSource.h38 class ValueDecl; variable
183 SmallVectorImpl<std::pair<ValueDecl *, in ReadPendingInstantiations() argument
DMultiplexExternalSemaSource.h32 class ValueDecl; variable
316 SmallVectorImpl<std::pair<ValueDecl*, SourceLocation> >& Pending) override;
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp130 SmallVector<ValueDecl *, 8> BlockByCopyDecls;
131 llvm::SmallPtrSet<ValueDecl *, 8> BlockByCopyDeclsPtrSet;
132 SmallVector<ValueDecl *, 8> BlockByRefDecls;
133 llvm::SmallPtrSet<ValueDecl *, 8> BlockByRefDeclsPtrSet;
134 llvm::DenseMap<ValueDecl *, unsigned> BlockByRefDeclNo;
135 llvm::SmallPtrSet<ValueDecl *, 8> ImportedBlockDecls;
277 ValueDecl *VD, bool def=false);
286 void RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD);
1488 QualType ElementType = cast<ValueDecl>(D)->getType(); in RewriteObjCForCollectionStmt()
1504 ValueDecl *VD = cast<ValueDecl>(DR->getDecl()); in RewriteObjCForCollectionStmt()
[all …]
DRewriteModernObjC.cpp139 SmallVector<ValueDecl *, 8> BlockByCopyDecls;
140 llvm::SmallPtrSet<ValueDecl *, 8> BlockByCopyDeclsPtrSet;
141 SmallVector<ValueDecl *, 8> BlockByRefDecls;
142 llvm::SmallPtrSet<ValueDecl *, 8> BlockByRefDeclsPtrSet;
143 llvm::DenseMap<ValueDecl *, unsigned> BlockByRefDeclNo;
144 llvm::SmallPtrSet<ValueDecl *, 8> ImportedBlockDecls;
329 ValueDecl *VD, bool def=false);
338 void RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD);
1697 QualType ElementType = cast<ValueDecl>(D)->getType(); in RewriteObjCForCollectionStmt()
1713 ValueDecl *VD = cast<ValueDecl>(DR->getDecl()); in RewriteObjCForCollectionStmt()
[all …]
/external/clang/unittests/Tooling/
DQualTypeNamesTest.cpp25 bool VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
DLookupTest.cpp38 const ValueDecl *FD = Callee->getDecl(); in TEST()
/external/clang/lib/CodeGen/
DCodeGenModule.h69 class ValueDecl; variable
731 ConstantAddress GetWeakRefReference(const ValueDecl *VD);
1062 void AddGlobalAnnotations(const ValueDecl *D, llvm::GlobalValue *GV);
1251 bool MustBeEmitted(const ValueDecl *D);
1257 bool MayBeEmittedEagerly(const ValueDecl *D);
/external/clang/lib/ARCMigrate/
DTransforms.cpp228 ValueDecl *Dcl;
232 ReferenceCollector(ValueDecl *D, ExprSet &refs) in ReferenceCollector()
309 void trans::collectRefs(ValueDecl *D, Stmt *S, ExprSet &refs) { in collectRefs()
DTransforms.h215 void collectRefs(ValueDecl *D, Stmt *S, ExprSet &refs);
/external/clang/tools/libclang/
DCXType.cpp172 if (const ValueDecl *VD = dyn_cast<ValueDecl>(D)) in clang_getCursorType()
914 if (const ValueDecl *VD = dyn_cast<ValueDecl>(D)) in clang_getDeclObjCTypeEncoding()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp478 E->setDecl(ReadDeclAs<ValueDecl>(Record, Idx)); in VisitDeclRefExpr()
1648 auto VD = ReadDeclAs<ValueDecl>(Record, Idx); in VisitMaterializeTemporaryExpr()
2281 SmallVector<ValueDecl *, 16> Decls; in VisitOMPMapClause()
2285 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx)); in VisitOMPMapClause()
2304 ValueDecl *AssociatedDecl = in VisitOMPMapClause()
2305 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx); in VisitOMPMapClause()
2375 SmallVector<ValueDecl *, 16> Decls; in VisitOMPToClause()
2379 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx)); in VisitOMPToClause()
2398 ValueDecl *AssociatedDecl = in VisitOMPToClause()
2399 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx); in VisitOMPToClause()
[all …]

1234