| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | LambdaCapture.h | 74 ValueDecl *Var = nullptr, 89 return isa_and_nonnull<ValueDecl>(DeclAndBits.getPointer()); in capturesVariable() 104 ValueDecl *getCapturedVar() const { in getCapturedVar() 106 return static_cast<ValueDecl *>(DeclAndBits.getPointer()); in getCapturedVar()
|
| H A D | ASTMutationListener.h | 40 class ValueDecl; variable 95 virtual void InstantiationRequested(const ValueDecl *D) {} in InstantiationRequested()
|
| H A D | APValue.h | 40 class ValueDecl; variable 147 typedef llvm::PointerUnion<const ValueDecl *, const Expr *, TypeInfoLValue, 153 LValueBase(const ValueDecl *P, unsigned I = 0, unsigned V = 0); 420 APValue(const ValueDecl *Member, bool IsDerivedMember, 641 const ValueDecl *getMemberPointerDecl() const; 741 void MakeMemberPointer(const ValueDecl *Member, bool IsDerivedMember, 764 setMemberPointerUninit(const ValueDecl *Member, bool IsDerivedMember,
|
| H A D | TemplateBase.h | 58 class ValueDecl; 119 ValueDecl *D; 184 void initFromDeclaration(ValueDecl *D, QualType QT, bool IsDefaulted); 203 TemplateArgument(ValueDecl *D, QualType QT, bool IsDefaulted = false) { 327 ValueDecl *getAsDecl() const {
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | MemberPointer.h | 25 const ValueDecl *Dcl = nullptr; 28 MemberPointer(Pointer Base, const ValueDecl *Dcl, int32_t PtrOffset) in MemberPointer() 33 MemberPointer(Pointer Base, const ValueDecl *Dcl) : Base(Base), Dcl(Dcl) {} in MemberPointer() 39 MemberPointer(const ValueDecl *D) : Dcl(D) { in MemberPointer() 70 const ValueDecl *getDecl() const { return Dcl; } in getDecl()
|
| H A D | Compiler.h | 71 static InitLink Decl(const ValueDecl *D) { in Decl() 89 const ValueDecl *D; 301 bool visitDeclRef(const ValueDecl *D, const Expr *E); 314 const ValueDecl *ExtendingDecl = nullptr, 321 const ValueDecl *ExtendingDecl = nullptr, 408 llvm::DenseMap<const ValueDecl *, Scope::Local> Locals; 430 const ValueDecl *InitializingDecl = nullptr; 461 VariableScope(Compiler<Emitter> *Ctx, const ValueDecl *VD, 473 void addExtended(const Scope::Local &Local, const ValueDecl *ExtendingDecl) { in addExtended() 522 const ValueDecl *ValDecl = nullptr; [all …]
|
| H A D | Program.h | 80 std::optional<unsigned> getGlobal(const ValueDecl *VD); 84 std::optional<unsigned> getOrCreateGlobal(const ValueDecl *VD, 91 std::optional<unsigned> createGlobal(const ValueDecl *VD, const Expr *Init);
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironment.h | 297 StorageLocation &createStorageLocation(const ValueDecl &D); 309 void setStorageLocation(const ValueDecl &D, StorageLocation &Loc); 313 StorageLocation *getStorageLocation(const ValueDecl &D) const; 316 void removeDecl(const ValueDecl &D); 342 get(const ValueDecl &D) const { in get() 474 StorageLocation &createObject(const ValueDecl &D, const Expr *InitExpr) { in createObject() 522 Value *getValue(const ValueDecl &D) const; 540 get(const ValueDecl &D) const { in get() 726 StorageLocation &createObjectInternal(const ValueDecl *D, QualType Ty, 800 llvm::DenseMap<const ValueDecl *, StorageLocation *> DeclToLoc;
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | APValue.cpp | 42 APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V) in LValueBase() 43 : Ptr(P ? cast<ValueDecl>(P->getCanonicalDecl()) : nullptr), Local{I, 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() 257 llvm::PointerIntPair<const ValueDecl*, 1, bool> MemberAndIsDerivedMember; 796 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) in printPretty() 825 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { in printPretty() [all …]
|
| H A D | AttrImpl.cpp | 153 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 D | ASTDiagnostic.cpp | 625 ValueDecl *VD = nullptr; 730 void SetDeclarationDiff(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in SetDeclarationDiff() 748 ValueDecl *FromValueDecl, bool FromAddressOf, bool FromNullPtr, in SetFromDeclarationAndToIntegerDiff() 766 Expr *FromExpr, ValueDecl *ToValueDecl, bool ToAddressOf, in SetFromIntegerAndToDeclarationDiff() 883 void GetDeclarationDiff(ValueDecl *&FromValueDecl, ValueDecl *&ToValueDecl, in GetDeclarationDiff() 899 ValueDecl *&FromValueDecl, bool &FromAddressOf, bool &FromNullPtr, in GetFromDeclarationAndToIntegerDiff() 916 Expr *&FromExpr, ValueDecl *&ToValueDecl, bool &ToAddressOf, in GetFromIntegerAndToDeclarationDiff() 1243 Expr *&E, ValueDecl *&VD, in InitializeNonTypeDiffVariables() 1336 ValueDecl *FromValueDecl = nullptr, *ToValueDecl = nullptr; in DiffNonTypes() 1601 ValueDecl *FromValueDecl, *ToValueDecl; in TreeToString() [all …]
|
| H A D | OpenMPClause.cpp | 1150 ArrayRef<const ValueDecl *> Declarations) { in getUniqueDeclarationsTotalNumber() 1151 llvm::SmallPtrSet<const ValueDecl *, 8> UniqueDecls; in getUniqueDeclarationsTotalNumber() 1152 for (const ValueDecl *D : Declarations) { in getUniqueDeclarationsTotalNumber() 1153 const ValueDecl *VD = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr; in getUniqueDeclarationsTotalNumber() 1161 ArrayRef<ValueDecl *> Declarations, in Create() 1184 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create() 1206 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty() 1218 ArrayRef<ValueDecl *> Declarations, in Create() 1240 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create() 1258 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty() [all …]
|
| H A D | TemplateBase.cpp | 167 void TemplateArgument::initFromDeclaration(ValueDecl *D, QualType QT, in initFromDeclaration() 212 static const ValueDecl *getAsSimpleValueDeclRef(const ASTContext &Ctx, in getAsSimpleValueDeclRef() 232 return V.getLValueBase().dyn_cast<const ValueDecl *>(); in getAsSimpleValueDeclRef() 245 else if (const ValueDecl *VD = getAsSimpleValueDeclRef(Ctx, Type, V)) in TemplateArgument() 247 initFromDeclaration(const_cast<ValueDecl *>(VD), Type, IsDefaulted); in TemplateArgument() 524 ValueDecl *VD = getAsDecl(); in print()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntimeGPU.cpp | 89 static const ValueDecl *getPrivateItem(const Expr *RefExpr) { in getPrivateItem() 106 return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl()); in getPrivateItem() 108 return cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in getPrivateItem() 112 ASTContext &C, ArrayRef<const ValueDecl *> EscapedDecls, in buildRecordForGlobalizedVars() 113 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars() 114 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in buildRecordForGlobalizedVars() argument 117 using VarsDataTy = std::pair<CharUnits /*Align*/, const ValueDecl *>; in buildRecordForGlobalizedVars() 121 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars() 123 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars() 132 llvm::SmallPtrSet<const ValueDecl *, 16> SingleEscaped(llvm::from_range, in buildRecordForGlobalizedVars() [all …]
|
| H A D | CGOpenMPRuntimeGPU.h | 377 llvm::SmallVector<const ValueDecl*, 4> EscapedVariableLengthDecls; 378 llvm::SmallVector<const ValueDecl *, 4> DelayedVariableLengthDecls; 393 std::pair<const Decl *, llvm::SmallVector<const ValueDecl *, 4>>
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | RawPtrRefLambdaCapturesChecker.cpp | 52 llvm::DenseSet<const ValueDecl *> ProtectedThisDecls; in checkASTDecl() 280 if (auto *ValueDecl = OtherCapture.getCapturedVar()) { in checkASTDecl() local 281 if (declProtectsThis(ValueDecl)) { in checkASTDecl() 282 ProtectedThisDecls.insert(ValueDecl); in checkASTDecl() 290 bool declProtectsThis(const ValueDecl *ValueDecl) const { in checkASTDecl() 291 auto *VD = dyn_cast<VarDecl>(ValueDecl); in checkASTDecl() 380 ValueDecl *CapturedVar = C.getCapturedVar(); in visitLambdaExpr() 405 void reportBug(const LambdaCapture &Capture, ValueDecl *CapturedVar, in reportBug()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 582 ValueDecl *CapturedVar; 624 Capture(ValueDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture() 675 ValueDecl *getVariable() const { in getVariable() 714 llvm::DenseMap<ValueDecl *, unsigned> CaptureMap; 737 void addCapture(ValueDecl *Var, bool isBlock, bool isByref, bool isNested, in addCapture() 764 bool isCaptured(ValueDecl *Var) const { return CaptureMap.count(Var); } in isCaptured() 771 Capture &getCapture(ValueDecl *Var) { in getCapture() 776 const Capture &getCapture(ValueDecl *Var) const { in getCapture() 777 llvm::DenseMap<ValueDecl *, unsigned>::const_iterator Known = in getCapture() 1074 llvm::function_ref<void(ValueDecl *, Expr *)> Callback) const;
|
| H A D | ExternalSemaSource.h | 35 class ValueDecl; variable 181 SmallVectorImpl<std::pair<ValueDecl *, in ReadPendingInstantiations() argument
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerSubChecker.cpp | 77 const ValueDecl *DiffDeclL = nullptr; in checkPreStmt() 78 const ValueDecl *DiffDeclR = nullptr; in checkPreStmt() 103 auto AddNote = [&R, &C](const ValueDecl *D, StringRef SideStr) { in checkPreStmt()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | LifetimeSafety.cpp | 33 const clang::ValueDecl *D; 35 AccessPath(const clang::ValueDecl *D) : D(D) {} in AccessPath() 91 llvm::PointerUnion<const clang::ValueDecl *, const clang::Expr *> Ptr; 93 Origin(OriginID ID, const clang::ValueDecl *D) : ID(ID), Ptr(D) {} in Origin() 96 const clang::ValueDecl *getDecl() const { in getDecl() 97 return Ptr.dyn_cast<const clang::ValueDecl *>(); in getDecl() 135 Origin &addOrigin(OriginID ID, const clang::ValueDecl &D) { in addOrigin() 158 OriginID get(const ValueDecl &D) { in get() 191 OriginID getOrCreate(const ValueDecl &D) { in getOrCreate() 208 llvm::DenseMap<const clang::ValueDecl *, OriginID> DeclToOriginID; [all …]
|
| H A D | ThreadSafety.cpp | 273 bool containsMutexDecl(FactManager &FM, const ValueDecl* Vd) const { in containsMutexDecl() 289 using BeforeVect = SmallVector<const ValueDecl *, 4>; 300 llvm::DenseMap<const ValueDecl *, std::unique_ptr<BeforeInfo>>; 301 using CycleMap = llvm::DenseMap<const ValueDecl *, bool>; 306 BeforeInfo* insertAttrExprs(const ValueDecl* Vd, 309 BeforeInfo *getBeforeInfoForDecl(const ValueDecl *Vd, 312 void checkBeforeAfter(const ValueDecl* Vd, 645 const ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator() 1159 BeforeSet::BeforeInfo* BeforeSet::insertAttrExprs(const ValueDecl* Vd, in insertAttrExprs() 1181 if (const ValueDecl *Cpvd = Cp.valueDecl()) { in insertAttrExprs() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyCommon.h | 325 const ValueDecl* valueDecl() const { in valueDecl() 453 using LVarIndexMap = llvm::DenseMap<const ValueDecl *, unsigned>; 456 using NameVarPair = std::pair<const ValueDecl *, til::SExpr *>; 494 const ValueDecl *VD = nullptr); 495 til::SExpr *lookupVarDecl(const ValueDecl *VD); 496 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E); 497 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | ScopeInfo.cpp | 236 llvm::function_ref<void(ValueDecl *, Expr *)> Callback) const { in visitPotentialCaptures() argument 239 Callback(cast<ValueDecl>(DRE->getFoundDecl()), E); in visitPotentialCaptures() 241 Callback(cast<ValueDecl>(ME->getMemberDecl()), E); in visitPotentialCaptures() 243 for (ValueDecl *VD : *FP) in visitPotentialCaptures()
|
| H A D | SemaOpenACC.cpp | 1124 const ValueDecl *getDeclFromExpr(const Expr *E) { in getDeclFromExpr() 1134 return dyn_cast<ValueDecl>(DRE->getDecl()); in getDeclFromExpr() 1157 const ValueDecl *InitVar = in checkRangeFor() 1158 cast<ValueDecl>(UninstRangeStmt->getSingleDecl()); in checkRangeFor() 1168 const ValueDecl *InitVar = cast<ValueDecl>(RangeStmt->getSingleDecl()); in checkRangeFor() 1182 const ValueDecl *&InitVar, in checkForInit() 1225 InitVar = dyn_cast<ValueDecl>(DS->getSingleDecl()); in checkForInit() 1255 InitVar = cast<ValueDecl>(InitVar->getCanonicalDecl()); in checkForInit() 1274 const ValueDecl *InitVar, in checkForCond() 1305 const ValueDecl *CondVar = nullptr; in checkForCond() [all …]
|
| H A D | SemaBoundsSafety.cpp | 298 SourceLocation Loc, const ValueDecl *Assignee, in CheckAssignmentToCountAttrPtrWithIncompletePointeeTy() 327 const ValueDecl *Assignee, bool ShowFullyQualifiedAssigneeName) { in BoundsSafetyCheckAssignmentToCountAttrPtr() 352 dyn_cast_or_null<ValueDecl>(Entity.getDecl()), in BoundsSafetyCheckInitialization()
|