/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 75 void HandleTopLevelSingleDecl(Decl *D); 79 void ASTViewer::HandleTopLevelSingleDecl(Decl *D) { in HandleTopLevelSingleDecl() 116 case Decl::TranslationUnit: in PrintDeclContext() 119 case Decl::Namespace: { in PrintDeclContext() 125 case Decl::Enum: { in PrintDeclContext() 134 case Decl::Record: { in PrintDeclContext() 143 case Decl::CXXRecord: { in PrintDeclContext() 152 case Decl::ObjCMethod: in PrintDeclContext() 155 case Decl::ObjCInterface: in PrintDeclContext() 158 case Decl::ObjCCategory: in PrintDeclContext() [all …]
|
/external/clang/include/clang/Sema/ |
D | Template.h | 181 typedef SmallVector<Decl *, 4> DeclArgumentPack; 188 typedef llvm::DenseMap<const Decl *, 189 llvm::PointerUnion<Decl *, DeclArgumentPack *> > 289 const Decl *D = I->first; in cloneScopes() 290 llvm::PointerUnion<Decl *, DeclArgumentPack *> &Stored = in cloneScopes() 292 if (I->second.is<Decl *>()) { in cloneScopes() 293 Stored = I->second.get<Decl *>(); in cloneScopes() 323 llvm::PointerUnion<Decl *, DeclArgumentPack *> * 324 findInstantiationOf(const Decl *D); 326 void InstantiatedLocal(const Decl *D, Decl *Inst); [all …]
|
D | Sema.h | 83 class Decl; variable 278 llvm::SmallPtrSet<const Decl*, 4> ParsingInitForAutoVars; 414 static void popParsingDecl(Sema &S, ParsingDeclState state, Decl *decl); 494 SmallVector<Decl*,2> WeakTopLevelDecl; 623 Decl *LambdaContextDecl; 643 Decl *LambdaContextDecl, in ExpressionEvaluationContextRecord() 859 const Decl *D = 0, const BlockExpr *blkExpr = 0); 879 SmallVector<Decl*,2> &WeakTopLevelDecls() { return WeakTopLevelDecl; } in WeakTopLevelDecls() 991 DeclGroupPtrTy ConvertDeclToDeclGroup(Decl *Ptr, Decl *OwnedType = 0); 1112 Decl *ActOnDeclarator(Scope *S, Declarator &D); [all …]
|
/external/clang/lib/AST/ |
D | DeclBase.cpp | 42 void *Decl::AllocateDeserializedDecl(const ASTContext &Context, in AllocateDeserializedDecl() 61 const char *Decl::getDeclKindName() const { in getDeclKindName() 70 void Decl::setInvalidDecl(bool Invalid) { in setInvalidDecl() 83 #define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED; in getDeclKindName() 89 bool Decl::StatisticsEnabled = false; 90 void Decl::EnableStatistics() { in EnableStatistics() 94 void Decl::PrintStats() { in PrintStats() 106 totalBytes += (int)(n##DERIVED##s * sizeof(DERIVED##Decl)); \ in PrintStats() 108 << sizeof(DERIVED##Decl) << " each (" \ in PrintStats() 109 << n##DERIVED##s * sizeof(DERIVED##Decl) \ in PrintStats() [all …]
|
D | DumpXML.cpp | 66 void dispatch(Decl *D) { in dispatch() 69 case Decl::DERIVED: \ in dispatch() 70 DISPATCH(dispatch##DERIVED##DeclAttrs, DERIVED##Decl); \ in dispatch() 72 DISPATCH(dispatch##DERIVED##DeclChildren, DERIVED##Decl); \ in dispatch() 73 DISPATCH(dispatch##DERIVED##DeclAsContext, DERIVED##Decl); \ in dispatch() 81 void dispatch##DERIVED##DeclAttrs(DERIVED##Decl *D) { \ 83 DISPATCH(visit##DERIVED##DeclAttrs, DERIVED##Decl); \ 85 void visit##DERIVED##DeclAttrs(DERIVED##Decl *D) {} \ 86 void dispatch##DERIVED##DeclChildren(DERIVED##Decl *D) { \ 88 DISPATCH(visit##DERIVED##DeclChildren, DERIVED##Decl); \ [all …]
|
D | ASTImporter.cpp | 30 public DeclVisitor<ASTNodeImporter, Decl *>, 38 using DeclVisitor<ASTNodeImporter, Decl *>::Visit; 85 void ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD = 0); 125 Decl *VisitDecl(Decl *D); 126 Decl *VisitTranslationUnitDecl(TranslationUnitDecl *D); 127 Decl *VisitNamespaceDecl(NamespaceDecl *D); 128 Decl *VisitTypedefNameDecl(TypedefNameDecl *D, bool IsAlias); 129 Decl *VisitTypedefDecl(TypedefDecl *D); 130 Decl *VisitTypeAliasDecl(TypeAliasDecl *D); 131 Decl *VisitEnumDecl(EnumDecl *D); [all …]
|
/external/clang/include/clang/AST/ |
D | DeclBase.h | 78 class Decl { 203 llvm::PointerIntPair<Decl *, 2, unsigned> NextInContextAndBits; 303 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl() function 314 Decl(Kind DK, EmptyShell Empty) in Decl() function 324 virtual ~Decl(); 357 Decl *getNextDeclInContext() { return NextInContextAndBits.getPointer(); } in getNextDeclInContext() 358 const Decl *getNextDeclInContext() const {return NextInContextAndBits.getPointer();} in getNextDeclInContext() 366 return const_cast<Decl*>(this)->getDeclContext(); in getDeclContext() 373 return const_cast<Decl*>(this)->getNonClosureContext(); in getNonClosureContext() 378 return const_cast<Decl*>(this)->getTranslationUnitDecl(); in getTranslationUnitDecl() [all …]
|
D | DeclGroup.h | 23 class Decl; variable 33 DeclGroup(unsigned numdecls, Decl** decls); 36 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls); 40 Decl*& operator[](unsigned i) { 42 return ((Decl**) (this+1))[i]; 45 Decl* const& operator[](unsigned i) const { 47 return ((Decl* const*) (this+1))[i]; 55 Decl* D; 64 explicit DeclGroupRef(Decl* d) : D(d) {} in DeclGroupRef() 66 : D((Decl*) (reinterpret_cast<uintptr_t>(dg) | DeclGroupKind)) {} in DeclGroupRef() [all …]
|
D | ASTImporter.h | 26 class Decl; variable 40 typedef llvm::DenseSet<std::pair<Decl *, Decl *> > NonEquivalentDeclSet; 58 llvm::DenseMap<Decl *, Decl *> ImportedDecls; 119 Decl *Import(Decl *FromD); 204 void ImportDefinition(Decl *From); 263 virtual void CompleteDecl(Decl* D); 270 virtual Decl *Imported(Decl *From, Decl *To);
|
D | DeclVisitor.h | 31 RetTy Visit(Decl *D) { in Visit() 34 case Decl::DERIVED: DISPATCH(DERIVED##Decl, DERIVED##Decl); in Visit() 44 RetTy Visit##DERIVED##Decl(DERIVED##Decl *D) { DISPATCH(BASE, BASE); } 47 RetTy VisitDecl(Decl *D) { return RetTy(); } in VisitDecl()
|
D | StmtIterator.h | 26 class Decl; variable 35 union { Decl *decl; Decl **DGI; }; 37 Decl **DGE; 65 bool HandleDecl(Decl* D); 71 StmtIteratorBase(Decl *d, Stmt **s); 73 StmtIteratorBase(Decl **dgi, Decl **dge); 88 StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {} in StmtIteratorImpl() 89 StmtIteratorImpl(Decl *d, Stmt **s) : StmtIteratorBase(d, s) {} in StmtIteratorImpl() 129 StmtIterator(Decl** dgi, Decl** dge) in StmtIterator() 135 StmtIterator(Decl* D, Stmt **s = 0)
|
D | DeclFriend.h | 38 class FriendDecl : public Decl { 63 : Decl(Decl::Friend, DC, L), in FriendDecl() 71 : Decl(Decl::Friend, Empty), NextFriend() { } in FriendDecl() 123 static bool classof(const Decl *D) { return classofKind(D->getKind()); } in classof() 125 static bool classofKind(Kind K) { return K == Decl::Friend; } in classofKind()
|
D | DeclTemplate.h | 219 NamedDecl *Decl) in TemplateDecl() argument 220 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), in TemplateDecl() 232 static bool classof(const Decl *D) { return classofKind(D->getKind()); } in classof() 580 NamedDecl *Decl) in RedeclarableTemplateDecl() argument 581 : TemplateDecl(DK, DC, L, Name, Params, Decl), Common() { } in RedeclarableTemplateDecl() 673 static bool classof(const Decl *D) { return classofKind(D->getKind()); } in classof() 722 TemplateParameterList *Params, NamedDecl *Decl) 723 : RedeclarableTemplateDecl(FunctionTemplate, DC, L, Name, Params, Decl) { } 815 NamedDecl *Decl); 821 static bool classof(const Decl *D) { return classofKind(D->getKind()); } [all …]
|
/external/clang/include/clang/Basic/ |
D | DeclNodes.td | 3 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 Named : Decl<1>; 67 def LinkageSpec : Decl, DeclContext; 68 def ObjCPropertyImpl : Decl; 69 def FileScopeAsm : Decl; 70 def AccessSpec : Decl; 71 def Friend : Decl; [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | FunctionSummary.h | 24 typedef llvm::SmallPtrSet<Decl*, 24> SetOfDecls; 25 typedef llvm::SmallPtrSet<const Decl*, 24> SetOfConstDecls; 45 typedef llvm::DenseMap<const Decl*, FunctionSummary*> MapTy; 51 MapTy::iterator findOrInsertSummary(const Decl *D) { in findOrInsertSummary() 56 I = Map.insert(std::pair<const Decl*, FunctionSummary*>(D, DS)).first; in findOrInsertSummary() 61 void markReachedMaxBlockCount(const Decl* D) { in markReachedMaxBlockCount() 66 bool hasReachedMaxBlockCount(const Decl* D) { in hasReachedMaxBlockCount() 73 void markVisitedBasicBlock(unsigned ID, const Decl* D, unsigned TotalIDs) { in markVisitedBasicBlock() 84 unsigned getNumVisitedBasicBlocks(const Decl* D) { in getNumVisitedBasicBlocks() 92 unsigned getPercentBlocksReachable(const Decl *D) { in getPercentBlocksReachable()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 214 Decl *getObjCDeclContext() const { return Actions.getObjCDeclContext(); } in getObjCDeclContext() 616 Decl *DC; 799 SmallVector<Decl*, 2> Decls; 807 void addDecl(Decl *D) { Decls.push_back(D); } in addDecl() 819 Decl *D; 827 explicit LexedMethod(Parser* P, Decl *MD) in LexedMethod() 838 explicit LateParsedDefaultArgument(Decl *P, 843 Decl *Param; 857 explicit LateParsedMethodDeclaration(Parser *P, Decl *M) in LateParsedMethodDeclaration() 865 Decl *Method; [all …]
|
/external/clang/include/clang/Analysis/Visitors/ |
D | CFGRecStmtDeclVisitor.h | 26 case Decl::CLASS: \ 27 static_cast<ImplClass*>(this)->Visit##CLASS##Decl( \ 28 static_cast<CLASS##Decl*>(D)); \ 31 #define DEFAULT_DISPATCH(CLASS) void Visit##CLASS##Decl(CLASS##Decl *D) {} 32 #define DEFAULT_DISPATCH_VARDECL(CLASS) void Visit##CLASS##Decl(CLASS##Decl *D)\ 48 Decl *D = *DI; in VisitDeclStmt() 57 void VisitDecl(Decl *D) { in VisitDecl()
|
/external/clang/lib/CodeGen/ |
D | CGDebugInfo.h | 68 llvm::DenseMap<const Decl *, llvm::WeakVH> RegionMap; 108 llvm::DIType getOrCreateFunctionType(const Decl *D, QualType FnType, 121 void CollectCXXMemberFunctions(const CXXRecordDecl *Decl, 126 void CollectCXXFriends(const CXXRecordDecl *Decl, 131 void CollectCXXBases(const CXXRecordDecl *Decl, 152 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile F, 156 void CollectVTableInfo(const CXXRecordDecl *Decl, 196 void EmitDeclareOfAutoVariable(const VarDecl *Decl, llvm::Value *AI, 208 void EmitDeclareOfArgVariable(const VarDecl *Decl, llvm::Value *AI, 219 void EmitGlobalVariable(llvm::GlobalVariable *GV, const VarDecl *Decl); [all …]
|
D | CGDecl.cpp | 33 void CodeGenFunction::EmitDecl(const Decl &D) { in EmitDecl() 35 case Decl::TranslationUnit: in EmitDecl() 36 case Decl::Namespace: in EmitDecl() 37 case Decl::UnresolvedUsingTypename: in EmitDecl() 38 case Decl::ClassTemplateSpecialization: in EmitDecl() 39 case Decl::ClassTemplatePartialSpecialization: in EmitDecl() 40 case Decl::TemplateTypeParm: in EmitDecl() 41 case Decl::UnresolvedUsingValue: in EmitDecl() 42 case Decl::NonTypeTemplateParm: in EmitDecl() 43 case Decl::CXXMethod: in EmitDecl() [all …]
|
/external/clang/include/clang/Analysis/ |
D | CallGraph.h | 37 typedef llvm::DenseMap<const Decl *, CallGraphNode *> FunctionMapTy; 59 void addToCallGraph(Decl *D) { in addToCallGraph() 64 static bool includeInGraph(const Decl *D); 67 CallGraphNode *getNode(const Decl *) const; 71 CallGraphNode *getOrInsertNode(Decl *); 126 void addNodeForDecl(Decl *D, bool IsGlobal); 129 CallGraphNode *allocateNewNode(Decl *); 138 Decl *FD; 146 CallGraphNode(Decl *D) : FD(D) {} in CallGraphNode() 165 Decl *getDecl() const { return FD; } in getDecl() [all …]
|
/external/clang/include/clang/Serialization/ |
D | ASTWriter.h | 119 DeclOrType(Decl *D) : Stored(D), IsType(false) { } in DeclOrType() 130 Decl *getDecl() const { in getDecl() 132 return static_cast<Decl *>(Stored); in getDecl() 155 llvm::DenseMap<const Decl *, serialization::DeclID> DeclIDs; 177 void associateDeclWithFile(const Decl *D, serialization::DeclID); 266 typedef llvm::DenseMap<const Decl *, UpdateRecord> DeclUpdateMap; 271 typedef llvm::DenseMap<Decl *, Decl *> FirstLatestDeclMap; 299 typedef llvm::SmallPtrSet<const Decl *, 16> DeclsToRewriteTy; 328 llvm::SetVector<Decl *, llvm::SmallVector<Decl *, 4>, 329 llvm::SmallPtrSet<Decl *, 4> > Redeclarations; [all …]
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 156 Decl *D = getCursorDecl(Cursor); in Visit() 246 static bool isInLexicalContext(Decl *D, DeclContext *DC) { in isInLexicalContext() 264 SmallVector<Decl *, 16> Decls; in visitDeclsFromFileRegion() 292 SmallVector<Decl *, 16>::iterator DIt = Decls.begin(); in visitDeclsFromFileRegion() 293 for (SmallVector<Decl *, 16>::iterator DE = Decls.end(); DIt != DE; ++DIt) { in visitDeclsFromFileRegion() 294 Decl *D = *DIt; in visitDeclsFromFileRegion() 337 Decl *D = cast<Decl>(DC); in visitDeclsFromFileRegion() 449 Decl *D = getCursorDecl(Cursor); in VisitChildren() 562 Decl *D = *I; in VisitDeclContext() 865 SmallVectorImpl<Decl *> &Decls) { in addRangedDeclsInContainer() [all …]
|
D | CXCursor.h | 28 class Decl; variable 50 CXCursor MakeCXCursor(const clang::Attr *A, clang::Decl *Parent, 52 CXCursor MakeCXCursor(clang::Decl *D, CXTranslationUnit TU, 55 CXCursor MakeCXCursor(clang::Stmt *S, clang::Decl *Parent, 180 CXCursor MakeCursorOverloadedDeclRef(Decl *D, SourceLocation Location, 189 typedef llvm::PointerUnion3<OverloadExpr *, Decl *, 198 Decl *getCursorDecl(CXCursor Cursor); 202 Decl *getCursorParentDecl(CXCursor Cursor); 235 bool getDeclCursorUSR(const Decl *D, SmallVectorImpl<char> &Buf);
|
/external/clang/lib/Sema/ |
D | TargetAttributesSema.cpp | 24 bool TargetAttributesSema::ProcessDeclAttribute(Scope *scope, Decl *D, in ProcessDeclAttribute() 29 static void HandleMSP430InterruptAttr(Decl *d, in HandleMSP430InterruptAttr() 63 bool ProcessDeclAttribute(Scope *scope, Decl *D, in ProcessDeclAttribute() 74 static void HandleMBlazeInterruptHandlerAttr(Decl *d, const AttributeList &Attr, in HandleMBlazeInterruptHandlerAttr() 89 static void HandleMBlazeSaveVolatilesAttr(Decl *d, const AttributeList &Attr, in HandleMBlazeSaveVolatilesAttr() 109 bool ProcessDeclAttribute(Scope *scope, Decl *D, const AttributeList &Attr, in ProcessDeclAttribute() 123 static void HandleX86ForceAlignArgPointerAttr(Decl *D, in HandleX86ForceAlignArgPointerAttr() 154 static void HandleDLLImportAttr(Decl *D, const AttributeList &Attr, Sema &S) { in HandleDLLImportAttr() 203 static void HandleDLLExportAttr(Decl *D, const AttributeList &Attr, Sema &S) { in HandleDLLExportAttr() 238 bool ProcessDeclAttribute(Scope *scope, Decl *D, in ProcessDeclAttribute()
|
D | SemaDeclAttr.cpp | 52 static const FunctionType *getFunctionType(const Decl *D, in getFunctionType() 77 static bool isFunction(const Decl *D) { in isFunction() 84 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() 91 static bool isFunctionOrMethodOrBlock(const Decl *D) { in isFunctionOrMethodOrBlock() 104 static bool hasDeclarator(const Decl *D) { in hasDeclarator() 113 static bool hasFunctionProto(const Decl *D) { in hasFunctionProto() 125 static unsigned getFunctionOrMethodNumArgs(const Decl *D) { in getFunctionOrMethodNumArgs() 133 static QualType getFunctionOrMethodArgType(const Decl *D, unsigned Idx) { in getFunctionOrMethodArgType() 142 static QualType getFunctionOrMethodResultType(const Decl *D) { in getFunctionOrMethodResultType() 148 static bool isFunctionOrMethodVariadic(const Decl *D) { in isFunctionOrMethodVariadic() [all …]
|