Home
last modified time | relevance | path

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

12345678910>>...18

/freebsd-12-stable/contrib/llvm-project/clang/lib/Serialization/
DASTCommon.cpp288 case Decl::TranslationUnit: in getDefinitiveDeclContext()
289 case Decl::ExternCContext: in getDefinitiveDeclContext()
290 case Decl::Namespace: in getDefinitiveDeclContext()
291 case Decl::LinkageSpec: in getDefinitiveDeclContext()
292 case Decl::Export: in getDefinitiveDeclContext()
296 case Decl::Enum: in getDefinitiveDeclContext()
297 case Decl::Record: in getDefinitiveDeclContext()
304 case Decl::CXXRecord: in getDefinitiveDeclContext()
305 case Decl::ClassTemplateSpecialization: in getDefinitiveDeclContext()
306 case Decl::ClassTemplatePartialSpecialization: in getDefinitiveDeclContext()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DDeclBase.cpp63 void Decl::updateOutOfDate(IdentifierInfo &II) const { in updateOutOfDate()
68 static_assert(alignof(Decl) >= alignof(DERIVED##Decl), \
73 void *Decl::operator new(std::size_t Size, const ASTContext &Context, in operator new()
77 static_assert(sizeof(unsigned) * 2 >= alignof(Decl), in operator new()
93 void *Decl::operator new(std::size_t Size, const ASTContext &Ctx, in operator new()
103 llvm::offsetToAlignment(sizeof(Module *), llvm::Align(alignof(Decl))); in operator new()
108 Parent ? cast<Decl>(Parent)->getOwningModule() : nullptr; in operator new()
114 Module *Decl::getOwningModuleSlow() const { in getOwningModuleSlow()
119 bool Decl::hasLocalOwningModuleStorage() const { in hasLocalOwningModuleStorage()
123 const char *Decl::getDeclKindName() const { in getDeclKindName()
[all …]
DComment.cpp223 Decl::Kind K = CommentDecl->getKind(); in fill()
228 case Decl::Function: in fill()
229 case Decl::CXXMethod: in fill()
230 case Decl::CXXConstructor: in fill()
231 case Decl::CXXDestructor: in fill()
232 case Decl::CXXConversion: { in fill()
244 if (K == Decl::CXXMethod || K == Decl::CXXConstructor || in fill()
245 K == Decl::CXXDestructor || K == Decl::CXXConversion) { in fill()
252 case Decl::ObjCMethod: { in fill()
262 case Decl::FunctionTemplate: { in fill()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DASTImporter.h42 class Decl; variable
86 llvm::SmallVector<Decl*, 2> getCanonicalForwardRedeclChain(Decl* D);
93 using NonEquivalentDeclSet = llvm::DenseSet<std::pair<Decl *, Decl *>>;
177 using VecTy = llvm::SmallVector<Decl *, 32>;
179 void push(Decl *D) { in push()
217 llvm::SmallDenseMap<Decl *, int, 32> Aux;
231 llvm::SmallDenseMap<Decl *, SavedImportPathsForOneDecl, 32>;
254 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
262 llvm::DenseMap<Decl *, ImportError> ImportDeclErrors;
266 llvm::DenseMap<Decl *, Decl *> ImportedFromDecls;
[all …]
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);
DDeclBase.h89 class alignas(8) Decl {
245 llvm::PointerIntPair<Decl *, 2, ModuleOwnershipKind> NextInContextAndBits;
361 auto *D = cast<Decl>(DC); in getModuleOwnershipKindForChildOf()
373 Decl() = delete;
374 Decl(const Decl&) = delete;
375 Decl(Decl &&) = delete;
376 Decl &operator=(const Decl&) = delete;
377 Decl &operator=(Decl&&) = delete;
380 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl() function
390 Decl(Kind DK, EmptyShell Empty) in Decl() function
[all …]
DDeclGroup.h23 class Decl; variable
25 class DeclGroup final : private llvm::TrailingObjects<DeclGroup, Decl *> {
31 DeclGroup(unsigned numdecls, Decl** decls);
36 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
40 Decl*& operator[](unsigned i) {
42 return getTrailingObjects<Decl *>()[i];
45 Decl* const& operator[](unsigned i) const {
47 return getTrailingObjects<Decl *>()[i];
56 Decl* D = nullptr;
64 explicit DeclGroupRef(Decl* d) : D(d) {} in DeclGroupRef()
[all …]
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()
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-12-stable/contrib/llvm-project/clang/lib/Frontend/
DInterfaceStubFunctionsConsumer.cpp169 case Decl::Kind::Namespace: in HandleNamedDecl()
172 case Decl::Kind::CXXRecord: in HandleNamedDecl()
175 case Decl::Kind::ClassTemplateSpecialization: in HandleNamedDecl()
179 case Decl::Kind::ClassTemplate: in HandleNamedDecl()
182 case Decl::Kind::FunctionTemplate: in HandleNamedDecl()
186 case Decl::Kind::Record: in HandleNamedDecl()
187 case Decl::Kind::Typedef: in HandleNamedDecl()
188 case Decl::Kind::Enum: in HandleNamedDecl()
189 case Decl::Kind::EnumConstant: in HandleNamedDecl()
190 case Decl::Kind::TemplateTypeParm: in HandleNamedDecl()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Index/
DIndexSymbol.cpp44 static void checkForIBOutlets(const Decl *D, SymbolPropertySet &PropSet) { in checkForIBOutlets()
53 bool index::isFunctionLocalSymbol(const Decl *D) { in isFunctionLocalSymbol()
85 SymbolInfo index::getSymbolInfo(const Decl *D) { in getSymbolInfo()
170 case Decl::Import: in getSymbolInfo()
173 case Decl::Typedef: in getSymbolInfo()
175 case Decl::Function: in getSymbolInfo()
178 case Decl::Field: in getSymbolInfo()
179 case Decl::IndirectField: in getSymbolInfo()
187 case Decl::EnumConstant: in getSymbolInfo()
189 case Decl::ObjCInterface: in getSymbolInfo()
[all …]
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,
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,
[all …]
DIndexingContext.cpp21 static bool isGeneratedDecl(const Decl *D) { in isGeneratedDecl()
28 bool IndexingContext::shouldIndex(const Decl *D) { in shouldIndex()
52 bool IndexingContext::handleDecl(const Decl *D, in handleDecl()
58 bool IndexingContext::handleDecl(const Decl *D, SourceLocation Loc, in handleDecl()
65 const Decl *OrigD = D; in handleDecl()
69 return handleDeclOccurrence(D, Loc, /*IsRef=*/false, cast<Decl>(DC), in handleDecl()
80 const Decl *RefD) { in handleReference()
150 bool IndexingContext::isTemplateImplicitInstantiation(const Decl *D) { in isTemplateImplicitInstantiation()
167 if (const auto *Parent = dyn_cast<Decl>(D->getDeclContext())) in isTemplateImplicitInstantiation()
186 bool IndexingContext::shouldIgnoreIfImplicit(const Decl *D) { in shouldIgnoreIfImplicit()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
DDeclNodes.td12 def Decl : DeclNode<?, "", 1>;
13 def TranslationUnit : DeclNode<Decl>, DeclContext;
14 def PragmaComment : DeclNode<Decl>;
15 def PragmaDetectMismatch : DeclNode<Decl>;
16 def ExternCContext : DeclNode<Decl>, DeclContext;
17 def Named : DeclNode<Decl, "named declarations", 1>;
92 def LinkageSpec : DeclNode<Decl>, DeclContext;
93 def Export : DeclNode<Decl>, DeclContext;
94 def ObjCPropertyImpl : DeclNode<Decl>;
95 def FileScopeAsm : DeclNode<Decl>;
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
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);
170 ClangASTMetadata *GetDeclMetadata(const clang::Decl *decl);
221 DeclOrigin(clang::ASTContext *_ctx, clang::Decl *_decl) in DeclOrigin()
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;
[all …]
DClangASTImporter.cpp66 clang::Decl *ClangASTImporter::CopyDecl(clang::ASTContext *dst_ast, in CopyDecl()
67 clang::Decl *decl) { in CopyDecl()
78 llvm::Expected<clang::Decl *> result = delegate_sp->Import(decl); in CopyDecl()
113 llvm::DenseMap<clang::Decl *, Backup> m_backups;
115 void OverrideOne(clang::Decl *decl) { in OverrideOne()
127 clang::Decl *decl, clang::DeclContext *base, in ChainPassesThrough()
128 clang::DeclContext *(clang::Decl::*contextFromDecl)(), in ChainPassesThrough()
140 clang::Decl *GetEscapedChild(clang::Decl *decl, in GetEscapedChild()
145 if (!ChainPassesThrough(decl, base, &clang::Decl::getDeclContext, in GetEscapedChild()
147 !ChainPassesThrough(decl, base, &clang::Decl::getLexicalDeclContext, in GetEscapedChild()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DFunctionSummary.h30 using SetOfDecls = std::deque<Decl *>;
31 using SetOfConstDecls = llvm::DenseSet<const Decl *>;
57 using MapTy = llvm::DenseMap<const Decl *, FunctionSummary>;
61 MapTy::iterator findOrInsertSummary(const Decl *D) { in findOrInsertSummary()
66 using KVPair = std::pair<const Decl *, FunctionSummary>; 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()
96 void markVisitedBasicBlock(unsigned ID, const Decl* D, unsigned TotalIDs) { in markVisitedBasicBlock()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/tools/lldb-instr/
DInstrument.cpp167 bool VisitCXXMethodDecl(CXXMethodDecl *Decl) { in VisitCXXMethodDecl() argument
170 if (ShouldSkip(Decl)) in VisitCXXMethodDecl()
175 Stmt *Body = Decl->getBody(); in VisitCXXMethodDecl()
192 for (auto *P : Decl->parameters()) { in VisitCXXMethodDecl()
206 CXXRecordDecl *Record = Decl->getParent(); in VisitCXXMethodDecl()
207 QualType ReturnType = Decl->getReturnType(); in VisitCXXMethodDecl()
215 Decl->getNameAsString(), ParamTypesStr, ParamNamesStr); in VisitCXXMethodDecl()
217 } else if (isa<CXXConstructorDecl>(Decl)) { in VisitCXXMethodDecl()
226 Decl->getNameAsString(), ParamTypesStr, Decl->isStatic(), in VisitCXXMethodDecl()
227 Decl->isConst()); in VisitCXXMethodDecl()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
DUSRLocFinder.cpp171 const Decl *Context;
182 bool VisitNamedDecl(const NamedDecl *Decl) { in VisitNamedDecl() argument
184 if (llvm::isa<UsingDecl>(Decl)) in VisitNamedDecl()
188 if (llvm::isa<CXXDestructorDecl>(Decl)) in VisitNamedDecl()
191 if (Decl->isImplicit()) in VisitNamedDecl()
194 if (isInUSRSet(Decl)) { in VisitNamedDecl()
197 if (const auto* TAT = dyn_cast<TypeAliasTemplateDecl>(Decl)) in VisitNamedDecl()
198 Decl = TAT->getTemplatedDecl(); in VisitNamedDecl()
200 auto StartLoc = Decl->getLocation(); in VisitNamedDecl()
216 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitMemberExpr() local
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
DTemplate.h33 class Decl; variable
281 llvm::SmallDenseMap<const Decl *,
282 llvm::PointerUnion<Decl *, DeclArgumentPack *>, 4>;
384 const Decl *D = I->first; in cloneScopes()
385 llvm::PointerUnion<Decl *, DeclArgumentPack *> &Stored = in cloneScopes()
387 if (I->second.is<Decl *>()) { in cloneScopes()
388 Stored = I->second.get<Decl *>(); in cloneScopes()
420 llvm::PointerUnion<Decl *, DeclArgumentPack *> *
421 findInstantiationOf(const Decl *D);
423 void InstantiatedLocal(const Decl *D, Decl *Inst);
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp726 const internal::VariadicDynCastAllOfMatcher<Decl, TranslationUnitDecl>
728 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl> typedefDecl;
729 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
731 const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasDecl> typeAliasDecl;
732 const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasTemplateDecl>
734 const internal::VariadicAllOfMatcher<Decl> decl;
735 const internal::VariadicDynCastAllOfMatcher<Decl, DecompositionDecl> decompositionDecl;
736 const internal::VariadicDynCastAllOfMatcher<Decl, BindingDecl> bindingDecl;
737 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>
739 const internal::VariadicDynCastAllOfMatcher<Decl, NamedDecl> namedDecl;
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/
DIssueHash.cpp88 static std::string GetEnclosingDeclContextSignature(const Decl *D) { in GetEnclosingDeclContextSignature()
96 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()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Serialization/
DASTWriter.h176 DeclOrType(Decl *D) : Stored(D), IsType(false) {} in DeclOrType()
187 Decl *getDecl() const { in getDecl()
189 return static_cast<Decl *>(Stored); in getDecl()
212 llvm::DenseMap<const Decl *, serialization::DeclID> DeclIDs;
239 void associateDeclWithFile(const Decl *D, serialization::DeclID);
341 llvm::DenseMap<const Decl *, unsigned> AnonymousDeclarationNumbers;
348 const Decl *Dcl;
358 DeclUpdate(unsigned Kind, const Decl *Dcl) : Kind(Kind), Dcl(Dcl) {} in DeclUpdate()
369 const Decl *getDecl() const { return Dcl; } in getDecl()
382 using DeclUpdateMap = llvm::MapVector<const Decl *, UpdateRecord>;
[all …]
/freebsd-12-stable/contrib/byacc/test/
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);
208 extern Scope * start_fn_def(Scope *scope, Decl *fn_decl);
209 extern void finish_fn_def(Decl *fn_decl, Code *block);
216 extern Decl * declare(Scope *scope, char *id, Type *type);
217 extern Decl * make_pointer(Decl *decl, Type *type);
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h141 using DeclarationMatcher = internal::Matcher<Decl>;
180 extern const internal::VariadicDynCastAllOfMatcher<Decl, TranslationUnitDecl>
192 extern const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl>
204 extern const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
216 extern const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasDecl>
226 extern const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasTemplateDecl>
244 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
265 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
290 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, in AST_POLYMORPHIC_MATCHER_REGEX() argument
313 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument
[all …]

12345678910>>...18