Home
last modified time | relevance | path

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

12345678910>>...19

/netbsd/external/apache2/llvm/dist/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 …]
/netbsd/external/apache2/llvm/dist/clang/lib/AST/
H A DDeclBase.cpp68 static_assert(alignof(Decl) >= alignof(DERIVED##Decl), \
325 Decl::~Decl() = default;
909 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
928 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
934 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
941 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
994 static Decl::Kind getKind(const Decl *D) { return D->getKind(); } in getKind()
1041 Decl *Decl::getNonClosureContext() { in getNonClosureContext()
1221 case Decl::Export: in getPrimaryContext()
1222 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 …]
H A DQualTypeNames.cpp50 const ASTContext &Ctx, const Decl *decl,
265 const ASTContext &Ctx, const Decl *Decl, in createNestedNameSpecifierForScopeOf() argument
267 assert(Decl); 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()
326 Decl = TagDeclType->getDecl(); in createNestedNameSpecifierForScopeOf()
330 Decl = TypePtr->getAsCXXRecordDecl(); in createNestedNameSpecifierForScopeOf()
[all …]
/netbsd/external/apache2/llvm/dist/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 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 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 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/external/apache2/llvm/dist/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 …]
/netbsd/external/apache2/llvm/dist/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()
332 case Decl::Binding: in getSymbolInfo()
348 case Decl::Enum: in getSymbolInfo()
349 case Decl::Record: in getSymbolInfo()
355 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 …]
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()
65 const Decl *OrigD = D; in handleDecl()
80 const Decl *RefD) { in handleReference()
186 bool IndexingContext::shouldIgnoreIfImplicit(const Decl *D) { in shouldIgnoreIfImplicit()
201 getDeclContextForTemplateInstationPattern(const Decl *D) { in getDeclContextForTemplateInstationPattern()
210 static const Decl *adjustTemplateImplicitInstantiation(const Decl *D) { in adjustTemplateImplicitInstantiation()
279 static const Decl *adjustParent(const Decl *Parent) { in adjustParent()
282 for (;; Parent = cast<Decl>(Parent->getDeclContext())) { in adjustParent()
[all …]
/netbsd/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DDeclNodes.td12 def Decl : DeclNode<?, "", 1>;
14 def PragmaComment : DeclNode<Decl>;
15 def PragmaDetectMismatch : DeclNode<Decl>;
92 def FileScopeAsm : DeclNode<Decl>;
93 def AccessSpec : DeclNode<Decl>;
94 def Friend : DeclNode<Decl>;
96 def StaticAssert : DeclNode<Decl>;
100 def Import : DeclNode<Decl>;
102 def OMPAllocate : DeclNode<Decl>;
103 def OMPRequires : DeclNode<Decl>;
[all …]
/netbsd/external/apache2/llvm/dist/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 …]
/netbsd/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 *>;
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 …]
/netbsd/external/apache2/llvm/dist/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 …]
/netbsd/external/apache2/llvm/dist/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 …]
/netbsd/external/apache2/llvm/dist/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 …]
H A DASTReader.h72 class Decl; variable
483 std::vector<Decl *> DeclsLoaded;
502 Decl *D;
599 llvm::MapVector<Decl *, uint64_t,
1060 Decl *D;
1067 Decl *getDecl() { return D; } in getDecl()
1099 Decl *D;
1251 Decl *getKeyDeclaration(Decl *D) { in getKeyDeclaration()
1261 const Decl *getKeyDeclaration(const Decl *D) { in getKeyDeclaration()
1367 Decl *getMostRecentExistingDecl(Decl *D);
[all …]
/netbsd/external/apache2/llvm/dist/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 …]
/netbsd/external/bsd/byacc/dist/test/
H A Dbtyacc_demo.y27 typedef struct Decl { struct
31 } Decl; typedef
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);
211 extern void finish_fn_def(Decl *fn_decl, Code *block);
219 extern Decl * make_pointer(Decl *decl, Type *type);
220 extern Decl * make_array(Type *type, Expr *expr);
221 extern Decl * build_function(Decl *decl, Decl_List *dlist, Type *type);
[all …]
/netbsd/external/apache2/llvm/dist/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
4110 const Decl *DeclNode = Node.getDecl(); in AST_MATCHER_P()
4845 return N < Decl->param_size() && Decl->getParamDecl(N) == &Node; in AST_MATCHER_P()
4847 return N < Decl->param_size() && Decl->getParamDecl(N) == &Node; in AST_MATCHER_P()
4849 return N < Decl->param_size() && Decl->getParamDecl(N) == &Node; in AST_MATCHER_P()
6999 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
[all …]
/netbsd/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