Home
last modified time | relevance | path

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

12345678910>>...18

/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp292 case Decl::Export: in getDefinitiveDeclContext()
296 case Decl::Enum: in getDefinitiveDeclContext()
297 case Decl::Record: in getDefinitiveDeclContext()
316 case Decl::Block: in getDefinitiveDeclContext()
355 case Decl::Enum: in isRedeclarableDeclKind()
370 case Decl::Var: in isRedeclarableDeclKind()
377 case Decl::Empty: in isRedeclarableDeclKind()
382 case Decl::Label: in isRedeclarableDeclKind()
388 case Decl::Field: in isRedeclarableDeclKind()
396 case Decl::Using: in isRedeclarableDeclKind()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp68 static_assert(alignof(Decl) >= alignof(DERIVED##Decl), \
325 Decl::~Decl() = default;
913 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
932 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
938 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
945 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
998 static Decl::Kind getKind(const Decl *D) { return D->getKind(); } in getKind()
1045 Decl *Decl::getNonClosureContext() { in getNonClosureContext()
1224 case Decl::Export: in getPrimaryContext()
1225 case Decl::Block: in getPrimaryContext()
[all …]
H A DComment.cpp228 case Decl::Function: in fill()
229 case Decl::CXXMethod: in fill()
244 if (K == Decl::CXXMethod || K == Decl::CXXConstructor || in fill()
245 K == Decl::CXXDestructor || K == Decl::CXXConversion) { in fill()
291 case Decl::Record: in fill()
292 case Decl::CXXRecord: in fill()
295 case Decl::Var: in fill()
296 case Decl::Field: in fill()
298 case Decl::ObjCIvar: in fill()
319 case Decl::Namespace: in fill()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporter.h42 class Decl; variable
254 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
266 llvm::DenseMap<Decl *, Decl *> ImportedFromDecls;
294 virtual Expected<Decl *> ImportImpl(Decl *From);
377 llvm::Expected<Decl *> Import(Decl *FromD);
378 llvm::Expected<const Decl *> Import(const Decl *FromD) { in Import()
385 Decl *GetAlreadyImportedOrNull(const Decl *FromD) const;
572 virtual void Imported(Decl *From, Decl *To) {} in Imported()
574 void RegisterImportedDecl(Decl *FromD, Decl *ToD);
579 Decl *MapImported(Decl *From, Decl *To);
[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;
74 llvm::DenseSet<std::pair<Decl *, Decl *>> &NonEquivalentDecls,
91 bool IsEquivalent(Decl *D1, Decl *D2);
134 bool CheckCommonEquivalence(Decl *D1, Decl *D2);
139 bool CheckKindSpecificEquivalence(Decl *D1, Decl *D2);
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 DDeclBase.h89 class alignas(8) Decl {
373 Decl() = delete;
374 Decl(const Decl&) = delete;
375 Decl(Decl &&) = delete;
376 Decl &operator=(const Decl&) = delete;
377 Decl &operator=(Decl&&) = delete;
399 virtual ~Decl();
929 Decl *Starter;
1198 inline bool declaresSameEntity(const Decl *D1, const Decl *D2) { in declaresSameEntity()
1324 return Decl;
[all …]
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-13.1/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-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DDeclNodes.td12 def Decl : DeclNode<?, "", 1>;
14 def PragmaComment : DeclNode<Decl>;
15 def PragmaDetectMismatch : DeclNode<Decl>;
95 def FileScopeAsm : DeclNode<Decl>;
96 def AccessSpec : DeclNode<Decl>;
97 def Friend : DeclNode<Decl>;
99 def StaticAssert : DeclNode<Decl>;
103 def Import : DeclNode<Decl>;
105 def OMPAllocate : DeclNode<Decl>;
106 def OMPRequires : DeclNode<Decl>;
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DIndexSymbol.cpp170 case Decl::Import: in getSymbolInfo()
173 case Decl::Typedef: in getSymbolInfo()
175 case Decl::Function: in getSymbolInfo()
178 case Decl::Field: in getSymbolInfo()
242 case Decl::ObjCIvar: in getSymbolInfo()
328 case Decl::Using: in getSymbolInfo()
337 case Decl::Binding: in getSymbolInfo()
353 case Decl::Enum: in getSymbolInfo()
354 case Decl::Record: in getSymbolInfo()
360 case Decl::ParmVar: in getSymbolInfo()
[all …]
H A DIndexingContext.h21 class Decl; variable
52 bool shouldIndex(const Decl *D);
68 static bool isTemplateImplicitInstantiation(const Decl *D);
73 bool handleDecl(const Decl *D, SourceLocation Loc,
84 const Decl *RefD = nullptr);
97 bool indexDecl(const Decl *D);
121 bool indexTopLevelDecl(const Decl *D);
125 bool shouldIgnoreIfImplicit(const Decl *D);
129 bool handleDeclOccurrence(const Decl *D, SourceLocation Loc,
130 bool IsRef, const Decl *Parent,
[all …]
/freebsd-13.1/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 …]
H A DClangASTImporter.cpp113 llvm::DenseMap<clang::Decl *, Backup> m_backups;
115 void OverrideOne(clang::Decl *decl) { in OverrideOne()
140 clang::Decl *GetEscapedChild(clang::Decl *decl, in GetEscapedChild()
171 void Override(clang::Decl *decl) { in Override()
285 void NewDeclImported(clang::Decl *from, clang::Decl *to) override { in NewDeclImported()
341 clang::Decl *result; in DeportDecl()
637 llvm::Expected<Decl *> imported_or_err = in CompleteAndFetchChildren()
811 llvm::Expected<Decl *>
881 for (clang::Decl *candidate : lr) { in ImportImpl()
926 clang::Decl *to, clang::Decl *from) { in ImportDefinitionTo()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h30 using SetOfDecls = std::deque<Decl *>;
31 using SetOfConstDecls = llvm::DenseSet<const Decl *>;
61 MapTy::iterator findOrInsertSummary(const Decl *D) { in findOrInsertSummary()
73 void markMayInline(const Decl *D) { in markMayInline()
79 void markShouldNotInline(const Decl *D) { in markShouldNotInline()
85 void markReachedMaxBlockCount(const Decl *D) { in markReachedMaxBlockCount()
89 Optional<bool> mayInline(const Decl *D) { in mayInline()
107 unsigned getNumVisitedBasicBlocks(const Decl* D) { in getNumVisitedBasicBlocks()
114 unsigned getNumTimesInlined(const Decl* D) { in getNumTimesInlined()
121 void bumpNumTimesInlined(const Decl* D) { in bumpNumTimesInlined()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp170 if (ShouldSkip(Decl)) in VisitCXXMethodDecl()
175 Stmt *Body = Decl->getBody(); in VisitCXXMethodDecl()
192 for (auto *P : Decl->parameters()) { in VisitCXXMethodDecl()
226 Decl->getNameAsString(), ParamTypesStr, Decl->isStatic(), in VisitCXXMethodDecl()
227 Decl->isConst()); in VisitCXXMethodDecl()
232 Decl->isStatic(), Decl->isConst()); in VisitCXXMethodDecl()
251 Visitor.TraverseDecl(Decl); in VisitCXXMethodDecl()
275 if (Decl == Decl->getCanonicalDecl()) in ShouldSkip()
279 Stmt *Body = Decl->getBody(); in ShouldSkip()
289 if (Decl->isVariadic()) in ShouldSkip()
[all …]
/freebsd-13.1/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()
312 Decl = ED; in VisitDeclRefExpr()
328 if (isInUSRSet(Decl) && in VisitDeclRefExpr()
332 Decl, in VisitDeclRefExpr()
503 bool isInUSRSet(const Decl *Decl) const { in isInUSRSet()
521 StringRef PrevName, Decl *Decl) { in getOccurrencesOfUSRs() argument
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DTemplate.h33 class Decl; variable
281 llvm::SmallDenseMap<const Decl *,
384 const Decl *D = I->first; in cloneScopes()
387 if (I->second.is<Decl *>()) { in cloneScopes()
388 Stored = I->second.get<Decl *>(); in cloneScopes()
421 findInstantiationOf(const Decl *D);
423 void InstantiatedLocal(const Decl *D, Decl *Inst);
460 bool isLocalPackExpansion(const Decl *D);
497 Decl *Visit ## DERIVED ## Decl(DERIVED ## Decl *D);
534 Decl *VisitFunctionDecl(FunctionDecl *D,
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp729 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
734 const internal::VariadicAllOfMatcher<Decl> decl;
737 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>
748 const internal::VariadicDynCastAllOfMatcher<Decl,
752 Decl, ClassTemplatePartialSpecializationDecl>
754 const internal::VariadicDynCastAllOfMatcher<Decl, DeclaratorDecl>
757 const internal::VariadicDynCastAllOfMatcher<Decl, AccessSpecDecl>
782 const internal::VariadicDynCastAllOfMatcher<Decl, EnumConstantDecl>
784 const internal::VariadicDynCastAllOfMatcher<Decl, TagDecl> tagDecl;
819 const internal::VariadicDynCastAllOfMatcher<Decl, ObjCMethodDecl>
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DIssueHash.cpp96 case Decl::Namespace: in GetEnclosingDeclContextSignature()
97 case Decl::Record: in GetEnclosingDeclContextSignature()
98 case Decl::CXXRecord: in GetEnclosingDeclContextSignature()
99 case Decl::Enum: in GetEnclosingDeclContextSignature()
102 case Decl::CXXConstructor: in GetEnclosingDeclContextSignature()
103 case Decl::CXXDestructor: in GetEnclosingDeclContextSignature()
104 case Decl::CXXConversion: in GetEnclosingDeclContextSignature()
105 case Decl::CXXMethod: in GetEnclosingDeclContextSignature()
106 case Decl::Function: in GetEnclosingDeclContextSignature()
109 case Decl::ObjCMethod: in GetEnclosingDeclContextSignature()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTWriter.h187 Decl *getDecl() const { in getDecl()
189 return static_cast<Decl *>(Stored); in getDecl()
348 const Decl *Dcl;
369 const Decl *getDecl() const { return Dcl; } in getDecl()
388 using FirstLatestDeclMap = llvm::DenseMap<Decl *, Decl *>;
432 llvm::DenseMap<const Decl *, const Decl *> FirstLocalDeclCache;
542 void WriteDecl(ASTContext &Context, Decl *D);
629 const Decl *getFirstLocalDecl(const Decl *D);
634 bool IsLocalDecl(const Decl *D) { in IsLocalDecl()
646 serialization::DeclID GetDeclRef(const Decl *D);
[all …]
/freebsd-13.1/contrib/byacc/test/
H A Dbtyacc_demo.y25 typedef struct Decl { struct
29 } Decl; typedef
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-13.1/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()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h141 using DeclarationMatcher = internal::Matcher<Decl>;
461 Decl, ClassTemplateSpecializationDecl>
480 Decl, ClassTemplatePartialSpecializationDecl>
751 return (Decl != nullptr && in AST_MATCHER_P()
757 AST_MATCHER(Decl, isImplicit) { in AST_MATCHER() argument
4122 const Decl *DeclNode = Node.getDecl(); in AST_MATCHER_P()
4857 return N < Decl->param_size() && Decl->getParamDecl(N) == &Node; in AST_MATCHER_P()
4859 return N < Decl->param_size() && Decl->getParamDecl(N) == &Node; in AST_MATCHER_P()
4861 return N < Decl->param_size() && Decl->getParamDecl(N) == &Node; in AST_MATCHER_P()
7011 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
[all …]

12345678910>>...18