/external/clang/include/clang/AST/ |
H A D | ASTContext.h | 21 #include "clang/AST/Decl.h" 272 /// wasting space in the Decl class. 273 llvm::DenseMap<const Decl*, AttrVec*> DeclAttrs; 278 llvm::DenseMap<Decl*, Decl*> MergedDecls; 453 /// 'NodeT' can be one of Decl, Stmt, Type, TypeLoc, 564 const Decl *getOriginalDecl() const LLVM_READONLY { 568 void setOriginalDecl(const Decl *Orig) { 574 const Decl *OriginalDecl; 582 mutable llvm::DenseMap<const Decl *, RawCommentAndCacheFlag 1062 getTypeDeclType(const TypeDecl *Decl, const TypeDecl *PrevDecl = nullptr) const argument [all...] |
H A D | DeclBase.h | 10 // This file defines the Decl and DeclContext interfaces. 68 /// Decl - This represents one declaration (or definition), e.g. a variable, 71 class Decl { class in namespace:clang 73 /// \brief Lists the kind of concrete classes of Decl. 99 /// Decl currently provides 15 bits of IDNS bits. 201 llvm::PointerIntPair<Decl *, 2, unsigned> NextInContextAndBits; 214 /// the DeclContext where the Decl was declared. 314 Decl(Kind DK, DeclContext *DC, SourceLocation L) function in class:clang::Decl 325 Decl(Kind DK, EmptyShell Empty) function in class:clang::Decl 335 virtual ~Decl(); [all...] |
H A D | DeclTemplate.h | 248 NamedDecl *Decl) 249 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), 261 static bool classof(const Decl *D) { return classofKind(D->getKind()); } 627 TemplateParameterList *Params, NamedDecl *Decl) 628 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C), 726 static bool classof(const Decl *D) { return classofKind(D->getKind()); } 779 NamedDecl *Decl) 781 Decl) {} 879 NamedDecl *Decl); 885 static bool classof(const Decl * 625 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 777 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 1842 ClassTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 2104 TypeAliasTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 2677 VarTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument [all...] |
H A D | Type.h | 3122 UnresolvedUsingTypenameDecl *Decl; 3127 Decl(const_cast<UnresolvedUsingTypenameDecl*>(D)) {} 3131 UnresolvedUsingTypenameDecl *getDecl() const { return Decl; } 3141 return Profile(ID, Decl); 3151 TypedefNameDecl *Decl; 3158 Decl(const_cast<TypedefNameDecl*>(D)) { 3164 TypedefNameDecl *getDecl() const { return Decl; } 3866 CXXRecordDecl *Decl; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::InjectedClassNameType 3888 Decl(D), InjectedType(TST) { 4423 mutable ObjCInterfaceDecl *Decl; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::ObjCInterfaceType [all...] |
/external/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchers.h | 121 typedef internal::Matcher<Decl> DeclarationMatcher; 157 const internal::VariadicAllOfMatcher<Decl> decl; 170 const internal::VariadicDynCastAllOfMatcher<Decl, NamedDecl> namedDecl; 181 const internal::VariadicDynCastAllOfMatcher<Decl, NamespaceDecl> namespaceDecl; 191 Decl, 201 Decl, 215 Decl, 227 const internal::VariadicDynCastAllOfMatcher<Decl, DeclaratorDecl> 238 const internal::VariadicDynCastAllOfMatcher<Decl, ParmVarDecl> parmVarDecl; 252 Decl, 3549 AST_MATCHER_P_OVERLOAD(Decl, equalsNode, const Decl*, Other, 0) argument [all...] |
/external/clang/include/clang/Sema/ |
H A D | DelayedDiagnostic.h | 170 return DeprecationData.Decl; 214 const NamedDecl *Decl; member in struct:clang::sema::DelayedDiagnostic::DD
|
H A D | Sema.h | 97 class Decl; 398 llvm::SmallPtrSet<const Decl*, 4> ParsingInitForAutoVars; 619 SmallVector<Decl*,2> WeakTopLevelDecl; 753 Decl *ManglingContextDecl; 773 Decl *ManglingContextDecl, 800 Decl *&ManglingContextDecl); 1056 const Decl *D = nullptr, 1101 SmallVectorImpl<Decl *> &WeakTopLevelDecls() { return WeakTopLevelDecl; } 1386 // Symbol table / Decl tracking callbacks: SemaDecl.cpp. 1395 DeclGroupPtrTy ConvertDeclToDeclGroup(Decl *Pt 7148 DeclaratorDecl *Decl; member in struct:clang::Sema::SectionInfo 7152 SectionInfo(DeclaratorDecl *Decl, SourceLocation PragmaSectionLocation, int SectionFlags) argument [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 49 void migrateDecl(Decl *D); 66 void migrateCFAnnotation(ASTContext &Ctx, const Decl *Decl); 99 llvm::SmallVector<const Decl *, 8> CFFunctionIBCandidates; 161 bool canModify(const Decl *D) { 169 return canModify(cast<Decl>(MD->getDeclContext())); 272 void ObjCMigrateASTConsumer::migrateDecl(Decl *D) { 1008 static bool AttributesMatch(const Decl *Decl1, const Decl *Decl2, 1274 const Decl *FirstF 1299 migrateCFAnnotation(ASTContext &Ctx, const Decl *Decl) argument [all...] |
/external/clang/lib/AST/ |
H A D | ASTContext.cpp | 63 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { 263 const Decl *adjustDeclToTemplate(const Decl *D) { 308 static_cast<const Decl*>(PU.get<ClassTemplateDecl *>()) : 309 static_cast<const Decl*>( 333 const Decl *D, 334 const Decl **OriginalDecl) const { 339 llvm::DenseMap<const Decl *, RawCommentAndCacheFlags>::iterator Pos = 353 const Decl *OriginalDeclForRC = nullptr; 355 llvm::DenseMap<const Decl *, RawCommentAndCacheFlag 2924 getInjectedClassNameType(CXXRecordDecl *Decl, QualType TST) const argument 2975 getTypedefType(const TypedefNameDecl *Decl, QualType Canonical) const argument 3628 getObjCInterfaceType(const ObjCInterfaceDecl *Decl, ObjCInterfaceDecl *PrevDecl) const argument 4796 const BlockDecl *Decl = Expr->getBlockDecl(); local 4849 getObjCEncodingForFunctionDecl(const FunctionDecl *Decl, std::string& S) argument 4906 getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl, std::string& S, bool Extended) const argument 6132 setObjCConstantStringInterface(ObjCInterfaceDecl *Decl) argument [all...] |
H A D | DeclBase.cpp | 10 // This file implements the Decl and DeclContext classes. 18 #include "clang/AST/Decl.h" 44 void Decl::updateOutOfDate(IdentifierInfo &II) const { 48 void *Decl::operator new(std::size_t Size, const ASTContext &Context, 66 void *Decl::operator new(std::size_t Size, const ASTContext &Ctx, 72 Module *Decl::getOwningModuleSlow() const { 77 const char *Decl::getDeclKindName() const { 86 void Decl::setInvalidDecl(bool Invalid) { 100 #define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED; 106 bool Decl [all...] |
H A D | DeclTemplate.cpp | 10 // This file implements the C++ related Decl classes for templates. 230 NamedDecl *Decl) { 231 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); 232 return new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); 307 NamedDecl *Decl, 309 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); 311 Params, Decl); 425 Decl *DCanon = D->getCanonicalDecl(); 888 NamedDecl *Decl) { 890 return new (C, DC) TypeAliasTemplateDecl(C, DC, L, Name, Params, Decl); 225 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 302 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl, ClassTemplateDecl *PrevDecl) argument 883 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 940 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, VarDecl *Decl) argument [all...] |
H A D | Expr.cpp | 50 Decl *D = Ty->getDecl(); 403 // Filter out cases where the found Decl is the same as the value refenenced. 453 std::string PredefinedExpr::ComputeName(IdentType IT, const Decl *CurrentDecl) { 498 const FunctionDecl *Decl = FD; local 500 Decl = Pattern; 501 const FunctionType *AFT = Decl->getType()->getAs<FunctionType>(); 521 for (unsigned i = 0, e = Decl->getNumParams(); i != e; ++i) { 523 POut << Decl->getParamDecl(i)->getType().stream(Policy); 624 if (DC->isFunctionOrMethod() && (DC->getDeclKind() != Decl::Captured)) { 625 const Decl * [all...] |
H A D | ExprConstant.cpp | 235 void addDeclUnchecked(const Decl *D, bool Virtual = false) { 978 const Decl *D, bool Virtual = false) { 998 explicit MemberPtr(const ValueDecl *Decl) : argument 999 DeclAndIsDerivedMember(Decl, false), Path() {} 1036 /// Perform a cast towards the class of the Decl (either up or down the 1415 const ValueDecl *Decl = GetLValueBaseDecl(Value); local 1416 return Decl && Decl->isWeak(); 1430 const ValueDecl *Decl = Value.getLValueBase().dyn_cast<const ValueDecl*>(); local 1431 return !Decl || !Dec [all...] |
H A D | InheritViz.cpp | 17 #include "clang/AST/Decl.h" 94 const CXXRecordDecl *Decl local 96 for (const auto &Base : Decl->bases()) {
|
/external/clang/lib/ASTMatchers/Dynamic/ |
H A D | Parser.cpp | 431 StringRef Decl) { 435 MatcherCompletion(TypedText.substr(CompToken.Text.size()), Decl)); 430 addCompletion(const TokenInfo &CompToken, StringRef TypedText, StringRef Decl) argument
|
H A D | Registry.cpp | 368 ASTNodeKind::getFromNodeKind<Decl>(), 433 std::string Decl; local 434 llvm::raw_string_ostream OS(Decl);
|
/external/clang/lib/CodeGen/ |
H A D | CGDebugInfo.h | 72 llvm::DIType Decl; member in struct:clang::CodeGen::CGDebugInfo::ObjCInterfaceCacheEntry 74 ObjCInterfaceCacheEntry(const ObjCInterfaceType *Type, llvm::DIType Decl, argument 76 : Type(Type), Decl(Decl), Unit(Unit) {} 92 llvm::DenseMap<const Decl *, llvm::WeakVH> RegionMap; 107 llvm::DenseMap<const Decl *, llvm::WeakVH> DeclCache; 110 llvm::DenseMap<const Decl *, llvm::WeakVH> StaticDataMemberCache; 145 llvm::DICompositeType getOrCreateFunctionType(const Decl *D, QualType FnType, 161 void CollectCXXMemberFunctions(const CXXRecordDecl *Decl, 166 void CollectCXXBases(const CXXRecordDecl *Decl, [all...] |
H A D | CGExprConstant.cpp | 393 BaseInfo(const CXXRecordDecl *Decl, CharUnits Offset, unsigned Index) argument 394 : Decl(Decl), Offset(Offset), Index(Index) { 397 const CXXRecordDecl *Decl; member in struct:__anon17836::__anon17837::BaseInfo 437 bool IsPrimaryBase = Layout.getPrimaryBase() == Base.Decl; 438 Build(Val.getStructBase(Base.Index), Base.Decl, IsPrimaryBase, 861 if (const ValueDecl *Decl = LVBase.dyn_cast<const ValueDecl*>()) { 862 if (Decl->hasAttr<WeakRefAttr>()) 863 return CGM.GetWeakRefReference(Decl); 864 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(Decl)) [all...] |
H A D | CGRecordLayoutBuilder.cpp | 171 bool hasOwnStorage(const CXXRecordDecl *Decl, const CXXRecordDecl *Query); 485 bool CGRecordLowering::hasOwnStorage(const CXXRecordDecl *Decl, argument 487 const ASTRecordLayout &DeclLayout = Context.getASTRecordLayout(Decl); 490 for (const auto &Base : Decl->bases())
|
/external/clang/lib/Parse/ |
H A D | ParseStmt.cpp | 210 DeclGroupPtrTy Decl = ParseDeclaration(Stmts, Declarator::BlockContext, local 212 return Actions.ActOnDeclStmt(Decl, DeclStart, DeclEnd); 910 SmallVector<Decl *, 8> DeclsInGroup; 1013 Decl *&DeclResult, 1093 Decl *CondVar = nullptr; 1220 Decl *CondVar = nullptr; 1308 Decl *CondVar = nullptr; 1493 Decl *SecondVar = nullptr; 1847 Decl *Parser::ParseFunctionStatementBody(Decl *Dec argument 1880 ParseFunctionTryBlock(Decl *Decl, ParseScope &BodyScope) argument [all...] |
H A D | ParseTemplate.cpp | 26 Decl * 59 Decl * 115 SmallVector<Decl*, 4> TemplateParams; 158 Decl * 193 Decl *Decl = Actions.ParsedFreeStandingDeclSpec( local 198 DS.complete(Decl); 199 return Decl; 268 Decl *ThisDecl = ParseDeclarationAfterDeclarator(DeclaratorInfo, 296 SmallVectorImpl<Decl*> [all...] |
/external/clang/lib/Sema/ |
H A D | SemaAccess.cpp | 1122 Decl *ImmediateChild; 1129 ImmediateChild = cast<Decl>(DC); 1468 void Sema::HandleDelayedAccessCheck(DelayedDiagnostic &DD, Decl *D) { 1496 Decl *NamingD = FindInstantiatedDecl(Loc, DD.getAccessNamingClass(), 1499 Decl *TargetD = FindInstantiatedDecl(Loc, DD.getAccessTarget(), 1847 /// Checks access to Decl from the given class. The check will take access 1850 /// \param Decl the declaration to check if it can be accessed 1852 /// \return true if the Decl is accessible from the Class, false otherwise. 1853 bool Sema::IsSimplyAccessible(NamedDecl *Decl, DeclContext *Ctx) { argument 1855 if (!Decl [all...] |
H A D | SemaAttr.cpp | 365 DeclaratorDecl *Decl) { 369 SectionInfo(Decl, SourceLocation(), SectionFlags); 376 auto OtherDecl = Section->second.Decl; 377 Diag(Decl->getLocation(), diag::err_section_conflict) 378 << Decl << OtherDecl; 381 if (auto A = Decl->getAttr<SectionAttr>()) 461 void Sema::AddCFAuditedAttribute(Decl *D) { 504 void Sema::AddPushedVisibilityAttribute(Decl *D) { 363 UnifySection(const StringRef &SectionName, int SectionFlags, DeclaratorDecl *Decl) argument
|
H A D | SemaDecl.cpp | 54 Sema::DeclGroupPtrTy Sema::ConvertDeclToDeclGroup(Decl *Ptr, Decl *OwnedType) { 56 Decl *Group[2] = { OwnedType, Ptr }; 383 // will be attached to the enclosing Expr or Decl node). 1083 void Sema::ActOnReenterFunctionContext(Scope* S, Decl *D) { 1499 assert(isa<NamedDecl>(TmpD) && "Decl isn't NamedDecl?"); 1671 // Create Decl objects for each parameter, adding them to the 1906 static bool DeclHasAttr(const Decl *D, const Attr *A) { 1925 static bool isAttributeTargetADefinition(Decl *D) { 1937 static bool mergeAlignedAttrs(Sema &S, NamedDecl *New, Decl *Ol 10064 ActOnSkippedFunctionBody(Decl *Decl) argument [all...] |
H A D | SemaDeclCXX.cpp | 84 NamedDecl *Decl = DRE->getDecl(); local 85 if (ParmVarDecl *Param = dyn_cast<ParmVarDecl>(Decl)) { 97 } else if (VarDecl *VDecl = dyn_cast<VarDecl>(Decl)) { 298 Sema::ActOnParamDefaultArgument(Decl *param, SourceLocation EqualLoc, 334 void Sema::ActOnParamUnparsedDefaultArgument(Decl *param, 347 void Sema::ActOnParamDefaultArgumentError(Decl *param) { 608 if (Old->getFriendObjectKind() == Decl::FOK_Undeclared && 823 case Decl::StaticAssert: 824 case Decl::Using: 825 case Decl 5164 CXXMethodDecl *Decl = SMOR->getMethod(); local 11525 Decl *Decl = StaticAssertDecl::Create(Context, CurContext, StaticAssertLoc, local [all...] |