Home
last modified time | relevance | path

Searched refs:Decl (Results 1 – 25 of 505) sorted by relevance

12345678910>>...21

/freebsd-14.2/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h123 bool shouldDeclBeIncluded(const Decl *Decl) const;
125 const RawComment *fetchRawCommentForDecl(const Decl *Decl) const;
245 if (Decl->getASTContext().getTemplateOrSpecializationInfo(Decl) && in VisitVarDecl()
436 Decl); in WalkUpFromClassTemplatePartialSpecializationDecl()
614 if (isa<CXXConstructorDecl>(Decl) || isa<CXXDestructorDecl>(Decl)) in VisitCXXMethodDecl()
778 Decl); in VisitClassTemplateSpecializationDecl()
849 Decl)) in VisitVarTemplateDecl()
859 if (Decl->getDeclContext()->getDeclKind() == Decl::CXXRecord) in VisitVarTemplateDecl()
864 Template(Decl), isInSystemHeader(Decl)); in VisitVarTemplateDecl()
894 Decl); in VisitVarTemplateSpecializationDecl()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp300 case Decl::Export: in getDefinitiveDeclContext()
304 case Decl::Enum: in getDefinitiveDeclContext()
305 case Decl::Record: in getDefinitiveDeclContext()
324 case Decl::Block: in getDefinitiveDeclContext()
363 case Decl::Enum: in isRedeclarableDeclKind()
378 case Decl::Var: in isRedeclarableDeclKind()
385 case Decl::Empty: in isRedeclarableDeclKind()
390 case Decl::Label: in isRedeclarableDeclKind()
396 case Decl::Field: in isRedeclarableDeclKind()
405 case Decl::Using: in isRedeclarableDeclKind()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporter.h41 class Decl; variable
226 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
238 llvm::DenseMap<Decl *, Decl *> ImportedFromDecls;
261 llvm::Error ImportAttrs(Decl *ToD, Decl *FromD);
267 virtual Expected<Decl *> ImportImpl(Decl *From);
350 llvm::Expected<Decl *> Import(Decl *FromD);
351 llvm::Expected<const Decl *> Import(const Decl *FromD) { in Import()
361 Decl *GetAlreadyImportedOrNull(const Decl *FromD) const;
548 virtual void Imported(Decl *From, Decl *To) {} in Imported()
550 void RegisterImportedDecl(Decl *FromD, Decl *ToD);
[all …]
H A DASTStructuralEquivalence.h27 class Decl; variable
47 std::queue<std::pair<Decl *, Decl *>> DeclsToCheck;
51 llvm::DenseSet<std::pair<Decl *, Decl *>> VisitedDecls;
55 llvm::DenseSet<std::pair<Decl *, Decl *>> &NonEquivalentDecls;
77 llvm::DenseSet<std::pair<Decl *, Decl *>> &NonEquivalentDecls,
95 bool IsEquivalent(Decl *D1, Decl *D2);
138 bool CheckCommonEquivalence(Decl *D1, Decl *D2);
143 bool CheckKindSpecificEquivalence(Decl *D1, Decl *D2);
H A DDeclBase.h85 class alignas(8) Decl {
387 Decl() = delete;
388 Decl(const Decl&) = delete;
389 Decl(Decl &&) = delete;
390 Decl &operator=(const Decl&) = delete;
391 Decl &operator=(Decl&&) = delete;
413 virtual ~Decl();
1006 Decl *Starter;
1285 inline bool declaresSameEntity(const Decl *D1, const Decl *D2) { in declaresSameEntity()
1411 return Decl;
[all …]
H A DDeclGroup.h23 class Decl; variable
40 Decl*& operator[](unsigned i) {
42 return getTrailingObjects<Decl *>()[i];
47 return getTrailingObjects<Decl *>()[i];
56 Decl* D = nullptr;
64 explicit DeclGroupRef(Decl* d) : D(d) {} in DeclGroupRef()
76 using iterator = Decl **;
77 using const_iterator = Decl * const *;
83 Decl *getSingleDecl() { in getSingleDecl()
87 const Decl *getSingleDecl() const { in getSingleDecl()
[all …]
H A DASTImporterSharedState.h40 llvm::DenseMap<Decl *, ASTImportError> ImportErrors;
43 llvm::DenseSet<Decl *> NewDecls;
57 void addDeclToLookup(Decl *D) { in addDeclToLookup()
63 void removeDeclFromLookup(Decl *D) { in removeDeclFromLookup()
69 std::optional<ASTImportError> getImportDeclErrorIfAny(Decl *ToD) const { in getImportDeclErrorIfAny()
77 void setImportDeclError(Decl *To, ASTImportError Error) { in setImportDeclError()
81 bool isNewDecl(const Decl *ToD) const { return NewDecls.count(ToD); } in isNewDecl()
83 void markAsNewDecl(Decl *ToD) { NewDecls.insert(ToD); } in markAsNewDecl()
H A DStmtIterator.h23 class Decl; variable
38 Decl **DGI;
41 Decl **DGE;
45 StmtIteratorBase(Decl **dgi, Decl **dge);
70 bool HandleDecl(Decl* D);
90 StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {} in StmtIteratorImpl()
131 StmtIterator(Decl** dgi, Decl** dge) in StmtIterator()
H A DDeclVisitor.h37 RetTy Visit(PTR(Decl) D) { in Visit()
40 case Decl::DERIVED: DISPATCH(DERIVED##Decl, DERIVED##Decl); in Visit()
50 RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); }
53 RetTy VisitDecl(PTR(Decl) D) { return RetTy(); } in VisitDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp68 static_assert(alignof(Decl) >= alignof(DERIVED##Decl), \
202 void Decl::add(Kind k) { in add()
334 Decl::~Decl() = default;
1003 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
1016 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
1022 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
1110 static Decl::Kind getKind(const Decl *D) { return D->getKind(); } in getKind()
1174 Decl *Decl::getNonClosureContext() { in getNonClosureContext()
1359 case Decl::Export: in getPrimaryContext()
1360 case Decl::Block: in getPrimaryContext()
[all …]
H A DComment.cpp229 case Decl::Function: in fill()
230 case Decl::CXXMethod: in fill()
245 if (K == Decl::CXXMethod || K == Decl::CXXConstructor || in fill()
246 K == Decl::CXXDestructor || K == Decl::CXXConversion) { in fill()
298 case Decl::Record: in fill()
299 case Decl::CXXRecord: in fill()
302 case Decl::Var: in fill()
309 case Decl::Field: in fill()
311 case Decl::ObjCIvar: in fill()
333 case Decl::Typedef: in fill()
[all …]
H A DTemplateName.cpp84 Decl *SubstTemplateTemplateParmPackStorage::getAssociatedDecl() const { in getAssociatedDecl()
122 if (auto *ND = Storage.dyn_cast<Decl *>()) { in getKind()
146 if (Decl *TemplateOrUsing = Storage.dyn_cast<Decl *>()) { in getAsTemplateDecl()
209 if (Decl *D = Storage.dyn_cast<Decl *>()) in getAsUsingShadowDecl()
218 TemplateDecl *Decl = getAsTemplateDecl(); in getNameToSubstitute() local
221 if (!Decl) in getNameToSubstitute()
226 Decl = cast<TemplateDecl>(Decl->getMostRecentDecl()); in getNameToSubstitute()
227 while (Decl->getFriendObjectKind()) { in getNameToSubstitute()
228 Decl = cast<TemplateDecl>(Decl->getPreviousDecl()); in getNameToSubstitute()
229 assert(Decl && "all declarations of template are friends"); in getNameToSubstitute()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp169 case Decl::Kind::Namespace: in HandleNamedDecl()
172 case Decl::Kind::CXXRecord: in HandleNamedDecl()
186 case Decl::Kind::Record: in HandleNamedDecl()
187 case Decl::Kind::Typedef: in HandleNamedDecl()
188 case Decl::Kind::Enum: in HandleNamedDecl()
194 case Decl::Kind::Using: in HandleNamedDecl()
197 case Decl::Kind::TypeAlias: in HandleNamedDecl()
209 case Decl::Kind::Var: { in HandleNamedDecl()
221 case Decl::Kind::ParmVar: in HandleNamedDecl()
225 case Decl::Kind::Function: in HandleNamedDecl()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DDeclNodes.td12 def Decl : DeclNode<?, "", 1>;
14 def PragmaComment : DeclNode<Decl>;
97 def FileScopeAsm : DeclNode<Decl>;
98 def TopLevelStmt : DeclNode<Decl>;
99 def AccessSpec : DeclNode<Decl>;
100 def Friend : DeclNode<Decl>;
102 def StaticAssert : DeclNode<Decl>;
105 def Import : DeclNode<Decl>;
107 def OMPAllocate : DeclNode<Decl>;
108 def OMPRequires : DeclNode<Decl>;
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Index/
H A DIndexSymbol.cpp171 case Decl::Import: in getSymbolInfo()
174 case Decl::Typedef: in getSymbolInfo()
176 case Decl::Function: in getSymbolInfo()
179 case Decl::Field: in getSymbolInfo()
329 case Decl::Using: in getSymbolInfo()
338 case Decl::Binding: in getSymbolInfo()
353 case Decl::Enum: in getSymbolInfo()
354 case Decl::Record: in getSymbolInfo()
360 case Decl::ParmVar: in getSymbolInfo()
361 case Decl::Var: in getSymbolInfo()
[all …]
H A DIndexingContext.h21 class Decl; variable
52 bool shouldIndex(const Decl *D);
68 static bool isTemplateImplicitInstantiation(const Decl *D);
70 bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(),
73 bool handleDecl(const Decl *D, SourceLocation Loc,
95 bool indexDecl(const Decl *D);
119 bool indexTopLevelDecl(const Decl *D);
123 bool shouldIgnoreIfImplicit(const Decl *D);
127 bool handleDeclOccurrence(const Decl *D, SourceLocation Loc,
128 bool IsRef, const Decl *Parent,
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.h97 clang::Decl *CopyDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
110 clang::Decl *DeportDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
168 void SetDeclOrigin(const clang::Decl *decl, clang::Decl *original_decl);
240 clang::Decl *decl = nullptr;
248 virtual void NewDeclImported(clang::Decl *from, clang::Decl *to) = 0;
311 void ImportDefinitionTo(clang::Decl *to, clang::Decl *from);
313 void Imported(clang::Decl *from, clang::Decl *to) override;
315 clang::Decl *GetOriginalDecl(clang::Decl *To) override;
324 llvm::Expected<clang::Decl *> ImportImpl(clang::Decl *From) override;
395 bool hasOrigin(const clang::Decl *decl) const { in hasOrigin()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h29 using SetOfDecls = std::deque<Decl *>;
30 using SetOfConstDecls = llvm::DenseSet<const Decl *>;
60 MapTy::iterator findOrInsertSummary(const Decl *D) { in findOrInsertSummary()
72 void markMayInline(const Decl *D) { in markMayInline()
78 void markShouldNotInline(const Decl *D) { in markShouldNotInline()
84 void markReachedMaxBlockCount(const Decl *D) { in markReachedMaxBlockCount()
88 std::optional<bool> mayInline(const Decl *D) { in mayInline()
106 unsigned getNumVisitedBasicBlocks(const Decl* D) { in getNumVisitedBasicBlocks()
113 unsigned getNumTimesInlined(const Decl* D) { in getNumTimesInlined()
120 void bumpNumTimesInlined(const Decl* D) { in bumpNumTimesInlined()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp171 const Decl *Context;
191 if (Decl->isImplicit()) in VisitNamedDecl()
194 if (isInUSRSet(Decl)) { in VisitNamedDecl()
219 if (isInUSRSet(Decl)) { in VisitMemberExpr()
233 if (isInUSRSet(Decl)) { in VisitDesignatedInitExpr()
313 Decl = ED; in VisitDeclRefExpr()
329 if (isInUSRSet(Decl) && in VisitDeclRefExpr()
333 Decl, in VisitDeclRefExpr()
504 bool isInUSRSet(const Decl *Decl) const { in isInUSRSet()
522 StringRef PrevName, Decl *Decl) { in getOccurrencesOfUSRs() argument
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp30 bool VisitCXXMethodDecl(CXXMethodDecl *Decl) { in VisitCXXMethodDecl() argument
33 if (ShouldSkip(Decl)) in VisitCXXMethodDecl()
42 if (!Decl->isStatic()) in VisitCXXMethodDecl()
44 for (auto *P : Decl->parameters()) in VisitCXXMethodDecl()
56 Stmt *Body = Decl->getBody(); in VisitCXXMethodDecl()
85 bool ShouldSkip(CXXMethodDecl *Decl) { in ShouldSkip() argument
93 if (Decl == Decl->getCanonicalDecl()) in ShouldSkip()
97 Stmt *Body = Decl->getBody(); in ShouldSkip()
102 AccessSpecifier AS = Decl->getAccess(); in ShouldSkip()
107 if (Decl->isVariadic()) in ShouldSkip()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DTemplate.h34 class Decl; variable
376 llvm::SmallDenseMap<const Decl *,
479 const Decl *D = I->first; in cloneScopes()
482 if (I->second.is<Decl *>()) { in cloneScopes()
483 Stored = I->second.get<Decl *>(); in cloneScopes()
516 findInstantiationOf(const Decl *D);
518 void InstantiatedLocal(const Decl *D, Decl *Inst);
555 bool isLocalPackExpansion(const Decl *D);
601 Decl *Visit ## DERIVED ## Decl(DERIVED ## Decl *D);
637 Decl *VisitFunctionDecl(FunctionDecl *D,
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp730 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
735 const internal::VariadicAllOfMatcher<Decl> decl;
738 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>
749 const internal::VariadicDynCastAllOfMatcher<Decl,
753 Decl, ClassTemplatePartialSpecializationDecl>
755 const internal::VariadicDynCastAllOfMatcher<Decl, DeclaratorDecl>
758 const internal::VariadicDynCastAllOfMatcher<Decl, AccessSpecDecl>
797 const internal::VariadicDynCastAllOfMatcher<Decl, EnumConstantDecl>
799 const internal::VariadicDynCastAllOfMatcher<Decl, TagDecl> tagDecl;
835 const internal::VariadicDynCastAllOfMatcher<Decl, ObjCMethodDecl>
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DIssueHash.cpp97 case Decl::Namespace: in GetEnclosingDeclContextSignature()
98 case Decl::Record: in GetEnclosingDeclContextSignature()
99 case Decl::CXXRecord: in GetEnclosingDeclContextSignature()
100 case Decl::Enum: in GetEnclosingDeclContextSignature()
103 case Decl::CXXConstructor: in GetEnclosingDeclContextSignature()
104 case Decl::CXXDestructor: in GetEnclosingDeclContextSignature()
105 case Decl::CXXConversion: in GetEnclosingDeclContextSignature()
106 case Decl::CXXMethod: in GetEnclosingDeclContextSignature()
107 case Decl::Function: in GetEnclosingDeclContextSignature()
110 case Decl::ObjCMethod: in GetEnclosingDeclContextSignature()
[all …]
/freebsd-14.2/contrib/byacc/test/
H A Dbtyacc_demo.y25 typedef struct Decl { struct
29 } Decl; argument
41 Decl *decl;
95 | opt_scope ID CLCL [ Decl *d = lookup($1, $2);
101 [ Decl *d = lookup($1, $2);
206 extern Decl * lookup(Scope *scope, char *id);
209 extern void finish_fn_def(Decl *fn_decl, Code *block);
217 extern Decl * make_pointer(Decl *decl, Type *type);
218 extern Decl * make_array(Type *type, Expr *expr);
219 extern Decl * build_function(Decl *decl, Decl_List *dlist, Type *type);
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DRecord.cpp14 Record::Record(const RecordDecl *Decl, BaseList &&SrcBases, in Record() argument
17 : Decl(Decl), Bases(std::move(SrcBases)), Fields(std::move(SrcFields)), in Record()
20 VirtualBases.push_back({ V.Decl, V.Offset + BaseSize, V.Desc, V.R }); in Record()
23 BaseMap[B.Decl] = &B; in Record()
25 FieldMap[F.Decl] = &F; in Record()
27 VirtualBaseMap[V.Decl] = &V; in Record()

12345678910>>...21