Home
last modified time | relevance | path

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

12345678910>>...15

/external/clang/lib/Serialization/
DASTCommon.cpp182 case Decl::TranslationUnit: in getDefinitiveDeclContext()
183 case Decl::ExternCContext: in getDefinitiveDeclContext()
184 case Decl::Namespace: in getDefinitiveDeclContext()
185 case Decl::LinkageSpec: in getDefinitiveDeclContext()
189 case Decl::Enum: in getDefinitiveDeclContext()
190 case Decl::Record: in getDefinitiveDeclContext()
197 case Decl::CXXRecord: in getDefinitiveDeclContext()
198 case Decl::ClassTemplateSpecialization: in getDefinitiveDeclContext()
199 case Decl::ClassTemplatePartialSpecialization: in getDefinitiveDeclContext()
203 case Decl::Function: in getDefinitiveDeclContext()
[all …]
/external/clang/lib/Frontend/
DASTConsumers.cpp54 bool TraverseDecl(Decl *D) { in TraverseDecl()
72 std::string getName(Decl *D) { in getName()
77 bool filterMatches(Decl *D) { in filterMatches()
80 void print(Decl *D) { in print()
159 void HandleTopLevelSingleDecl(Decl *D);
163 void ASTViewer::HandleTopLevelSingleDecl(Decl *D) { in HandleTopLevelSingleDecl()
201 case Decl::TranslationUnit: in PrintDeclContext()
204 case Decl::Namespace: { in PrintDeclContext()
210 case Decl::Enum: { in PrintDeclContext()
219 case Decl::Record: { in PrintDeclContext()
[all …]
/external/clang/lib/AST/
DDeclBase.cpp44 void Decl::updateOutOfDate(IdentifierInfo &II) const { in updateOutOfDate()
49 static_assert(llvm::AlignOf<Decl>::Alignment >= \
50 llvm::AlignOf<DERIVED##Decl>::Alignment, \
55 void *Decl::operator new(std::size_t Size, const ASTContext &Context, in operator new()
59 static_assert(sizeof(unsigned) * 2 >= llvm::AlignOf<Decl>::Alignment, in operator new()
75 void *Decl::operator new(std::size_t Size, const ASTContext &Ctx, in operator new()
85 llvm::AlignOf<Decl>::Alignment); in operator new()
94 Module *Decl::getOwningModuleSlow() const { in getOwningModuleSlow()
99 bool Decl::hasLocalOwningModuleStorage() const { in hasLocalOwningModuleStorage()
103 const char *Decl::getDeclKindName() const { in getDeclKindName()
[all …]
DComment.cpp148 Decl::Kind K = CommentDecl->getKind(); in fill()
153 case Decl::Function: in fill()
154 case Decl::CXXMethod: in fill()
155 case Decl::CXXConstructor: in fill()
156 case Decl::CXXDestructor: in fill()
157 case Decl::CXXConversion: { in fill()
169 if (K == Decl::CXXMethod || K == Decl::CXXConstructor || in fill()
170 K == Decl::CXXDestructor || K == Decl::CXXConversion) { in fill()
177 case Decl::ObjCMethod: { in fill()
187 case Decl::FunctionTemplate: { in fill()
[all …]
/external/clang/include/clang/AST/
DDeclBase.h78 class LLVM_ALIGNAS(/*alignof(uint64_t)*/ 8) Decl {
221 llvm::PointerIntPair<Decl *, 2, unsigned> NextInContextAndBits;
334 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl() function
338 Access(AS_none), FromASTFile(0), Hidden(DC && cast<Decl>(DC)->Hidden), in Decl()
345 Decl(Kind DK, EmptyShell Empty) in Decl() function
355 virtual ~Decl();
391 Decl *getNextDeclInContext() { return NextInContextAndBits.getPointer(); } in getNextDeclInContext()
392 const Decl *getNextDeclInContext() const {return NextInContextAndBits.getPointer();} in getNextDeclInContext()
400 return const_cast<Decl*>(this)->getDeclContext(); in getDeclContext()
408 Decl *getNonClosureContext();
[all …]
DDeclGroup.h24 class Decl; variable
28 class DeclGroup final : private llvm::TrailingObjects<DeclGroup, Decl *> {
34 DeclGroup(unsigned numdecls, Decl** decls);
37 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
41 Decl*& operator[](unsigned i) {
43 return getTrailingObjects<Decl *>()[i];
46 Decl* const& operator[](unsigned i) const {
48 return getTrailingObjects<Decl *>()[i];
58 Decl* D;
67 explicit DeclGroupRef(Decl* d) : D(d) {} in DeclGroupRef()
[all …]
DASTImporter.h27 class Decl; variable
41 typedef llvm::DenseSet<std::pair<Decl *, Decl *> > NonEquivalentDeclSet;
62 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
123 Decl *Import(Decl *FromD);
128 Decl *GetAlreadyImportedOrNull(Decl *FromD);
221 void ImportDefinition(Decl *From);
280 virtual void CompleteDecl(Decl* D);
287 virtual Decl *Imported(Decl *From, Decl *To);
295 virtual Decl *GetOriginalDecl(Decl *To) { return nullptr; } in GetOriginalDecl()
DStmtIterator.h27 class Decl; variable
37 Decl **DGI;
40 Decl **DGE;
64 bool HandleDecl(Decl* D);
71 StmtIteratorBase(Decl **dgi, Decl **dge);
86 StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {} in StmtIteratorImpl()
126 StmtIterator(Decl** dgi, Decl** dge) in StmtIterator()
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()
/external/clang/include/clang/Basic/
DDeclNodes.td3 class Decl<bit abstract = 0> : AttrSubject {
7 class DDecl<Decl base, bit abstract = 0> : Decl<abstract> {
8 Decl Base = base;
13 def TranslationUnit : Decl, DeclContext;
14 def PragmaComment : Decl;
15 def PragmaDetectMismatch : Decl;
16 def ExternCContext : Decl, DeclContext;
17 def Named : Decl<1>;
80 def LinkageSpec : Decl, DeclContext;
81 def ObjCPropertyImpl : Decl;
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DFunctionSummary.h28 typedef std::deque<Decl*> SetOfDecls;
29 typedef llvm::DenseSet<const Decl*> SetOfConstDecls;
56 typedef llvm::DenseMap<const Decl *, FunctionSummary> MapTy;
60 MapTy::iterator findOrInsertSummary(const Decl *D) { in findOrInsertSummary()
65 typedef std::pair<const Decl *, FunctionSummary> KVPair; in findOrInsertSummary()
71 void markMayInline(const Decl *D) { in markMayInline()
77 void markShouldNotInline(const Decl *D) { in markShouldNotInline()
83 void markReachedMaxBlockCount(const Decl *D) { in markReachedMaxBlockCount()
87 Optional<bool> mayInline(const Decl *D) { in mayInline()
94 void markVisitedBasicBlock(unsigned ID, const Decl* D, unsigned TotalIDs) { in markVisitedBasicBlock()
[all …]
/external/clang/lib/Index/
DIndexSymbol.cpp43 static void checkForIBOutlets(const Decl *D, SymbolSubKindSet &SubKindSet) { in checkForIBOutlets()
52 SymbolInfo index::getSymbolInfo(const Decl *D) { in getSymbolInfo()
91 case Decl::Import: in getSymbolInfo()
94 case Decl::Typedef: in getSymbolInfo()
96 case Decl::Function: in getSymbolInfo()
99 case Decl::ParmVar: in getSymbolInfo()
102 case Decl::Var: in getSymbolInfo()
109 case Decl::Field: in getSymbolInfo()
117 case Decl::EnumConstant: in getSymbolInfo()
119 case Decl::ObjCInterface: in getSymbolInfo()
[all …]
DIndexingContext.h20 class Decl; variable
61 static bool isFunctionLocalDecl(const Decl *D);
62 static bool isTemplateImplicitInstantiation(const Decl *D);
64 bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(),
67 bool handleDecl(const Decl *D, SourceLocation Loc,
78 const Decl *RefD = nullptr);
82 bool indexDecl(const Decl *D);
103 bool indexTopLevelDecl(const Decl *D);
107 bool shouldIgnoreIfImplicit(const Decl *D);
109 bool handleDeclOccurrence(const Decl *D, SourceLocation Loc,
[all …]
DIndexingContext.cpp24 bool IndexingContext::handleDecl(const Decl *D, in handleDecl()
28 cast<Decl>(D->getDeclContext()), Roles, Relations, in handleDecl()
32 bool IndexingContext::handleDecl(const Decl *D, SourceLocation Loc, in handleDecl()
38 return handleDeclOccurrence(D, Loc, /*IsRef=*/false, cast<Decl>(DC), in handleDecl()
49 const Decl *RefD) { in handleReference()
100 bool IndexingContext::isFunctionLocalDecl(const Decl *D) { in isFunctionLocalDecl()
128 bool IndexingContext::isTemplateImplicitInstantiation(const Decl *D) { in isTemplateImplicitInstantiation()
149 bool IndexingContext::shouldIgnoreIfImplicit(const Decl *D) { in shouldIgnoreIfImplicit()
163 static const Decl *adjustTemplateImplicitInstantiation(const Decl *D) { in adjustTemplateImplicitInstantiation()
174 static bool isDeclADefinition(const Decl *D, const DeclContext *ContainerDC, ASTContext &Ctx) { in isDeclADefinition()
[all …]
/external/clang/include/clang/Sema/
DTemplate.h189 const Decl *, llvm::PointerUnion<Decl *, DeclArgumentPack *>, 4>
295 const Decl *D = I->first; in cloneScopes()
296 llvm::PointerUnion<Decl *, DeclArgumentPack *> &Stored = in cloneScopes()
298 if (I->second.is<Decl *>()) { in cloneScopes()
299 Stored = I->second.get<Decl *>(); in cloneScopes()
331 llvm::PointerUnion<Decl *, DeclArgumentPack *> *
332 findInstantiationOf(const Decl *D);
334 void InstantiatedLocal(const Decl *D, Decl *Inst);
335 void InstantiatedLocalPackArg(const Decl *D, ParmVarDecl *Inst);
336 void MakeInstantiatedLocalArgPack(const Decl *D);
[all …]
/external/clang/unittests/ASTMatchers/Dynamic/
DRegistryTest.cpp146 Matcher<Decl> Value = constructMatcher( in TEST_F()
148 .getTypedMatcher<Decl>(); in TEST_F()
159 Matcher<Decl> HasInitializerSimple = constructMatcher( in TEST_F()
161 .getTypedMatcher<Decl>(); in TEST_F()
162 Matcher<Decl> HasInitializerComplex = constructMatcher( in TEST_F()
165 .getTypedMatcher<Decl>(); in TEST_F()
179 Matcher<Decl> HasParameter = in TEST_F()
210 Matcher<Decl> DeclDecl = declaratorDecl(hasTypeLoc( in TEST_F()
232 Matcher<Decl> Var = in TEST_F()
233 constructMatcher("varDecl", IsDefinition).getTypedMatcher<Decl>(); in TEST_F()
[all …]
/external/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h124 Constant *getVoidRetI8XEntryPoint(Constant *&Decl, in getVoidRetI8XEntryPoint() argument
126 if (Decl) in getVoidRetI8XEntryPoint()
127 return Decl; in getVoidRetI8XEntryPoint()
136 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getVoidRetI8XEntryPoint()
139 Constant *getI8XRetI8XEntryPoint(Constant *& Decl,
142 if (Decl)
143 return Decl;
155 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
158 Constant *getI8XRetI8XXI8XEntryPoint(Constant *&Decl, in getI8XRetI8XXI8XEntryPoint() argument
160 if (Decl) in getI8XRetI8XXI8XEntryPoint()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DIssueHash.cpp82 static std::string GetEnclosingDeclContextSignature(const Decl *D) { in GetEnclosingDeclContextSignature()
90 case Decl::Namespace: in GetEnclosingDeclContextSignature()
91 case Decl::Record: in GetEnclosingDeclContextSignature()
92 case Decl::CXXRecord: in GetEnclosingDeclContextSignature()
93 case Decl::Enum: in GetEnclosingDeclContextSignature()
96 case Decl::CXXConstructor: in GetEnclosingDeclContextSignature()
97 case Decl::CXXDestructor: in GetEnclosingDeclContextSignature()
98 case Decl::CXXConversion: in GetEnclosingDeclContextSignature()
99 case Decl::CXXMethod: in GetEnclosingDeclContextSignature()
100 case Decl::Function: in GetEnclosingDeclContextSignature()
[all …]
/external/clang/lib/CodeGen/
DCGDecl.cpp38 void CodeGenFunction::EmitDecl(const Decl &D) { in EmitDecl()
40 case Decl::BuiltinTemplate: in EmitDecl()
41 case Decl::TranslationUnit: in EmitDecl()
42 case Decl::ExternCContext: in EmitDecl()
43 case Decl::Namespace: in EmitDecl()
44 case Decl::UnresolvedUsingTypename: in EmitDecl()
45 case Decl::ClassTemplateSpecialization: in EmitDecl()
46 case Decl::ClassTemplatePartialSpecialization: in EmitDecl()
47 case Decl::VarTemplateSpecialization: in EmitDecl()
48 case Decl::VarTemplatePartialSpecialization: in EmitDecl()
[all …]
DCGDebugInfo.h83 llvm::DIType *Decl; member
85 ObjCInterfaceCacheEntry(const ObjCInterfaceType *Type, llvm::DIType *Decl, in ObjCInterfaceCacheEntry()
87 : Type(Type), Decl(Decl), Unit(Unit) {} in ObjCInterfaceCacheEntry()
110 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> RegionMap;
125 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> DeclCache;
129 llvm::DenseMap<const Decl *, llvm::TypedTrackingMDRef<llvm::DIDerivedType>>
190 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F);
208 void CollectCXXMemberFunctions(const CXXRecordDecl *Decl, llvm::DIFile *F,
215 void CollectCXXBases(const CXXRecordDecl *Decl, llvm::DIFile *F,
257 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F,
[all …]
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h123 typedef internal::Matcher<Decl> DeclarationMatcher;
158 const internal::VariadicDynCastAllOfMatcher<Decl, TranslationUnitDecl>
170 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl> typedefDecl;
181 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
193 const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasDecl> typeAliasDecl;
210 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
231 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
256 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument
283 const internal::VariadicAllOfMatcher<Decl> decl;
293 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>
[all …]
/external/clang/include/clang/Parse/
DParser.h262 Decl *getObjCDeclContext() const { return Actions.getObjCDeclContext(); } in getObjCDeclContext()
735 Decl *DC;
957 SmallVector<Decl*, 2> Decls;
965 void addDecl(Decl *D) { Decls.push_back(D); } in addDecl()
984 Decl *D;
992 explicit LexedMethod(Parser* P, Decl *MD) in LexedMethod()
1003 explicit LateParsedDefaultArgument(Decl *P,
1008 Decl *Param;
1022 explicit LateParsedMethodDeclaration(Parser *P, Decl *M) in LateParsedMethodDeclaration()
1031 Decl *Method;
[all …]
/external/clang/include/clang/Serialization/
DASTWriter.h151 DeclOrType(Decl *D) : Stored(D), IsType(false) { } in DeclOrType()
162 Decl *getDecl() const { in getDecl()
164 return static_cast<Decl *>(Stored); in getDecl()
187 llvm::DenseMap<const Decl *, serialization::DeclID> DeclIDs;
208 void associateDeclWithFile(const Decl *D, serialization::DeclID);
306 llvm::DenseMap<const Decl *, unsigned> AnonymousDeclarationNumbers;
313 const Decl *Dcl;
323 DeclUpdate(unsigned Kind, const Decl *Dcl) : Kind(Kind), Dcl(Dcl) {} in DeclUpdate()
336 const Decl *getDecl() const { return Dcl; } in getDecl()
347 typedef llvm::MapVector<const Decl *, UpdateRecord> DeclUpdateMap;
[all …]
/external/clang/include/clang/Analysis/
DCallGraph.h37 typedef llvm::DenseMap<const Decl *, CallGraphNode *> FunctionMapTy;
53 void addToCallGraph(Decl *D) { in addToCallGraph()
58 static bool includeInGraph(const Decl *D);
61 CallGraphNode *getNode(const Decl *) const;
65 CallGraphNode *getOrInsertNode(Decl *);
127 void addNodeForDecl(Decl *D, bool IsGlobal);
130 CallGraphNode *allocateNewNode(Decl *);
139 Decl *FD;
145 CallGraphNode(Decl *D) : FD(D) {} in CallGraphNode()
163 Decl *getDecl() const { return FD; } in getDecl()
[all …]
/external/clang/lib/Tooling/Core/
DQualTypeNames.cpp66 const ASTContext &Ctx, const Decl *decl,
202 static NestedNameSpecifier *createOuterNNS(const ASTContext &Ctx, const Decl *D, in createOuterNNS()
281 const ASTContext &Ctx, const Decl *Decl, in createNestedNameSpecifierForScopeOf() argument
283 assert(Decl); in createNestedNameSpecifierForScopeOf()
285 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf()
303 Decl = *(ClassTempl->spec_begin()); in createNestedNameSpecifierForScopeOf()
304 Outer = dyn_cast<NamedDecl>(Decl); in createNestedNameSpecifierForScopeOf()
305 OuterNS = dyn_cast<NamespaceDecl>(Decl); in createNestedNameSpecifierForScopeOf()
337 Decl *Decl = nullptr; in createNestedNameSpecifierForScopeOf() local
340 Decl = TDT->getDecl(); in createNestedNameSpecifierForScopeOf()
[all …]

12345678910>>...15