| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | TransferTest.cpp | 86 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 D | TypeErasedDataflowAnalysisTest.cpp | 436 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 D | TestingSupport.cpp | 126 const ValueDecl *test::findValueDecl(ASTContext &ASTCtx, llvm::StringRef Name) { in findValueDecl() 129 auto *const Result = selectFirst<ValueDecl>("v", TargetNodes); in findValueDecl()
|
| H A D | ChromiumCheckModelTest.cpp | 161 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 D | StorageLocation.h | 72 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 D | DataflowEnvironment.h | 196 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 D | Value.h | 264 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 D | DataflowAnalysisContext.h | 111 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 D | UseAfterMoveCheck.cpp | 68 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 D | APValue.cpp | 42 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 D | AttrImpl.cpp | 152 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 D | ASTDiagnostic.cpp | 596 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 D | OpenMPClause.cpp | 1113 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 D | SemaSYCL.cpp | 60 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 D | ThreadSafetyCommon.h | 314 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 D | Program.h | 63 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 D | Descriptor.h | 115 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 D | CGOpenMPRuntimeGPU.cpp | 142 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 D | LoopConvertUtils.h | 281 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 D | ASTMutationListener.h | 38 class ValueDecl; variable 93 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); 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 D | ExternalSemaSource.h | 35 class ValueDecl; variable 181 SmallVectorImpl<std::pair<ValueDecl *, in ReadPendingInstantiations() argument
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ThreadSafety.cpp | 279 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 D | ThrowByValueCatchByReferenceCheck.cpp | 56 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 D | OverlappingReplacementsTest.cpp | 88 UsageVisitor(const ValueDecl *VD, StringRef NewName, in check() 92 if (const ValueDecl *D = E->getDecl()) { in check() 102 const ValueDecl *VD; in check()
|