Home
last modified time | relevance | path

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

12345678910>>...21

/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h50 bool VisitVarDecl(const VarDecl *Decl);
52 bool VisitFunctionDecl(const FunctionDecl *Decl);
54 bool VisitEnumDecl(const EnumDecl *Decl);
56 bool WalkUpFromFunctionDecl(const FunctionDecl *Decl);
58 bool WalkUpFromRecordDecl(const RecordDecl *Decl);
60 bool WalkUpFromCXXRecordDecl(const CXXRecordDecl *Decl);
62 bool WalkUpFromCXXMethodDecl(const CXXMethodDecl *Decl);
65 const ClassTemplateSpecializationDecl *Decl);
68 const ClassTemplatePartialSpecializationDecl *Decl);
70 bool WalkUpFromVarTemplateDecl(const VarTemplateDecl *Decl);
[all …]
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp304 case Decl::TranslationUnit: in getDefinitiveDeclContext()
305 case Decl::ExternCContext: in getDefinitiveDeclContext()
306 case Decl::Namespace: in getDefinitiveDeclContext()
307 case Decl::LinkageSpec: in getDefinitiveDeclContext()
308 case Decl::Export: in getDefinitiveDeclContext()
312 case Decl::Enum: in getDefinitiveDeclContext()
313 case Decl::Record: in getDefinitiveDeclContext()
320 case Decl::CXXRecord: in getDefinitiveDeclContext()
321 case Decl::ClassTemplateSpecialization: in getDefinitiveDeclContext()
322 case Decl::ClassTemplatePartialSpecialization: in getDefinitiveDeclContext()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporter.h41 class Decl; variable
58 llvm::SmallVector<Decl*, 2> getCanonicalForwardRedeclChain(Decl* D);
65 using NonEquivalentDeclSet = llvm::DenseSet<std::pair<Decl *, Decl *>>;
149 using VecTy = llvm::SmallVector<Decl *, 32>;
151 void push(Decl *D) { in push()
189 llvm::SmallDenseMap<Decl *, int, 32> Aux;
203 llvm::SmallDenseMap<Decl *, SavedImportPathsForOneDecl, 32>;
226 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
234 llvm::DenseMap<Decl *, ASTImportError> ImportDeclErrors;
238 llvm::DenseMap<Decl *, Decl *> ImportedFromDecls;
[all …]
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 DDeclBase.h86 class alignas(8) Decl {
249 llvm::PointerIntPair<Decl *, 3, ModuleOwnershipKind> NextInContextAndBits;
376 auto *D = cast<Decl>(DC); in getModuleOwnershipKindForChildOf()
388 Decl() = delete;
389 Decl(const Decl&) = delete;
390 Decl(Decl &&) = delete;
391 Decl &operator=(const Decl&) = delete;
392 Decl &operator=(Decl&&) = delete;
395 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl() function
405 Decl(Kind DK, EmptyShell Empty) in Decl() function
[all …]
H A DASTImporterSharedState.h40 llvm::DenseMap<Decl *, ASTImportError> ImportErrors;
43 llvm::DenseSet<Decl *> NewDecls;
57 void addDeclToLookup(Decl *D) { in addDeclToLookup()
63 void removeDeclFromLookup(Decl *D) { in removeDeclFromLookup()
69 std::optional<ASTImportError> getImportDeclErrorIfAny(Decl *ToD) const { in getImportDeclErrorIfAny()
77 void setImportDeclError(Decl *To, ASTImportError Error) { in setImportDeclError()
81 bool isNewDecl(const Decl *ToD) const { return NewDecls.count(ToD); } in isNewDecl()
83 void markAsNewDecl(Decl *ToD) { NewDecls.insert(ToD); } in markAsNewDecl()
H A DASTMutationListener.h22 class Decl; variable
56 virtual void AddedVisibleDecl(const DeclContext *DC, const Decl *D) {} in AddedVisibleDecl()
59 virtual void AddedCXXImplicitMember(const CXXRecordDecl *RD, const Decl *D) {} in AddedCXXImplicitMember()
116 virtual void DeclarationMarkedUsed(const Decl *D) {} in DeclarationMarkedUsed()
122 virtual void DeclarationMarkedOpenMPThreadPrivate(const Decl *D) {} in DeclarationMarkedOpenMPThreadPrivate()
129 virtual void DeclarationMarkedOpenMPDeclareTarget(const Decl *D, in DeclarationMarkedOpenMPDeclareTarget()
135 virtual void DeclarationMarkedOpenMPAllocate(const Decl *D, const Attr *A) {} in DeclarationMarkedOpenMPAllocate()
160 virtual void AddedManglingNumber(const Decl *D, unsigned Number) {} in AddedManglingNumber()
167 virtual void AddedStaticLocalNumbers(const Decl *D, unsigned Number) {} in AddedStaticLocalNumbers()
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()
/freebsd/contrib/llvm-project/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(uint64_t) >= alignof(Decl), "Decl won't be misaligned"); in operator new()
92 void *Decl::operator new(std::size_t Size, const ASTContext &Ctx, in operator new()
102 llvm::offsetToAlignment(sizeof(Module *), llvm::Align(alignof(Decl))); in operator new()
107 Parent ? cast<Decl>(Parent)->getOwningModule() : nullptr; in operator new()
113 GlobalDeclID Decl::getGlobalID() const { in getGlobalID()
121 unsigned Decl::getOwningModuleID() const { in getOwningModuleID()
129 void Decl::setOwningModuleID(unsigned ID) { in setOwningModuleID()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp170 case Decl::Kind::Namespace: in HandleNamedDecl()
173 case Decl::Kind::CXXRecord: in HandleNamedDecl()
176 case Decl::Kind::ClassTemplateSpecialization: in HandleNamedDecl()
180 case Decl::Kind::ClassTemplate: in HandleNamedDecl()
183 case Decl::Kind::FunctionTemplate: in HandleNamedDecl()
187 case Decl::Kind::Record: in HandleNamedDecl()
188 case Decl::Kind::Typedef: in HandleNamedDecl()
189 case Decl::Kind::Enum: in HandleNamedDecl()
190 case Decl::Kind::EnumConstant: in HandleNamedDecl()
191 case Decl::Kind::TemplateTypeParm: in HandleNamedDecl()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaSwift.h24 class Decl; variable
32 SwiftNameAttr *mergeNameAttr(Decl *D, const SwiftNameAttr &SNA,
35 void handleAttrAttr(Decl *D, const ParsedAttr &AL);
36 void handleAsyncAttr(Decl *D, const ParsedAttr &AL);
37 void handleBridge(Decl *D, const ParsedAttr &AL);
38 void handleError(Decl *D, const ParsedAttr &AL);
39 void handleAsyncError(Decl *D, const ParsedAttr &AL);
40 void handleName(Decl *D, const ParsedAttr &AL);
41 void handleAsyncName(Decl *D, const ParsedAttr &AL);
42 void handleNewType(Decl *D, const ParsedAttr &AL);
[all …]
H A DSemaHLSL.h34 Decl *ActOnStartBuffer(Scope *BufferScope, bool CBuffer, SourceLocation KwLoc,
37 void ActOnFinishBuffer(Decl *Dcl, SourceLocation RBrace);
38 HLSLNumThreadsAttr *mergeNumThreadsAttr(Decl *D,
41 HLSLShaderAttr *mergeShaderAttr(Decl *D, const AttributeCommonInfo &AL,
44 mergeParamModifierAttr(Decl *D, const AttributeCommonInfo &AL,
48 void CheckSemanticAnnotation(FunctionDecl *EntryPoint, const Decl *Param,
55 void handleNumThreadsAttr(Decl *D, const ParsedAttr &AL);
56 void handleSV_DispatchThreadIDAttr(Decl *D, const ParsedAttr &AL);
57 void handlePackOffsetAttr(Decl *D, const ParsedAttr &AL);
58 void handleShaderAttr(Decl *D, const ParsedAttr &AL);
[all …]
H A DTemplate.h34 class Decl; variable
81 llvm::PointerIntPair<Decl *, 1, bool> AssociatedDeclAndFinal;
105 MultiLevelTemplateArgumentList(Decl *D, ArgList Args, bool Final) { in MultiLevelTemplateArgumentList()
164 std::pair<Decl *, bool> getAssociatedDecl(unsigned Depth) const { in getAssociatedDecl()
210 void addOuterTemplateArguments(Decl *AssociatedDecl, ArgList Args, in addOuterTemplateArguments()
237 void replaceInnermostTemplateArguments(Decl *AssociatedDecl, ArgList Args) { in replaceInnermostTemplateArguments()
376 llvm::SmallDenseMap<const Decl *,
377 llvm::PointerUnion<Decl *, DeclArgumentPack *>, 4>;
479 const Decl *D = I->first; in cloneScopes()
480 llvm::PointerUnion<Decl *, DeclArgumentPack *> &Stored = in cloneScopes()
[all …]
H A DAttr.h34 inline bool isFuncOrMethodForAttrSubject(const Decl *D) { in isFuncOrMethodForAttrSubject()
40 inline bool isFunctionOrMethodOrBlockForAttrSubject(const Decl *D) { in isFunctionOrMethodOrBlockForAttrSubject()
46 inline bool hasDeclarator(const Decl *D) { in hasDeclarator()
55 inline bool hasFunctionProto(const Decl *D) { in hasFunctionProto()
64 inline unsigned getFunctionOrMethodNumParams(const Decl *D) { in getFunctionOrMethodNumParams()
72 inline const ParmVarDecl *getFunctionOrMethodParam(const Decl *D, in getFunctionOrMethodParam()
83 inline QualType getFunctionOrMethodParamType(const Decl *D, unsigned Idx) { in getFunctionOrMethodParamType()
92 inline SourceRange getFunctionOrMethodParamRange(const Decl *D, unsigned Idx) { in getFunctionOrMethodParamRange()
98 inline QualType getFunctionOrMethodResultType(const Decl *D) { in getFunctionOrMethodResultType()
104 inline SourceRange getFunctionOrMethodResultSourceRange(const Decl *D) { in getFunctionOrMethodResultSourceRange()
[all …]
H A DSemaObjC.h64 Decl *Parm, Stmt *Body);
84 SourceLocation lAngleLoc, ArrayRef<Decl *> protocols,
92 ArrayRef<Decl *> Protocols, ArrayRef<SourceLocation> ProtocolLocs,
96 QualType BuildObjCTypeParamType(const ObjCTypeParamDecl *Decl,
153 void AddCFAuditedAttribute(Decl *D);
256 ArrayRef<Decl *> typeParams,
265 Decl *const *ProtoRefs, unsigned NumProtoRefs,
275 void ActOnTypedefedProtocols(SmallVectorImpl<Decl *> &ProtocolRefs,
280 Decl *ActOnCompatibilityAlias(SourceLocation AtCompatibilityAliasLoc,
292 SourceLocation ProtocolLoc, Decl *const *ProtoRefNames,
[all …]
H A DSemaAMDGPU.h37 void addAMDGPUFlatWorkGroupSizeAttr(Decl *D, const AttributeCommonInfo &CI,
47 void addAMDGPUWavesPerEUAttr(Decl *D, const AttributeCommonInfo &CI,
57 void addAMDGPUMaxNumWorkGroupsAttr(Decl *D, const AttributeCommonInfo &CI,
60 void handleAMDGPUWavesPerEUAttr(Decl *D, const ParsedAttr &AL);
61 void handleAMDGPUNumSGPRAttr(Decl *D, const ParsedAttr &AL);
62 void handleAMDGPUNumVGPRAttr(Decl *D, const ParsedAttr &AL);
63 void handleAMDGPUMaxNumWorkGroupsAttr(Decl *D, const ParsedAttr &AL);
64 void handleAMDGPUFlatWorkGroupSizeAttr(Decl *D, const ParsedAttr &AL);
/freebsd/contrib/llvm-project/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>;
93 def ImplicitConceptSpecialization : DeclNode<Decl>;
94 def LinkageSpec : DeclNode<Decl>, DeclContext;
95 def Export : DeclNode<Decl>, DeclContext;
96 def ObjCPropertyImpl : DeclNode<Decl>;
[all …]
/freebsd/contrib/llvm-project/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()
86 SymbolInfo index::getSymbolInfo(const Decl *D) { in getSymbolInfo()
171 case Decl::Import: in getSymbolInfo()
174 case Decl::Typedef: in getSymbolInfo()
176 case Decl::Function: in getSymbolInfo()
179 case Decl::Field: in getSymbolInfo()
180 case Decl::IndirectField: in getSymbolInfo()
188 case Decl::EnumConstant: in getSymbolInfo()
190 case Decl::ObjCInterface: in getSymbolInfo()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h29 using SetOfDecls = std::deque<Decl *>;
30 using SetOfConstDecls = llvm::DenseSet<const Decl *>;
56 using MapTy = llvm::DenseMap<const Decl *, FunctionSummary>;
60 MapTy::iterator findOrInsertSummary(const Decl *D) { in findOrInsertSummary()
65 using KVPair = std::pair<const Decl *, FunctionSummary>; in findOrInsertSummary()
72 void markMayInline(const Decl *D) { in markMayInline()
78 void markShouldNotInline(const Decl *D) { in markShouldNotInline()
84 void markReachedMaxBlockCount(const Decl *D) { in markReachedMaxBlockCount()
88 std::optional<bool> mayInline(const Decl *D) { in mayInline()
95 void markVisitedBasicBlock(unsigned ID, const Decl* D, unsigned TotalIDs) { in markVisitedBasicBlock()
[all …]
/freebsd/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp30 bool VisitCXXMethodDecl(CXXMethodDecl *Decl) { in VisitCXXMethodDecl() argument
33 if (ShouldSkip(Decl)) in VisitCXXMethodDecl()
42 if (!Decl->isStatic()) in VisitCXXMethodDecl()
44 for (auto *P : Decl->parameters()) in VisitCXXMethodDecl()
56 Stmt *Body = Decl->getBody(); in VisitCXXMethodDecl()
85 bool ShouldSkip(CXXMethodDecl *Decl) { in ShouldSkip() argument
87 if (!MyRewriter.getSourceMgr().isInMainFile(Decl->getBeginLoc())) in ShouldSkip()
93 if (Decl == Decl->getCanonicalDecl()) in ShouldSkip()
97 Stmt *Body = Decl->getBody(); in ShouldSkip()
102 AccessSpecifier AS = Decl->getAccess(); in ShouldSkip()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.h98 clang::Decl *CopyDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
111 clang::Decl *DeportDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
190 void SetDeclOrigin(const clang::Decl *decl, clang::Decl *original_decl);
192 ClangASTMetadata *GetDeclMetadata(const clang::Decl *decl);
243 DeclOrigin(clang::ASTContext *_ctx, clang::Decl *_decl) in DeclOrigin()
262 clang::Decl *decl = nullptr;
270 virtual void NewDeclImported(clang::Decl *from, clang::Decl *to) = 0;
333 void ImportDefinitionTo(clang::Decl *to, clang::Decl *from);
335 void Imported(clang::Decl *from, clang::Decl *to) override;
337 clang::Decl *GetOriginalDecl(clang::Decl *To) override;
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DRecord.cpp15 Record::Record(const RecordDecl *Decl, BaseList &&SrcBases, in Record() argument
18 : Decl(Decl), Bases(std::move(SrcBases)), Fields(std::move(SrcFields)), in Record()
19 BaseSize(BaseSize), VirtualSize(VirtualSize), IsUnion(Decl->isUnion()) { in Record()
21 VirtualBases.push_back({ V.Decl, V.Offset + BaseSize, V.Desc, V.R }); in Record()
24 BaseMap[B.Decl] = &B; in Record()
26 FieldMap[F.Decl] = &F; in Record()
28 VirtualBaseMap[V.Decl] = &V; in Record()
34 Decl->getNameForDiagnostic(OS, Decl->getASTContext().getPrintingPolicy(), in getName()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DIssueHash.cpp89 static std::string GetEnclosingDeclContextSignature(const Decl *D) { in GetEnclosingDeclContextSignature()
97 case Decl::Namespace: in GetEnclosingDeclContextSignature()
98 case Decl::Record: in GetEnclosingDeclContextSignature()
99 case Decl::CXXRecord: in GetEnclosingDeclContextSignature()
100 case Decl::Enum: in GetEnclosingDeclContextSignature()
103 case Decl::CXXConstructor: in GetEnclosingDeclContextSignature()
104 case Decl::CXXDestructor: in GetEnclosingDeclContextSignature()
105 case Decl::CXXConversion: in GetEnclosingDeclContextSignature()
106 case Decl::CXXMethod: in GetEnclosingDeclContextSignature()
107 case Decl::Function: in GetEnclosingDeclContextSignature()
[all …]
/freebsd/contrib/byacc/test/
H A 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/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTWriter.h183 DeclOrType(Decl *D) : Stored(D), IsType(false) {} in DeclOrType()
194 Decl *getDecl() const { in getDecl()
196 return static_cast<Decl *>(Stored); in getDecl()
229 llvm::DenseMap<const Decl *, LocalDeclID> DeclIDs;
234 llvm::SmallPtrSet<const Decl *, 32> PredefinedDecls;
260 void associateDeclWithFile(const Decl *D, LocalDeclID);
362 llvm::DenseMap<const Decl *, unsigned> AnonymousDeclarationNumbers;
376 const Decl *Dcl;
386 DeclUpdate(unsigned Kind, const Decl *Dcl) : Kind(Kind), Dcl(Dcl) {} in DeclUpdate()
397 const Decl *getDecl() const { return Dcl; } in getDecl()
[all …]

12345678910>>...21