Home
last modified time | relevance | path

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

12345678910>>...24

/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h52 bool VisitVarDecl(const VarDecl *Decl);
54 bool VisitFunctionDecl(const FunctionDecl *Decl);
56 bool VisitEnumDecl(const EnumDecl *Decl);
58 bool WalkUpFromFunctionDecl(const FunctionDecl *Decl);
60 bool WalkUpFromRecordDecl(const RecordDecl *Decl);
62 bool WalkUpFromCXXRecordDecl(const CXXRecordDecl *Decl);
64 bool WalkUpFromCXXMethodDecl(const CXXMethodDecl *Decl);
67 const ClassTemplateSpecializationDecl *Decl);
70 const ClassTemplatePartialSpecializationDecl *Decl);
72 bool WalkUpFromVarTemplateDecl(const VarTemplateDecl *Decl);
[all …]
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp309 case Decl::TranslationUnit: in getDefinitiveDeclContext()
310 case Decl::ExternCContext: in getDefinitiveDeclContext()
311 case Decl::Namespace: in getDefinitiveDeclContext()
312 case Decl::LinkageSpec: in getDefinitiveDeclContext()
313 case Decl::Export: in getDefinitiveDeclContext()
317 case Decl::Enum: in getDefinitiveDeclContext()
318 case Decl::Record: in getDefinitiveDeclContext()
325 case Decl::CXXRecord: in getDefinitiveDeclContext()
326 case Decl::ClassTemplateSpecialization: in getDefinitiveDeclContext()
327 case Decl::ClassTemplatePartialSpecialization: in getDefinitiveDeclContext()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenDecl.cpp153 LValue lv = makeAddrLValue(addr, type, AlignmentSource::Decl); in emitAutoVarInit()
318 const Decl *dc = cast<Decl>(d.getDeclContext()); in getOrCreateStaticVarDecl()
523 void CIRGenFunction::emitDecl(const Decl &d) { in emitDecl()
525 case Decl::BuiltinTemplate: in emitDecl()
526 case Decl::TranslationUnit: in emitDecl()
527 case Decl::ExternCContext: in emitDecl()
528 case Decl::Namespace: in emitDecl()
529 case Decl::UnresolvedUsingTypename: in emitDecl()
530 case Decl::ClassTemplateSpecialization: in emitDecl()
531 case Decl::ClassTemplatePartialSpecialization: in emitDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp61 void Decl::updateOutOfDate(IdentifierInfo &II) const { in updateOutOfDate()
66 static_assert(alignof(Decl) >= alignof(DERIVED##Decl), \
71 void *Decl::operator new(std::size_t Size, const ASTContext &Context, in operator new()
75 static_assert(sizeof(uint64_t) >= alignof(Decl), "Decl won't be misaligned"); in operator new()
90 void *Decl::operator new(std::size_t Size, const ASTContext &Ctx, in operator new()
100 llvm::offsetToAlignment(sizeof(Module *), llvm::Align(alignof(Decl))); in operator new()
105 Parent ? cast<Decl>(Parent)->getOwningModule() : nullptr; in operator new()
111 GlobalDeclID Decl::getGlobalID() const { in getGlobalID()
119 unsigned Decl::getOwningModuleID() const { in getOwningModuleID()
127 void Decl::setOwningModuleID(unsigned ID) { in setOwningModuleID()
[all …]
H A DComment.cpp223 Decl::Kind K = CommentDecl->getKind(); in fill()
229 case Decl::Function: in fill()
230 case Decl::CXXMethod: in fill()
231 case Decl::CXXConstructor: in fill()
232 case Decl::CXXDestructor: in fill()
233 case Decl::CXXConversion: { in fill()
245 if (K == Decl::CXXMethod || K == Decl::CXXConstructor || in fill()
246 K == Decl::CXXDestructor || K == Decl::CXXConversion) { in fill()
255 case Decl::ObjCMethod: { in fill()
267 case Decl::FunctionTemplate: { in fill()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporter.h41 class Decl; variable
58 llvm::SmallVector<Decl*, 2> getCanonicalForwardRedeclChain(Decl* D);
66 llvm::DenseSet<std::tuple<Decl *, Decl *, int>>;
150 using VecTy = llvm::SmallVector<Decl *, 32>;
152 void push(Decl *D) { in push()
190 llvm::SmallDenseMap<Decl *, int, 32> Aux;
204 llvm::SmallDenseMap<Decl *, SavedImportPathsForOneDecl, 32>;
227 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
235 llvm::DenseMap<Decl *, ASTImportError> ImportDeclErrors;
239 llvm::DenseMap<Decl *, Decl *> ImportedFromDecls;
[all …]
H A DDeclBase.h86 class alignas(8) Decl {
249 llvm::PointerIntPair<Decl *, 3, ModuleOwnershipKind> NextInContextAndBits;
373 auto *D = cast<Decl>(DC); in getModuleOwnershipKindForChildOf()
385 Decl() = delete;
386 Decl(const Decl&) = delete;
387 Decl(Decl &&) = delete;
388 Decl &operator=(const Decl&) = delete;
389 Decl &operator=(Decl&&) = delete;
392 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl() function
402 Decl(Kind DK, EmptyShell Empty) in Decl() function
[all …]
H A DASTStructuralEquivalence.h27 class Decl; variable
44 using NonEquivalentDeclSet = llvm::DenseSet<std::tuple<Decl *, Decl *, int>>;
54 std::queue<std::pair<Decl *, Decl *>> DeclsToCheck;
58 llvm::DenseSet<std::pair<Decl *, Decl *>> VisitedDecls;
105 bool IsEquivalent(Decl *D1, Decl *D2);
147 bool CheckCommonEquivalence(Decl *D1, Decl *D2);
152 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) { return getTrailingObjects(NumDecls)[i]; }
42 Decl* const& operator[](unsigned i) const {
52 Decl* D = nullptr;
60 explicit DeclGroupRef(Decl* d) : D(d) {} in DeclGroupRef()
62 : D((Decl*) (reinterpret_cast<uintptr_t>(dg) | DeclGroupKind)) {} in DeclGroupRef()
64 static DeclGroupRef Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create()
[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()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp129 static BuiltinTypeDeclBuilder setupBufferType(CXXRecordDecl *Decl, Sema &S, in setupBufferType() argument
132 return BuiltinTypeDeclBuilder(S, Decl) in setupBufferType()
264 CXXRecordDecl *Decl; in defineHLSLTypesWithForwardDeclarations() local
270 Decl = BuiltinTypeDeclBuilder(*SemaPtr, HLSLNamespace, "Buffer") in defineHLSLTypesWithForwardDeclarations()
274 onCompletion(Decl, [this](CXXRecordDecl *Decl) { in defineHLSLTypesWithForwardDeclarations() argument
275 setupBufferType(Decl, *SemaPtr, ResourceClass::SRV, /*IsROV=*/false, in defineHLSLTypesWithForwardDeclarations()
282 Decl = BuiltinTypeDeclBuilder(*SemaPtr, HLSLNamespace, "RWBuffer") in defineHLSLTypesWithForwardDeclarations()
286 onCompletion(Decl, [this](CXXRecordDecl *Decl) { in defineHLSLTypesWithForwardDeclarations() argument
287 setupBufferType(Decl, *SemaPtr, ResourceClass::UAV, /*IsROV=*/false, in defineHLSLTypesWithForwardDeclarations()
294 Decl = in defineHLSLTypesWithForwardDeclarations()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaHLSL.h67 const VarDecl *Decl; member
72 DeclBindingInfo(const VarDecl *Decl, ResourceClass ResClass,
75 : Decl(Decl), ResClass(ResClass), Attr(Attr), BindType(BindType) {} in Decl() function
110 Decl *ActOnStartBuffer(Scope *BufferScope, bool CBuffer, SourceLocation KwLoc,
113 void ActOnFinishBuffer(Decl *Dcl, SourceLocation RBrace);
114 HLSLNumThreadsAttr *mergeNumThreadsAttr(Decl *D,
117 HLSLWaveSizeAttr *mergeWaveSizeAttr(Decl *D, const AttributeCommonInfo &AL,
121 mergeVkConstantIdAttr(Decl *D, const AttributeCommonInfo &AL, int Id);
122 HLSLShaderAttr *mergeShaderAttr(Decl *D, const AttributeCommonInfo &AL,
125 mergeParamModifierAttr(Decl *D, const AttributeCommonInfo &AL,
[all …]
H A DSemaSwift.h23 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 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>;
486 const Decl *D = I->first; in cloneScopes()
487 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.h66 Decl *Parm, Stmt *Body);
86 SourceLocation lAngleLoc, ArrayRef<Decl *> protocols,
94 ArrayRef<Decl *> Protocols, ArrayRef<SourceLocation> ProtocolLocs,
98 QualType BuildObjCTypeParamType(const ObjCTypeParamDecl *Decl,
155 void AddCFAuditedAttribute(Decl *D);
244 ArrayRef<Decl *> typeParams,
253 Decl *const *ProtoRefs, unsigned NumProtoRefs,
263 void ActOnTypedefedProtocols(SmallVectorImpl<Decl *> &ProtocolRefs,
268 Decl *ActOnCompatibilityAlias(SourceLocation AtCompatibilityAliasLoc,
280 SourceLocation ProtocolLoc, Decl *const *ProtoRefNames,
[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/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/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp170 const Decl *Context;
181 bool VisitNamedDecl(const NamedDecl *Decl) { in VisitNamedDecl() argument
183 if (llvm::isa<UsingDecl>(Decl)) in VisitNamedDecl()
187 if (llvm::isa<CXXDestructorDecl>(Decl)) in VisitNamedDecl()
190 if (Decl->isImplicit()) in VisitNamedDecl()
193 if (isInUSRSet(Decl)) { in VisitNamedDecl()
196 if (const auto* TAT = dyn_cast<TypeAliasTemplateDecl>(Decl)) in VisitNamedDecl()
197 Decl = TAT->getTemplatedDecl(); in VisitNamedDecl()
199 auto StartLoc = Decl->getLocation(); in VisitNamedDecl()
215 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitMemberExpr() local
[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 std::optional<bool> mayInline(const Decl *D) { in mayInline()
91 void markVisitedBasicBlock(unsigned ID, const Decl* D, unsigned TotalIDs) { in markVisitedBasicBlock()
102 unsigned getNumVisitedBasicBlocks(const Decl* D) { in getNumVisitedBasicBlocks()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
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()
20 IsAnonymousUnion(IsUnion && Decl->isAnonymousStructOrUnion()) { in Record()
22 VirtualBases.push_back({V.Decl, V.Offset + BaseSize, V.Desc, V.R}); in Record()
25 BaseMap[B.Decl] = &B; in Record()
27 FieldMap[F.Decl] = &F; in Record()
29 VirtualBaseMap[V.Decl] = &V; in Record()
35 Decl->getNameForDiagnostic(OS, Decl->getASTContext().getPrintingPolicy(), in getName()
/freebsd/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp31 bool VisitCXXMethodDecl(CXXMethodDecl *Decl) { in VisitCXXMethodDecl() argument
34 if (ShouldSkip(Decl)) in VisitCXXMethodDecl()
43 if (!Decl->isStatic()) in VisitCXXMethodDecl()
45 for (auto *P : Decl->parameters()) in VisitCXXMethodDecl()
57 Stmt *Body = Decl->getBody(); in VisitCXXMethodDecl()
86 bool ShouldSkip(CXXMethodDecl *Decl) { in ShouldSkip() argument
88 if (!MyRewriter.getSourceMgr().isInMainFile(Decl->getBeginLoc())) in ShouldSkip()
94 if (Decl == Decl->getCanonicalDecl()) in ShouldSkip()
98 Stmt *Body = Decl->getBody(); in ShouldSkip()
103 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 std::optional<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/ASTMatchers/
H A DASTMatchersInternal.cpp752 const internal::VariadicDynCastAllOfMatcher<Decl, TranslationUnitDecl>
754 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl> typedefDecl;
755 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
757 const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasDecl> typeAliasDecl;
758 const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasTemplateDecl>
760 const internal::VariadicAllOfMatcher<Decl> decl;
761 const internal::VariadicDynCastAllOfMatcher<Decl, DecompositionDecl> decompositionDecl;
762 const internal::VariadicDynCastAllOfMatcher<Decl, BindingDecl> bindingDecl;
763 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>
765 const internal::VariadicDynCastAllOfMatcher<Decl, NamedDecl> namedDecl;
[all …]

12345678910>>...24