/external/clang/lib/Serialization/ |
D | ASTCommon.cpp | 96 case Decl::TranslationUnit: in getDefinitiveDeclContext() 97 case Decl::ExternCContext: in getDefinitiveDeclContext() 98 case Decl::Namespace: in getDefinitiveDeclContext() 99 case Decl::LinkageSpec: in getDefinitiveDeclContext() 103 case Decl::Enum: in getDefinitiveDeclContext() 104 case Decl::Record: in getDefinitiveDeclContext() 111 case Decl::CXXRecord: in getDefinitiveDeclContext() 112 case Decl::ClassTemplateSpecialization: in getDefinitiveDeclContext() 113 case Decl::ClassTemplatePartialSpecialization: in getDefinitiveDeclContext() 117 case Decl::Function: in getDefinitiveDeclContext() [all …]
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 54 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/ |
D | DeclBase.cpp | 44 void Decl::updateOutOfDate(IdentifierInfo &II) const { in updateOutOfDate() 48 void *Decl::operator new(std::size_t Size, const ASTContext &Context, in operator new() 66 void *Decl::operator new(std::size_t Size, const ASTContext &Ctx, in operator new() 72 Module *Decl::getOwningModuleSlow() const { in getOwningModuleSlow() 77 const char *Decl::getDeclKindName() const { in getDeclKindName() 86 void Decl::setInvalidDecl(bool Invalid) { in setInvalidDecl() 100 #define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED; in getDeclKindName() 106 bool Decl::StatisticsEnabled = false; 107 void Decl::EnableStatistics() { in EnableStatistics() 111 void Decl::PrintStats() { in PrintStats() [all …]
|
D | Comment.cpp | 148 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 …]
|
D | ASTTypeTraits.cpp | 81 ASTNodeKind ASTNodeKind::getFromNode(const Decl &D) { in getFromNode() 84 case Decl::DERIVED: return ASTNodeKind(NKI_##DERIVED##Decl); in getFromNode() 124 else if (const Decl *D = get<Decl>()) in print() 135 if (const Decl *D = get<Decl>()) in dump() 150 if (const Decl *D = get<Decl>()) in getSourceRange()
|
/external/clang/include/clang/AST/ |
D | DeclBase.h | 73 class Decl { 203 llvm::PointerIntPair<Decl *, 2, unsigned> NextInContextAndBits; 316 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl() function 327 Decl(Kind DK, EmptyShell Empty) in Decl() function 337 virtual ~Decl(); 373 Decl *getNextDeclInContext() { return NextInContextAndBits.getPointer(); } in getNextDeclInContext() 374 const Decl *getNextDeclInContext() const {return NextInContextAndBits.getPointer();} in getNextDeclInContext() 382 return const_cast<Decl*>(this)->getDeclContext(); in getDeclContext() 390 Decl *getNonClosureContext(); 391 const Decl *getNonClosureContext() const { in getNonClosureContext() [all …]
|
D | DeclGroup.h | 23 class Decl; variable 32 Decl *Aligner; 37 DeclGroup(unsigned numdecls, Decl** decls); 40 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls); 44 Decl*& operator[](unsigned i) { 46 return ((Decl**) (this+1))[i]; 49 Decl* const& operator[](unsigned i) const { 51 return ((Decl* const*) (this+1))[i]; 59 Decl* D; 68 explicit DeclGroupRef(Decl* d) : D(d) {} in DeclGroupRef() [all …]
|
D | ASTImporter.h | 26 class Decl; variable 40 typedef llvm::DenseSet<std::pair<Decl *, Decl *> > NonEquivalentDeclSet; 61 llvm::DenseMap<Decl *, Decl *> ImportedDecls; 122 Decl *Import(Decl *FromD); 207 void ImportDefinition(Decl *From); 266 virtual void CompleteDecl(Decl* D); 273 virtual Decl *Imported(Decl *From, Decl *To); 281 virtual Decl *GetOriginalDecl(Decl *To) { return nullptr; } in GetOriginalDecl()
|
D | DeclVisitor.h | 38 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()
|
D | StmtIterator.h | 27 class Decl; variable 36 Decl **DGI; 38 Decl **DGE; 62 bool HandleDecl(Decl* D); 69 StmtIteratorBase(Decl **dgi, Decl **dge); 84 StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {} in StmtIteratorImpl() 124 StmtIterator(Decl** dgi, Decl** dge) in StmtIterator()
|
D | ASTContext.h | 280 llvm::DenseMap<const Decl*, AttrVec*> DeclAttrs; 285 llvm::DenseMap<Decl*, Decl*> MergedDecls; 581 const Decl *getOriginalDecl() const LLVM_READONLY { in getOriginalDecl() 585 void setOriginalDecl(const Decl *Orig) { in setOriginalDecl() 591 const Decl *OriginalDecl; 599 mutable llvm::DenseMap<const Decl *, RawCommentAndCacheFlags> RedeclComments; 603 mutable llvm::DenseMap<const Decl *, comments::FullComment *> ParsedComments; 607 RawComment *getRawCommentForDeclNoCache(const Decl *D) const; 626 getRawCommentForAnyRedecl(const Decl *D, 627 const Decl **OriginalDecl = nullptr) const; [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 ExternCContext : Decl, DeclContext; 15 def Named : Decl<1>; 73 def LinkageSpec : Decl, DeclContext; 74 def ObjCPropertyImpl : Decl; 75 def FileScopeAsm : Decl; 76 def AccessSpec : Decl; [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | FunctionSummary.h | 25 class Decl; variable 28 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() [all …]
|
/external/clang/include/clang/Sema/ |
D | Template.h | 181 typedef SmallVector<Decl *, 4> DeclArgumentPack; 189 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, Decl *Inst); [all …]
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | RegistryTest.cpp | 146 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/lldb/include/lldb/Symbol/ |
D | ClangASTImporter.h | 104 clang::Decl * 107 clang::Decl *decl); 114 clang::Decl * 117 clang::Decl *decl); 120 CompleteDecl (clang::Decl *decl); 135 …ResolveDeclOrigin (const clang::Decl *decl, clang::Decl **original_decl, clang::ASTContext **origi… in ResolveDeclOrigin() 149 SetDeclOrigin (const clang::Decl *decl, clang::Decl *original_decl); 152 GetDeclMetadata (const clang::Decl *decl); 212 clang::Decl *_decl) : in DeclOrigin() 237 clang::Decl *decl; [all …]
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ARCRuntimeEntryPoints.h | 124 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/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 123 typedef internal::Matcher<Decl> DeclarationMatcher; 158 const internal::VariadicDynCastAllOfMatcher<Decl, TranslationUnitDecl> 169 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl> typedefDecl; 185 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument 206 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument 231 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument 258 const internal::VariadicAllOfMatcher<Decl> decl; 268 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl> 282 const internal::VariadicDynCastAllOfMatcher<Decl, NamedDecl> namedDecl; 293 const internal::VariadicDynCastAllOfMatcher<Decl, NamespaceDecl> namespaceDecl; [all …]
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 252 Decl *getObjCDeclContext() const { return Actions.getObjCDeclContext(); } in getObjCDeclContext() 691 Decl *DC; 913 SmallVector<Decl*, 2> Decls; 921 void addDecl(Decl *D) { Decls.push_back(D); } in addDecl() 940 Decl *D; 948 explicit LexedMethod(Parser* P, Decl *MD) in LexedMethod() 959 explicit LateParsedDefaultArgument(Decl *P, 964 Decl *Param; 978 explicit LateParsedMethodDeclaration(Parser *P, Decl *M) in LateParsedMethodDeclaration() 987 Decl *Method; [all …]
|
/external/clang/lib/CodeGen/ |
D | CGDebugInfo.h | 72 llvm::DIType Decl; member 74 ObjCInterfaceCacheEntry(const ObjCInterfaceType *Type, llvm::DIType Decl, in ObjCInterfaceCacheEntry() 76 : Type(Type), Decl(Decl), Unit(Unit) {} in ObjCInterfaceCacheEntry() 97 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> RegionMap; 112 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> DeclCache; 116 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> StaticDataMemberCache; 154 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile F); 169 void CollectCXXMemberFunctions(const CXXRecordDecl *Decl, llvm::DIFile F, 173 void CollectCXXBases(const CXXRecordDecl *Decl, llvm::DIFile F, 206 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile F, [all …]
|
D | CGDecl.cpp | 34 void CodeGenFunction::EmitDecl(const Decl &D) { in EmitDecl() 36 case Decl::TranslationUnit: in EmitDecl() 37 case Decl::ExternCContext: in EmitDecl() 38 case Decl::Namespace: in EmitDecl() 39 case Decl::UnresolvedUsingTypename: in EmitDecl() 40 case Decl::ClassTemplateSpecialization: in EmitDecl() 41 case Decl::ClassTemplatePartialSpecialization: in EmitDecl() 42 case Decl::VarTemplateSpecialization: in EmitDecl() 43 case Decl::VarTemplatePartialSpecialization: in EmitDecl() 44 case Decl::TemplateTypeParm: in EmitDecl() [all …]
|
/external/clang/include/clang/Analysis/ |
D | CallGraph.h | 37 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/include/clang/Serialization/ |
D | ASTWriter.h | 137 DeclOrType(Decl *D) : Stored(D), IsType(false) { } in DeclOrType() 148 Decl *getDecl() const { in getDecl() 150 return static_cast<Decl *>(Stored); in getDecl() 173 llvm::DenseMap<const Decl *, serialization::DeclID> DeclIDs; 194 void associateDeclWithFile(const Decl *D, serialization::DeclID); 292 llvm::DenseMap<const Decl *, unsigned> AnonymousDeclarationNumbers; 299 const Decl *Dcl; 307 DeclUpdate(unsigned Kind, const Decl *Dcl) : Kind(Kind), Dcl(Dcl) {} in DeclUpdate() 316 const Decl *getDecl() const { return Dcl; } in getDecl() 325 typedef llvm::MapVector<const Decl *, UpdateRecord> DeclUpdateMap; [all …]
|
D | ASTReader.h | 64 class Decl; variable 420 std::vector<Decl *> DeclsLoaded; 440 llvm::SmallVector<std::pair<serialization::GlobalDeclID, Decl*>, 16> 453 llvm::SmallMapVector<Decl *, FunctionDecl *, 4> PendingExceptionSpecUpdates; 508 llvm::SmallPtrSet<Decl *, 4> PendingDefinitions; 510 typedef llvm::MapVector<Decl *, uint64_t, 511 llvm::SmallDenseMap<Decl *, unsigned, 4>, 512 SmallVector<std::pair<Decl *, uint64_t>, 4> > 592 Decl *D; 599 HiddenName(Decl *D) : Kind(Declaration), D(D), Id() { } in HiddenName() [all …]
|
/external/clang/lib/Sema/ |
D | SemaDeclAttr.cpp | 51 static bool isFunctionOrMethod(const Decl *D) { in isFunctionOrMethod() 56 static bool isFunctionOrMethodOrBlock(const Decl *D) { in isFunctionOrMethodOrBlock() 62 static bool hasDeclarator(const Decl *D) { in hasDeclarator() 71 static bool hasFunctionProto(const Decl *D) { in hasFunctionProto() 80 static unsigned getFunctionOrMethodNumParams(const Decl *D) { in getFunctionOrMethodNumParams() 88 static QualType getFunctionOrMethodParamType(const Decl *D, unsigned Idx) { in getFunctionOrMethodParamType() 97 static SourceRange getFunctionOrMethodParamRange(const Decl *D, unsigned Idx) { in getFunctionOrMethodParamRange() 107 static QualType getFunctionOrMethodResultType(const Decl *D) { in getFunctionOrMethodResultType() 113 static SourceRange getFunctionOrMethodResultSourceRange(const Decl *D) { in getFunctionOrMethodResultSourceRange() 121 static bool isFunctionOrMethodVariadic(const Decl *D) { in isFunctionOrMethodVariadic() [all …]
|