Home
last modified time | relevance | path

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

12345678910>>...19

/netbsd-src/external/apache2/llvm/dist/clang/lib/Serialization/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A 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 …]
H A 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 …]
H A DQualTypeNames.cpp50 const ASTContext &Ctx, const Decl *decl,
186 static NestedNameSpecifier *createOuterNNS(const ASTContext &Ctx, const Decl *D, in createOuterNNS()
265 const ASTContext &Ctx, const Decl *Decl, in createNestedNameSpecifierForScopeOf() argument
267 assert(Decl); in createNestedNameSpecifierForScopeOf()
269 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf()
287 Decl = *(ClassTempl->spec_begin()); in createNestedNameSpecifierForScopeOf()
288 Outer = dyn_cast<NamedDecl>(Decl); in createNestedNameSpecifierForScopeOf()
289 OuterNS = dyn_cast<NamespaceDecl>(Decl); in createNestedNameSpecifierForScopeOf()
321 Decl *Decl = nullptr; in createNestedNameSpecifierForScopeOf() local
324 Decl = TDT->getDecl(); in createNestedNameSpecifierForScopeOf()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A 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 …]
H A 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 …]
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
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 …]
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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Index/
H A 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 …]
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,
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 …]
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/
H A 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>;
89 def LinkageSpec : DeclNode<Decl>, DeclContext;
90 def Export : DeclNode<Decl>, DeclContext;
91 def ObjCPropertyImpl : DeclNode<Decl>;
92 def FileScopeAsm : DeclNode<Decl>;
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Serialization/
H A 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 …]
H A DASTReader.h72 class Decl; variable
483 std::vector<Decl *> DeclsLoaded;
502 Decl *D;
508 PendingUpdateRecord(serialization::GlobalDeclID ID, Decl *D, in PendingUpdateRecord()
527 llvm::SmallMapVector<Decl *, FunctionDecl *, 4> PendingExceptionSpecUpdates;
541 llvm::DenseMap<Decl*, llvm::SmallVector<NamedDecl*, 2>>
546 using LETemporaryKey = std::pair<Decl *, unsigned>;
596 llvm::SmallPtrSet<Decl *, 4> PendingDefinitions;
599 llvm::MapVector<Decl *, uint64_t,
600 llvm::SmallDenseMap<Decl *, unsigned, 4>,
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A 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 …]
/netbsd-src/external/bsd/byacc/dist/test/
H A Dbtyacc_demo.y27 typedef struct Decl { struct
31 } Decl; argument
43 Decl *decl;
97 | opt_scope ID CLCL [ Decl *d = lookup($1, $2);
103 [ Decl *d = lookup($1, $2);
208 extern Decl * lookup(Scope *scope, char *id);
210 extern Scope * start_fn_def(Scope *scope, Decl *fn_decl);
211 extern void finish_fn_def(Decl *fn_decl, Code *block);
218 extern Decl * declare(Scope *scope, char *id, Type *type);
219 extern Decl * make_pointer(Decl *decl, Type *type);
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/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>>...19