Home
last modified time | relevance | path

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

12345678910>>...15

/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTCommon.cpp266 case Decl::Export: in getDefinitiveDeclContext()
270 case Decl::Enum: in getDefinitiveDeclContext()
271 case Decl::Record: in getDefinitiveDeclContext()
290 case Decl::Block: in getDefinitiveDeclContext()
329 case Decl::Enum: in isRedeclarableDeclKind()
344 case Decl::Var: in isRedeclarableDeclKind()
351 case Decl::Empty: in isRedeclarableDeclKind()
356 case Decl::Label: in isRedeclarableDeclKind()
362 case Decl::Field: in isRedeclarableDeclKind()
368 case Decl::Using: in isRedeclarableDeclKind()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDeclBase.cpp68 static_assert(alignof(Decl) >= alignof(DERIVED##Decl), \
293 Decl::~Decl() = default;
868 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
887 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
893 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
900 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
954 static Decl::Kind getKind(const Decl *D) { return D->getKind(); } in getKind()
999 Decl *Decl::getNonClosureContext() { in getNonClosureContext()
1163 case Decl::Export: in getPrimaryContext()
1164 case Decl::Block: in getPrimaryContext()
[all …]
H A DComment.cpp214 case Decl::Function: in fill()
215 case Decl::CXXMethod: in fill()
230 if (K == Decl::CXXMethod || K == Decl::CXXConstructor || in fill()
231 K == Decl::CXXDestructor || K == Decl::CXXConversion) { in fill()
277 case Decl::Record: in fill()
278 case Decl::CXXRecord: in fill()
281 case Decl::Var: in fill()
282 case Decl::Field: in fill()
284 case Decl::ObjCIvar: in fill()
305 case Decl::Namespace: in fill()
[all …]
H A DQualTypeNames.cpp53 const ASTContext &Ctx, const Decl *decl,
268 const ASTContext &Ctx, const Decl *Decl, in createNestedNameSpecifierForScopeOf() argument
270 assert(Decl); in createNestedNameSpecifierForScopeOf()
290 Decl = *(ClassTempl->spec_begin()); in createNestedNameSpecifierForScopeOf()
291 Outer = dyn_cast<NamedDecl>(Decl); in createNestedNameSpecifierForScopeOf()
292 OuterNS = dyn_cast<NamespaceDecl>(Decl); in createNestedNameSpecifierForScopeOf()
324 Decl *Decl = nullptr; in createNestedNameSpecifierForScopeOf() local
327 Decl = TDT->getDecl(); in createNestedNameSpecifierForScopeOf()
329 Decl = TagDeclType->getDecl(); in createNestedNameSpecifierForScopeOf()
333 Decl = TypePtr->getAsCXXRecordDecl(); in createNestedNameSpecifierForScopeOf()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DASTImporter.h39 class Decl; variable
79 llvm::SmallVector<Decl*, 2> getCanonicalForwardRedeclChain(Decl* D);
117 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
218 llvm::Expected<Decl *> Import_New(Decl *FromD);
219 llvm::Expected<Decl *> Import_New(const Decl *FromD) { in Import_New()
223 Decl *Import(Decl *FromD);
224 Decl *Import(const Decl *FromD) { in Import()
231 Decl *GetAlreadyImportedOrNull(const Decl *FromD) const;
425 virtual Decl *Imported(Decl *From, Decl *To) { return To; } in Imported()
428 Decl *MapImported(Decl *From, Decl *To);
[all …]
H A DASTStructuralEquivalence.h28 class Decl; variable
49 llvm::DenseMap<Decl *, Decl *> TentativeEquivalences;
53 std::deque<Decl *> DeclsToCheck;
57 llvm::DenseSet<std::pair<Decl *, Decl *>> &NonEquivalentDecls;
76 llvm::DenseSet<std::pair<Decl *, Decl *>> &NonEquivalentDecls,
93 bool IsEquivalent(Decl *D1, Decl *D2);
125 bool CheckCommonEquivalence(Decl *D1, Decl *D2);
130 bool CheckKindSpecificEquivalence(Decl *D1, Decl *D2);
H A DDeclBase.h87 class alignas(8) Decl {
387 virtual ~Decl();
897 Decl *Current = nullptr;
898 Decl *Starter;
1158 inline bool declaresSameEntity(const Decl *D1, const Decl *D2) { in declaresSameEntity()
1171 const Decl *TheDecl;
1737 static std::pair<Decl *, Decl *>
1802 case Decl::Block: in isFunctionOrMethod()
1803 case Decl::Captured: in isFunctionOrMethod()
1804 case Decl::ObjCMethod: in isFunctionOrMethod()
[all …]
H A DDeclGroup.h24 class Decl; variable
41 Decl*& operator[](unsigned i) {
43 return getTrailingObjects<Decl *>()[i];
48 return getTrailingObjects<Decl *>()[i];
57 Decl* D = nullptr;
65 explicit DeclGroupRef(Decl* d) : D(d) {} in DeclGroupRef()
77 using iterator = Decl **;
78 using const_iterator = Decl * const *;
84 Decl *getSingleDecl() { in getSingleDecl()
88 const Decl *getSingleDecl() const { in getSingleDecl()
[all …]
H A DStmtIterator.h24 class Decl; variable
39 Decl **DGI;
42 Decl **DGE;
46 StmtIteratorBase(Decl **dgi, Decl **dge);
71 bool HandleDecl(Decl* D);
88 StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {} in StmtIteratorImpl()
128 StmtIterator(Decl** dgi, Decl** dge) in StmtIterator()
H A DDeclVisitor.h38 RetTy Visit(PTR(Decl) D) { in Visit()
41 case Decl::DERIVED: DISPATCH(DERIVED##Decl, DERIVED##Decl); in Visit()
51 RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); }
54 RetTy VisitDecl(PTR(Decl) D) { return RetTy(); } in VisitDecl()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DDeclNodes.td10 Decl Base = base;
16 def PragmaComment : Decl;
17 def PragmaDetectMismatch : Decl;
90 def FileScopeAsm : Decl;
91 def AccessSpec : Decl;
92 def Friend : Decl;
93 def FriendTemplate : Decl;
94 def StaticAssert : Decl;
98 def Import : Decl;
100 def OMPRequires : Decl;
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h31 using SetOfDecls = std::deque<Decl *>;
32 using SetOfConstDecls = llvm::DenseSet<const Decl *>;
62 MapTy::iterator findOrInsertSummary(const Decl *D) { in findOrInsertSummary()
74 void markMayInline(const Decl *D) { in markMayInline()
80 void markShouldNotInline(const Decl *D) { in markShouldNotInline()
86 void markReachedMaxBlockCount(const Decl *D) { in markReachedMaxBlockCount()
90 Optional<bool> mayInline(const Decl *D) { in mayInline()
108 unsigned getNumVisitedBasicBlocks(const Decl* D) { in getNumVisitedBasicBlocks()
115 unsigned getNumTimesInlined(const Decl* D) { in getNumTimesInlined()
122 void bumpNumTimesInlined(const Decl* D) { in bumpNumTimesInlined()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DTemplate.h34 class Decl; variable
239 llvm::SmallDenseMap<const Decl *,
342 const Decl *D = I->first; in cloneScopes()
345 if (I->second.is<Decl *>()) { in cloneScopes()
346 Stored = I->second.get<Decl *>(); in cloneScopes()
379 findInstantiationOf(const Decl *D);
381 void InstantiatedLocal(const Decl *D, Decl *Inst);
452 Decl *Visit ## DERIVED ## Decl(DERIVED ## Decl *D);
480 Decl *VisitFunctionDecl(FunctionDecl *D,
482 Decl *VisitDecl(Decl *D);
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp171 const Decl *Context;
184 if (llvm::isa<UsingDecl>(Decl)) in VisitNamedDecl()
191 if (Decl->isImplicit()) in VisitNamedDecl()
194 if (isInUSRSet(Decl)) { in VisitNamedDecl()
219 if (isInUSRSet(Decl)) { in VisitMemberExpr()
294 Decl = ED; in VisitDeclRefExpr()
310 if (isInUSRSet(Decl) && in VisitDeclRefExpr()
314 Decl, in VisitDeclRefExpr()
487 bool isInUSRSet(const Decl *Decl) const { in isInUSRSet()
505 StringRef PrevName, Decl *Decl) { in getOccurrencesOfUSRs() argument
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp556 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
561 const internal::VariadicAllOfMatcher<Decl> decl;
562 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>
573 const internal::VariadicDynCastAllOfMatcher<Decl,
577 Decl, ClassTemplatePartialSpecializationDecl>
579 const internal::VariadicDynCastAllOfMatcher<Decl, DeclaratorDecl>
582 const internal::VariadicDynCastAllOfMatcher<Decl, AccessSpecDecl>
602 const internal::VariadicDynCastAllOfMatcher<Decl, EnumConstantDecl>
607 const internal::VariadicDynCastAllOfMatcher<Decl, VarDecl> varDecl;
638 const internal::VariadicDynCastAllOfMatcher<Decl, ObjCMethodDecl>
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Index/
H A DIndexingContext.h22 class Decl; variable
53 bool shouldIndex(const Decl *D);
65 static bool isTemplateImplicitInstantiation(const Decl *D);
70 bool handleDecl(const Decl *D, SourceLocation Loc,
81 const Decl *RefD = nullptr);
94 bool indexDecl(const Decl *D);
118 bool indexTopLevelDecl(const Decl *D);
122 bool shouldIgnoreIfImplicit(const Decl *D);
124 bool handleDeclOccurrence(const Decl *D, SourceLocation Loc,
125 bool IsRef, const Decl *Parent,
[all …]
H A DIndexSymbol.cpp166 case Decl::Import: in getSymbolInfo()
169 case Decl::Typedef: in getSymbolInfo()
171 case Decl::Function: in getSymbolInfo()
174 case Decl::Field: in getSymbolInfo()
182 case Decl::EnumConstant: in getSymbolInfo()
195 case Decl::ObjCProtocol: in getSymbolInfo()
237 case Decl::ObjCIvar: in getSymbolInfo()
242 case Decl::Namespace: in getSymbolInfo()
268 case Decl::CXXMethod: { in getSymbolInfo()
307 case Decl::TypeAlias: in getSymbolInfo()
[all …]
H A DIndexingContext.cpp21 static bool isGeneratedDecl(const Decl *D) { in isGeneratedDecl()
28 bool IndexingContext::shouldIndex(const Decl *D) { in shouldIndex()
44 bool IndexingContext::handleDecl(const Decl *D, in handleDecl()
57 const Decl *OrigD = D; in handleDecl()
72 const Decl *RefD) { in handleReference()
172 bool IndexingContext::shouldIgnoreIfImplicit(const Decl *D) { in shouldIgnoreIfImplicit()
187 getDeclContextForTemplateInstationPattern(const Decl *D) { in getDeclContextForTemplateInstationPattern()
196 static const Decl *adjustTemplateImplicitInstantiation(const Decl *D) { in adjustTemplateImplicitInstantiation()
260 static const Decl *adjustParent(const Decl *Parent) { in adjustParent()
263 for (;; Parent = cast<Decl>(Parent->getDeclContext())) { in adjustParent()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Symbol/
H A DClangASTImporter.h109 clang::Decl *decl);
115 clang::Decl *DeportDecl(clang::ASTContext *dst_ctx,
135 void CompleteDecl(clang::Decl *decl);
147 bool ResolveDeclOrigin(const clang::Decl *decl, clang::Decl **original_decl, in ResolveDeclOrigin()
160 void SetDeclOrigin(const clang::Decl *decl, clang::Decl *original_decl);
214 DeclOrigin(clang::ASTContext *_ctx, clang::Decl *_decl) in DeclOrigin()
230 clang::Decl *decl;
261 void ImportDefinitionTo(clang::Decl *to, clang::Decl *from);
263 clang::Decl *Imported(clang::Decl *from, clang::Decl *to) override;
265 clang::Decl *GetOriginalDecl(clang::Decl *To) override;
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
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-12.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-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h145 using DeclarationMatcher = internal::Matcher<Decl>;
420 Decl, ClassTemplateSpecializationDecl>
439 Decl, ClassTemplatePartialSpecializationDecl>
548 AST_MATCHER(Decl, isPublic) { in AST_MATCHER() argument
564 AST_MATCHER(Decl, isProtected) { in AST_MATCHER() argument
580 AST_MATCHER(Decl, isPrivate) { in AST_MATCHER() argument
657 return (Decl != nullptr && in AST_MATCHER_P()
663 AST_MATCHER(Decl, isImplicit) { in AST_MATCHER() argument
3292 const Decl *DeclNode = Node.getDecl(); in AST_MATCHER_P()
5785 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Symbol/
H A DClangASTImporter.cpp102 clang::Decl *result = minion_sp->Import(decl); in CopyDecl()
138 std::map<clang::Decl *, Backup> m_backups;
140 void OverrideOne(clang::Decl *decl) { in OverrideOne()
152 clang::Decl *decl, clang::DeclContext *base, in ChainPassesThrough()
165 clang::Decl *GetEscapedChild(clang::Decl *decl, in GetEscapedChild()
186 for (clang::Decl *decl : context->decls()) { in GetEscapedChild()
196 void Override(clang::Decl *decl) { in Override()
519 void ClangASTImporter::CompleteDecl(clang::Decl *decl) { in CompleteDecl()
939 clang::Decl *ClangASTImporter::Minion::Imported(clang::Decl *from, in Imported()
1102 clang::Decl *ClangASTImporter::Minion::GetOriginalDecl(clang::Decl *To) { in GetOriginalDecl()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Serialization/
H A DASTWriter.h188 Decl *getDecl() const { in getDecl()
190 return static_cast<Decl *>(Stored); in getDecl()
343 const Decl *Dcl;
364 const Decl *getDecl() const { return Dcl; } in getDecl()
383 using FirstLatestDeclMap = llvm::DenseMap<Decl *, Decl *>;
427 llvm::DenseMap<const Decl *, const Decl *> FirstLocalDeclCache;
536 void WriteDecl(ASTContext &Context, Decl *D);
613 const Decl *getFirstLocalDecl(const Decl *D);
618 bool IsLocalDecl(const Decl *D) { in IsLocalDecl()
634 serialization::DeclID getDeclID(const Decl *D);
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/
H A DCallGraph.h33 class Decl; variable
46 llvm::DenseMap<const Decl *, std::unique_ptr<CallGraphNode>>;
62 void addToCallGraph(Decl *D) { in addToCallGraph()
67 static bool includeInGraph(const Decl *D);
70 CallGraphNode *getNode(const Decl *) const;
74 CallGraphNode *getOrInsertNode(Decl *);
138 void addNodeForDecl(Decl *D, bool IsGlobal);
141 CallGraphNode *allocateNewNode(Decl *);
150 Decl *FD;
156 CallGraphNode(Decl *D) : FD(D) {} in CallGraphNode()
[all …]

12345678910>>...15