Home
last modified time | relevance | path

Searched refs:BindingDecl (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DLiveVariables.h35 llvm::ImmutableSet<const BindingDecl *> liveBindings;
44 llvm::ImmutableSet<const BindingDecl *> LiveBindings) in LivenessValues()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DLiveVariables.cpp34 llvm::ImmutableSet<const BindingDecl *>::Factory BSetFact;
75 for (const BindingDecl *BD : DD->bindings()) in isLive()
115 llvm::ImmutableSetRef<const BindingDecl *> in merge()
387 if (const BindingDecl* BD = dyn_cast<BindingDecl>(D)) { in VisitBinaryOperator()
420 if (const auto *BD = dyn_cast<BindingDecl>(D)) { in VisitDeclRefExpr()
508 if (isa<VarDecl>(D) || isa<BindingDecl>(D)) { in VisitUnaryOperator()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclCXX.cpp3313 if (isa<BindingDecl>(ExtendingDecl)) in getStorageDuration()
3563 assert((isa<VarDecl, BindingDecl>(this)) && in getPotentiallyDecomposedVarDecl()
3567 if (auto *BD = llvm::dyn_cast<BindingDecl>(this)) in getPotentiallyDecomposedVarDecl()
3572 void BindingDecl::anchor() {} in anchor()
3574 BindingDecl *BindingDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3577 return new (C, DC) BindingDecl(DC, IdLoc, Id, T); in Create()
3580 BindingDecl *BindingDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized()
3582 BindingDecl(nullptr, SourceLocation(), nullptr, QualType()); in CreateDeserialized()
3585 VarDecl *BindingDecl::getHoldingVar() const { in getHoldingVar()
3598 ArrayRef<BindingDecl *> BindingDecl::getBindingPackDecls() const { in getBindingPackDecls()
[all …]
H A DItaniumCXXABI.cpp57 using BindingArray = ArrayRef<const BindingDecl*>;
104 using ArrayInfo = llvm::DenseMapInfo<ArrayRef<const BindingDecl*>>;
H A DExprClassification.cpp511 isa<VarDecl, FieldDecl, IndirectFieldDecl, BindingDecl, MSGuidDecl, in ClassifyDecl()
H A DDeclBase.cpp1216 assert(isa<BindingDecl>(this)); in getFunctionType()
H A DExpr.cpp4156 if (BindingDecl *BD = dyn_cast<BindingDecl>(DeclRef->getDecl())) in getSourceBitField()
4201 if (auto *BD = dyn_cast<BindingDecl>(DRE->getDecl())) in refersToVectorElement()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclCXX.h4176 class BindingDecl : public ValueDecl {
4185 BindingDecl(DeclContext *DC, SourceLocation IdLoc, IdentifierInfo *Id, in BindingDecl() function
4194 static BindingDecl *Create(ASTContext &C, DeclContext *DC,
4197 static BindingDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID);
4205 ArrayRef<BindingDecl *> getBindingPackDecls() const;
4240 private llvm::TrailingObjects<DecompositionDecl, BindingDecl *> {
4247 ArrayRef<BindingDecl *> Bindings) in DecompositionDecl()
4255 for (BindingDecl *NestedBD : B->getBindingPackDecls()) { in DecompositionDecl()
4273 ArrayRef<BindingDecl *> Bindings);
4278 ArrayRef<BindingDecl *> bindings() const { in bindings()
[all …]
H A DTextNodeDumper.h364 void VisitBindingDecl(const BindingDecl *D);
H A DASTNodeTraverser.h596 void VisitBindingDecl(const BindingDecl *D) { in VisitBindingDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DASTOps.h126 bool TraverseBindingDecl(BindingDecl *BD) override { in TraverseBindingDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DTemplate.h32 class BindingDecl; variable
661 ArrayRef<BindingDecl *> *Bindings = nullptr);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.cpp202 } else if (auto *BD = dyn_cast_or_null<BindingDecl>(FoundDecl)) { in isASafeCallArg()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp1592 Decl *TemplateDeclInstantiator::VisitBindingDecl(BindingDecl *D) { in VisitBindingDecl()
1593 auto *NewBD = BindingDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitBindingDecl()
1604 SmallVector<BindingDecl*, 16> NewBindings; in VisitDecompositionDecl()
1605 BindingDecl *OldBindingPack = nullptr; in VisitDecompositionDecl()
1613 NewBindings.push_back(cast<BindingDecl>(VisitBindingDecl(OldBD))); in VisitDecompositionDecl()
1615 ArrayRef<BindingDecl*> NewBindingArray = NewBindings; in VisitDecompositionDecl()
1626 BindingDecl *NewBindingPack = *llvm::find_if( in VisitDecompositionDecl()
1627 Bindings, [](BindingDecl *D) -> bool { return D->isParameterPack(); }); in VisitDecompositionDecl()
1629 llvm::ArrayRef<BindingDecl *> OldDecls = in VisitDecompositionDecl()
1631 llvm::ArrayRef<BindingDecl *> NewDecls = in VisitDecompositionDecl()
[all …]
H A DSemaTemplateVariadic.cpp780 else if (isa<BindingDecl>(ND)) { in CheckParameterPacksForExpansion()
785 Expr *BindingExpr = cast<BindingDecl>(B)->getBinding(); in CheckParameterPacksForExpansion()
H A DSemaDeclCXX.cpp102 if (!isa<VarDecl, BindingDecl>(Decl)) in VisitDeclRefExpr()
874 SmallVector<BindingDecl*, 8> Bindings; in ActOnDecompositionDeclarator()
903 auto *BD = BindingDecl::Create(Context, DC, B.NameLoc, B.Name, QT); in ActOnDecompositionDeclarator()
970 ArrayRef<BindingDecl *> Bindings, in CheckBindingsCount()
973 Bindings, [](BindingDecl *D) -> bool { return D->isParameterPack(); }); in CheckBindingsCount()
987 BindingDecl *BPack = *BindingWithPackItr; in CheckBindingsCount()
992 BindingDecl *NestedBD = BindingDecl::Create( in CheckBindingsCount()
1016 Sema &S, ArrayRef<BindingDecl *> Bindings, ValueDecl *Src, in checkSimpleDecomposition()
1041 ArrayRef<BindingDecl *> Bindings, in checkArrayLikeDecomposition()
1055 static bool checkArrayDecomposition(Sema &S, ArrayRef<BindingDecl*> Bindings, in checkArrayDecomposition()
[all …]
H A DSemaExpr.cpp250 if (isa<BindingDecl>(D)) { in DiagnoseUseOfDecl()
2375 bool RefersToCapturedVariable = isa<VarDecl, BindingDecl>(D) && in BuildDeclRefExpr()
2419 if (const auto *BD = dyn_cast<BindingDecl>(D)) in BuildDeclRefExpr()
13501 BindingDecl *Binding = dyn_cast<BindingDecl>(Value); in isReferenceToNonConstCapture()
14592 } else if (!isa<FunctionDecl, NonTypeTemplateParmDecl, BindingDecl, in CheckAddressOfOperand()
18663 unsigned ValueKind = isa<BindingDecl>(var) ? 1 : 0; in diagnoseUncapturableValueReferenceOrBinding()
18743 assert((isa<VarDecl, BindingDecl>(Var)) && in isVariableCapturable()
18801 if (isa<BindingDecl>(Var)) { in isVariableCapturable()
19309 if (isa<BindingDecl>(Var)) { in tryCaptureVariable()
20118 BindingDecl *BD, Expr *E) { in DoMarkBindingDeclReferenced()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DUSRGeneration.cpp99 void VisitBindingDecl(const BindingDecl *D);
362 void USRGenerator::VisitBindingDecl(const BindingDecl *D) { in VisitBindingDecl()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h364 extern const internal::VariadicDynCastAllOfMatcher<Decl, BindingDecl>
8313 AST_MATCHER_P(BindingDecl, forDecomposition, internal::Matcher<ValueDecl>, in AST_MATCHER_P() argument
8339 internal::Matcher<BindingDecl>, InnerMatcher) { in AST_MATCHER_P2() argument
8362 AST_MATCHER_P(DecompositionDecl, hasAnyBinding, internal::Matcher<BindingDecl>, in AST_MATCHER_P() argument
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h700 llvm::DILocalVariable *EmitDeclare(const BindingDecl *decl, llvm::Value *AI,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp380 void VisitBindingDecl(BindingDecl *BD);
1753 BDs[I] = readDeclAs<BindingDecl>(); in VisitDecompositionDecl()
1758 void ASTDeclReader::VisitBindingDecl(BindingDecl *BD) { in VisitBindingDecl()
4129 D = BindingDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
H A DASTWriterDecl.cpp120 void VisitBindingDecl(BindingDecl *D);
1430 void ASTDeclWriter::VisitBindingDecl(BindingDecl *D) { in VisitBindingDecl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp854 assert(D.getType()->isReferenceType() || isa<BindingDecl>(D) || in setStorageLocation()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp762 const internal::VariadicDynCastAllOfMatcher<Decl, BindingDecl> bindingDecl;
H A DASTMatchFinder.cpp1486 } else if (isa<BindingDecl>(DeclNode)) { in TraverseDecl()

12