/external/clang/unittests/Frontend/ |
H A D | FrontendActionTest.cpp | 43 virtual bool VisitNamedDecl(NamedDecl *Decl) { argument 44 decl_names_.push_back(Decl->getQualifiedNameAsString());
|
/external/clang/lib/AST/ |
H A D | InheritViz.cpp | 17 #include "clang/AST/Decl.h" 94 const CXXRecordDecl *Decl local 96 for (CXXRecordDecl::base_class_const_iterator Base = Decl->bases_begin(); 97 Base != Decl->bases_end(); ++Base) {
|
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::AllocateDeserializedDecl(const ASTContext &Context, 67 Module *Decl::getOwningModuleSlow() const { 72 const char *Decl::getDeclKindName() const { 81 void Decl::setInvalidDecl(bool Invalid) { 94 #define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED; 100 bool Decl::StatisticsEnabled = false; 101 void Decl [all...] |
H A D | DeclTemplate.cpp | 10 // This file implements the C++ related Decl classes for templates. 229 NamedDecl *Decl) { 230 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); 231 return new (C) FunctionTemplateDecl(DC, L, Name, Params, Decl); 307 NamedDecl *Decl, 309 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); 310 ClassTemplateDecl *New = new (C) ClassTemplateDecl(DC, L, Name, Params, Decl); 428 Decl *DCanon = D->getCanonicalDecl(); 925 NamedDecl *Decl) { 927 return new (C) TypeAliasTemplateDecl(DC, L, Name, Params, Decl); 224 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 920 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 970 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl, VarTemplateDecl *PrevDecl) argument [all...] |
H A D | ExprConstant.cpp | 235 void addDeclUnchecked(const Decl *D, bool Virtual = false) { 849 const Decl *D, bool Virtual = false) { 869 explicit MemberPtr(const ValueDecl *Decl) : argument 870 DeclAndIsDerivedMember(Decl, false), Path() {} 907 /// Perform a cast towards the class of the Decl (either up or down the 1270 const ValueDecl *Decl = GetLValueBaseDecl(Value); local 1271 return Decl && Decl->isWeak(); 1285 const ValueDecl *Decl = Value.getLValueBase().dyn_cast<const ValueDecl*>(); local 1286 return !Decl || !Dec [all...] |
H A D | Expr.cpp | 49 Decl *D = Ty->getDecl(); 428 // Filter out cases where the found Decl is the same as the value refenenced. 478 std::string PredefinedExpr::ComputeName(IdentType IT, const Decl *CurrentDecl) { 500 const FunctionDecl *Decl = FD; local 502 Decl = Pattern; 503 const FunctionType *AFT = Decl->getType()->getAs<FunctionType>(); 510 for (unsigned i = 0, e = Decl->getNumParams(); i != e; ++i) { 512 POut << Decl->getParamDecl(i)->getType().stream(Policy); 1110 Decl *CallExpr::getCalleeDecl() { 2051 if (const Decl *F [all...] |
/external/clang/unittests/Tooling/ |
H A D | RecursiveASTVisitorTest.cpp | 53 bool VisitNamedDecl(NamedDecl *Decl) { argument 56 Decl->getNameForDiagnostic(OS, 57 Decl->getASTContext().getPrintingPolicy(), 59 Match(OS.str(), Decl->getLocation());
|
/external/llvm/lib/Transforms/ObjCARC/ |
H A D | ARCRuntimeEntryPoints.h | 126 Constant *getVoidRetI8XEntryPoint(Constant *&Decl, argument 128 if (Decl) 129 return Decl; 138 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); 141 Constant *getI8XRetI8XEntryPoint(Constant *& Decl, argument 144 if (Decl) 145 return Decl; 157 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); 160 Constant *getI8XRetI8XXI8XEntryPoint(Constant *&Decl, argument 162 if (Decl) [all...] |
H A D | ObjCARCContract.cpp | 141 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_RetainRV); local 142 cast<CallInst>(Retain)->setCalledFunction(Decl); 192 Constant *Decl = EP.get(Class == IC_AutoreleaseRV ? local 195 Retain->setCalledFunction(Decl); 276 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_StoreStrong); local 277 CallInst *StoreStrong = CallInst::Create(Decl, Args, "", Store);
|
H A D | ObjCARCOpts.cpp | 1509 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_Release); local 1510 CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "", 2427 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_Retain); local 2428 CallInst *Call = CallInst::Create(Decl, MyArg, "", InsertPt); 2441 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_Release); local 2442 CallInst *Call = CallInst::Create(Decl, MyArg, "", InsertPt); 2800 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_Retain); local 2801 CallInst *CI = CallInst::Create(Decl, EarlierCall, "", Call); 2829 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_Retain); local 2830 CallInst *CI = CallInst::Create(Decl, EarlierCal [all...] |
/external/clang/include/clang/Sema/ |
H A D | DelayedDiagnostic.h | 165 return DeprecationData.Decl; 204 const NamedDecl *Decl; member in struct:clang::sema::DelayedDiagnostic::DD
|
/external/clang/lib/Parse/ |
H A D | ParseTemplate.cpp | 26 Decl * 59 Decl * 119 SmallVector<Decl*, 4> TemplateParams; 163 Decl * 198 Decl *Decl = Actions.ParsedFreeStandingDeclSpec( local 203 DS.complete(Decl); 204 return Decl; 273 Decl *ThisDecl = ParseDeclarationAfterDeclarator(DeclaratorInfo, 301 SmallVectorImpl<Decl*> [all...] |
H A D | ParseStmt.cpp | 187 DeclGroupPtrTy Decl = ParseDeclaration(Stmts, Declarator::BlockContext, local 189 return Actions.ActOnDeclStmt(Decl, DeclStart, DeclEnd); 802 SmallVector<Decl *, 8> DeclsInGroup; 911 Decl *&DeclResult, 991 Decl *CondVar = 0; 1120 Decl *CondVar = 0; 1212 Decl *CondVar = 0; 1385 Decl *SecondVar = 0; 2376 Decl *Parser::ParseFunctionStatementBody(Decl *Dec argument 2410 ParseFunctionTryBlock(Decl *Decl, ParseScope &BodyScope) argument [all...] |
/external/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 137 static bool hasImplicitExceptionSpec(FunctionDecl *Decl) { argument 138 if (!isa<CXXDestructorDecl>(Decl) && 139 Decl->getDeclName().getCXXOverloadedOperator() != OO_Delete && 140 Decl->getDeclName().getCXXOverloadedOperator() != OO_Array_Delete) 145 if (!Decl->getTypeSourceInfo()) 149 Decl->getTypeSourceInfo()->getType()->getAs<FunctionProtoType>(); 793 static CanThrowResult canCalleeThrow(Sema &S, const Expr *E, const Decl *D) {
|
H A D | SemaAccess.cpp | 1131 Decl *ImmediateChild; 1138 ImmediateChild = cast<Decl>(DC); 1479 void Sema::HandleDelayedAccessCheck(DelayedDiagnostic &DD, Decl *D) { 1506 Decl *NamingD = FindInstantiatedDecl(Loc, DD.getAccessNamingClass(), 1509 Decl *TargetD = FindInstantiatedDecl(Loc, DD.getAccessTarget(), 1863 /// Checks access to Decl from the given class. The check will take access 1866 /// \param Decl the declaration to check if it can be accessed 1868 /// \return true if the Decl is accessible from the Class, false otherwise. 1869 bool Sema::IsSimplyAccessible(NamedDecl *Decl, DeclContext *Ctx) { argument 1871 if (!Decl [all...] |
H A D | SemaTemplateInstantiateDecl.cpp | 1 //===--- SemaTemplateInstantiateDecl.cpp - C++ Template Decl Instantiation ===/ 65 const AlignedAttr *Aligned, Decl *New, bool IsPackExpansion) { 85 const AlignedAttr *Aligned, Decl *New) { 122 const Decl *Tmpl, Decl *New, 160 Decl * 165 Decl * 173 Decl * 178 Decl * 192 Decl *TemplateDeclInstantiato 2211 VisitClassScopeFunctionSpecializationDecl( ClassScopeFunctionSpecializationDecl *Decl) argument 2932 InstantiateExceptionSpec(SourceLocation PointOfInstantiation, FunctionDecl *Decl) argument [all...] |
H A D | SemaExprObjC.cpp | 442 NamedDecl *Decl = LookupSingleName(TUScope, NSStringId, local 444 NSStringDecl = dyn_cast_or_null<ObjCInterfaceDecl>(Decl);
|
H A D | SemaStmt.cpp | 84 Decl *decl = DG.getSingleDecl(); 218 if (const Decl *FD = CE->getCalleeDecl()) { 313 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin(); 432 Sema::ActOnIfStmt(SourceLocation IfLoc, FullExprArg CondVal, Decl *CondVar, 571 Decl *CondVar) { 1169 Decl *CondVar, Stmt *Body) { 1523 Stmt *First, FullExprArg second, Decl *secondVar, 1739 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init, argument 1745 SemaRef.DeduceAutoType(Decl->getTypeSourceInfo(), Init, InitType) == 1749 Decl 1802 VarDecl *Decl = VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type, local [all...] |
H A D | SemaTemplate.cpp | 461 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { 480 TemplateDecl *Sema::AdjustDeclIfTemplate(Decl *&D) { 561 Decl *Sema::ActOnTypeParameter(Scope *S, bool Typename, bool Ellipsis, 681 Decl *Sema::ActOnNonTypeTemplateParameter(Scope *S, Declarator &D, 752 Decl *Sema::ActOnTemplateTemplateParameter(Scope* S, 832 Decl **Params, unsigned NumParams, 2083 ClassTemplateSpecializationDecl *Decl local 2086 if (!Decl) { 2090 Decl = ClassTemplateSpecializationDecl::Create(Context, 2098 ClassTemplate->AddSpecialization(Decl, InsertPo 2668 VarTemplateSpecializationDecl *Decl = BuildVarTemplateInstantiation( local 2704 DeclResult Decl = CheckVarTemplateId(Template, TemplateLoc, NameInfo.getLoc(), local [all...] |
/external/llvm/lib/IR/ |
H A D | DIBuilder.cpp | 180 DIDescriptor Decl, 185 Decl, 935 DIType Ty, bool isLocalToUnit, Value *Val, MDNode *Decl) { 949 DIDescriptor(Decl) 1025 MDNode *Decl) { 1047 Decl, 179 createImportedDeclaration(DIScope Context, DIDescriptor Decl, unsigned Line) argument 933 createStaticVariable(DIDescriptor Context, StringRef Name, StringRef LinkageName, DIFile F, unsigned LineNumber, DIType Ty, bool isLocalToUnit, Value *Val, MDNode *Decl) argument 1015 createFunction(DIDescriptor Context, StringRef Name, StringRef LinkageName, DIFile File, unsigned LineNo, DICompositeType Ty, bool isLocalToUnit, bool isDefinition, unsigned ScopeLine, unsigned Flags, bool isOptimized, Function *Fn, MDNode *TParams, MDNode *Decl) argument
|
/external/clang/include/clang/AST/ |
H A D | DeclBase.h | 10 // This file defines the Decl and DeclContext interfaces. 80 /// Decl - This represents one declaration (or definition), e.g. a variable, 83 class Decl { class in namespace:clang 85 /// \brief Lists the kind of concrete classes of Decl. 111 /// Decl currently provides 15 bits of IDNS bits. 208 llvm::PointerIntPair<Decl *, 2, unsigned> NextInContextAndBits; 221 /// the DeclContext where the Decl was declared. 305 Decl(Kind DK, DeclContext *DC, SourceLocation L) function in class:clang::Decl 316 Decl(Kind DK, EmptyShell Empty) function in class:clang::Decl 326 virtual ~Decl(); [all...] |
H A D | DeclTemplate.h | 246 NamedDecl *Decl) 247 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), 259 static bool classof(const Decl *D) { return classofKind(D->getKind()); } 627 NamedDecl *Decl) 628 : TemplateDecl(DK, DC, L, Name, Params, Decl), Common() { } 720 static bool classof(const Decl *D) { return classofKind(D->getKind()); } 772 TemplateParameterList *Params, NamedDecl *Decl) 773 : RedeclarableTemplateDecl(FunctionTemplate, DC, L, Name, Params, Decl) { } 867 NamedDecl *Decl); 873 static bool classof(const Decl * 625 RedeclarableTemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 771 FunctionTemplateDecl(DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 1854 ClassTemplateDecl(DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 2125 TypeAliasTemplateDecl(DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument 2711 VarTemplateDecl(DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument [all...] |
H A D | ASTContext.h | 21 #include "clang/AST/Decl.h" 271 /// wasting space in the Decl class. 272 llvm::DenseMap<const Decl*, AttrVec*> DeclAttrs; 440 /// 'NodeT' can be one of Decl, Stmt, Type, TypeLoc, 540 const Decl *getOriginalDecl() const LLVM_READONLY { 544 void setOriginalDecl(const Decl *Orig) { 550 const Decl *OriginalDecl; 558 mutable llvm::DenseMap<const Decl *, RawCommentAndCacheFlags> RedeclComments; 562 mutable llvm::DenseMap<const Decl *, comments::FullComment *> ParsedComments; 566 RawComment *getRawCommentForDeclNoCache(const Decl * 1015 getTypeDeclType(const TypeDecl *Decl, const TypeDecl *PrevDecl = 0) const argument [all...] |
H A D | Type.h | 3083 UnresolvedUsingTypenameDecl *Decl; 3088 Decl(const_cast<UnresolvedUsingTypenameDecl*>(D)) {} 3092 UnresolvedUsingTypenameDecl *getDecl() const { return Decl; } 3102 return Profile(ID, Decl); 3112 TypedefNameDecl *Decl; 3119 Decl(const_cast<TypedefNameDecl*>(D)) { 3125 TypedefNameDecl *getDecl() const { return Decl; } 3821 CXXRecordDecl *Decl; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::InjectedClassNameType 3843 Decl(D), InjectedType(TST) { 4376 mutable ObjCInterfaceDecl *Decl; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::ObjCInterfaceType [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 414 BaseInfo(const CXXRecordDecl *Decl, CharUnits Offset, unsigned Index) argument 415 : Decl(Decl), Offset(Offset), Index(Index) { 418 const CXXRecordDecl *Decl; member in struct:__anon15205::__anon15206::BaseInfo 454 bool IsPrimaryBase = Layout.getPrimaryBase() == Base.Decl; 455 Build(Val.getStructBase(Base.Index), Base.Decl, IsPrimaryBase, 876 if (const ValueDecl *Decl = LVBase.dyn_cast<const ValueDecl*>()) { 877 if (Decl->hasAttr<WeakRefAttr>()) 878 return CGM.GetWeakRefReference(Decl); 879 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(Decl)) [all...] |