Searched defs:Decl (Results 1 - 25 of 26) sorted by relevance

12

/external/clang/unittests/Frontend/
H A DFrontendActionTest.cpp44 virtual bool VisitNamedDecl(NamedDecl *Decl) { argument
45 decl_names_.push_back(Decl->getQualifiedNameAsString());
/external/clang/lib/AST/
H A DInheritViz.cpp17 #include "clang/AST/Decl.h"
92 const CXXRecordDecl *Decl local
94 for (CXXRecordDecl::base_class_const_iterator Base = Decl->bases_begin();
95 Base != Decl->bases_end(); ++Base) {
H A DDeclBase.cpp10 // This file implements the Decl and DeclContext classes.
15 #include "clang/AST/Decl.h"
42 void *Decl::AllocateDeserializedDecl(const ASTContext &Context,
61 const char *Decl::getDeclKindName() const {
70 void Decl::setInvalidDecl(bool Invalid) {
83 #define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED;
89 bool Decl::StatisticsEnabled = false;
90 void Decl::EnableStatistics() {
94 void Decl::PrintStats() {
95 llvm::errs() << "\n*** Decl Stat
[all...]
H A DDeclTemplate.cpp10 // This file implements the C++ related Decl classes for templates.
214 NamedDecl *Decl) {
215 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl));
216 return new (C) FunctionTemplateDecl(DC, L, Name, Params, Decl);
276 NamedDecl *Decl,
278 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl));
279 ClassTemplateDecl *New = new (C) ClassTemplateDecl(DC, L, Name, Params, Decl);
396 Decl *DCanon = D->getCanonicalDecl();
838 NamedDecl *Decl) {
840 return new (C) TypeAliasTemplateDecl(DC, L, Name, Params, Decl);
209 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
271 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl, ClassTemplateDecl *PrevDecl) argument
833 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
[all...]
H A DExpr.cpp326 // Filter out cases where the found Decl is the same as the value refenenced.
384 std::string PredefinedExpr::ComputeName(IdentType IT, const Decl *CurrentDecl) {
405 const FunctionDecl *Decl = FD; local
407 Decl = Pattern;
408 const FunctionType *AFT = Decl->getType()->getAs<FunctionType>();
415 for (unsigned i = 0, e = Decl->getNumParams(); i != e; ++i) {
418 Decl->getParamDecl(i)->getType().getAsStringInternal(Param, Policy);
867 Decl *CallExpr::getCalleeDecl() {
1797 if (const Decl *FD = CE->getCalleeDecl()) {
1947 const Decl *
[all...]
H A DExprConstant.cpp216 void addDeclUnchecked(const Decl *D, bool Virtual = false) {
756 const Decl *D, bool Virtual = false) {
776 explicit MemberPtr(const ValueDecl *Decl) : argument
777 DeclAndIsDerivedMember(Decl, false), Path() {}
814 /// Perform a cast towards the class of the Decl (either up or down the
1100 const ValueDecl *Decl = GetLValueBaseDecl(Value); local
1101 return Decl && Decl->isWeak();
1115 const ValueDecl *Decl = Value.getLValueBase().dyn_cast<const ValueDecl*>(); local
1116 return !Decl || !Dec
[all...]
H A DASTContext.cpp280 for (llvm::DenseMap<const Decl*, AttrVec*>::iterator A = DeclAttrs.begin(),
503 AttrVec& ASTContext::getDeclAttrs(const Decl *D) {
514 void ASTContext::eraseDeclAttrs(const Decl *D) {
515 llvm::DenseMap<const Decl*, AttrVec*>::iterator Pos = DeclAttrs.find(D);
722 CharUnits ASTContext::getDeclAlign(const Decl *D, bool RefAsPointee) const {
1201 void ASTContext::CollectInheritedProtocols(const Decl *CDecl,
2227 QualType ASTContext::getInjectedClassNameType(CXXRecordDecl *Decl, argument
2229 assert(NeedsInjectedClassNameType(Decl));
2230 if (Decl->TypeForDecl) {
2231 assert(isa<InjectedClassNameType>(Decl
2280 getTypedefType(const TypedefNameDecl *Decl, QualType Canonical) const argument
2862 getObjCInterfaceType(const ObjCInterfaceDecl *Decl, ObjCInterfaceDecl *PrevDecl) const argument
4033 const BlockDecl *Decl = Expr->getBlockDecl(); local
4078 getObjCEncodingForFunctionDecl(const FunctionDecl *Decl, std::string& S) argument
4138 getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl, std::string& S, bool Extended) const argument
4939 setObjCConstantStringInterface(ObjCInterfaceDecl *Decl) argument
[all...]
/external/clang/include/clang/Sema/
H A DDelayedDiagnostic.h164 return DeprecationData.Decl;
200 const NamedDecl *Decl; member in struct:clang::sema::DelayedDiagnostic::__anon2960::__anon2961
/external/clang/lib/Parse/
H A DParseTemplate.cpp26 Decl *
80 Decl *
138 SmallVector<Decl*, 4> TemplateParams;
191 Decl *
227 Decl *Decl = Actions.ParsedFreeStandingDeclSpec(getCurScope(), AS, DS); local
228 DS.complete(Decl);
229 return Decl;
251 Decl *ThisDecl = ParseDeclarationAfterDeclarator(DeclaratorInfo,
301 SmallVectorImpl<Decl*>
[all...]
H A DParseStmt.cpp230 DeclGroupPtrTy Decl = ParseDeclaration(Stmts, Declarator::BlockContext, local
232 return Actions.ActOnDeclStmt(Decl, DeclStart, DeclEnd);
753 SmallVector<Decl *, 8> DeclsInGroup;
867 Decl *&DeclResult,
937 Decl *CondVar = 0;
1071 Decl *CondVar = 0;
1163 Decl *CondVar = 0;
1329 Decl *SecondVar = 0;
1947 Decl *Parser::ParseFunctionStatementBody(Decl *Dec argument
1980 ParseFunctionTryBlock(Decl *Decl, ParseScope &BodyScope) argument
[all...]
/external/clang/lib/Sema/
H A DSemaAccess.cpp1124 Decl *ImmediateChild;
1131 ImmediateChild = cast<Decl>(DC);
1422 void Sema::HandleDelayedAccessCheck(DelayedDiagnostic &DD, Decl *decl) {
1449 Decl *NamingD = FindInstantiatedDecl(Loc, DD.getAccessNamingClass(),
1452 Decl *TargetD = FindInstantiatedDecl(Loc, DD.getAccessTarget(),
1775 /// Checks access to Decl from the given class. The check will take access
1778 /// \param Decl the declaration to check if it can be accessed
1780 /// \return true if the Decl is accessible from the Class, false otherwise.
1781 bool Sema::IsSimplyAccessible(NamedDecl *Decl, DeclContext *Ctx) { argument
1783 if (!Decl
[all...]
H A DSemaTemplateInstantiateDecl.cpp1 //===--- SemaTemplateInstantiateDecl.cpp - C++ Template Decl Instantiation ===/
64 const Decl *Tmpl, Decl *New,
110 Decl *
115 Decl *
123 Decl *
128 Decl *
142 Decl *TemplateDeclInstantiator::InstantiateTypedefNameDecl(TypedefNameDecl *D,
201 Decl *TemplateDeclInstantiator::VisitTypedefDecl(TypedefDecl *D) {
202 Decl *Typede
1949 VisitClassScopeFunctionSpecializationDecl( ClassScopeFunctionSpecializationDecl *Decl) argument
2380 InstantiateExceptionSpec(SourceLocation PointOfInstantiation, FunctionDecl *Decl) argument
[all...]
H A DSemaExprObjC.cpp419 NamedDecl *Decl = LookupSingleName(TUScope, NSStringId, local
421 NSStringDecl = dyn_cast_or_null<ObjCInterfaceDecl>(Decl);
H A DSemaStmt.cpp178 if (const Decl *FD = CE->getCalleeDecl()) {
263 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin();
374 Sema::ActOnIfStmt(SourceLocation IfLoc, FullExprArg CondVal, Decl *CondVar,
506 Decl *CondVar) {
995 Decl *CondVar, Stmt *Body) {
1042 Stmt *First, FullExprArg second, Decl *secondVar,
1228 VarDecl *Decl = VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type, local
1230 Decl->setImplicit();
1231 return Decl;
1236 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Exp argument
1296 BuildForRangeBeginEndCall(Sema &SemaRef, Scope *S, SourceLocation Loc, VarDecl *Decl, BeginEndFunction BEF, const DeclarationNameInfo &NameInfo, LookupResult &MemberLookup, Expr *Range) argument
[all...]
H A DSemaTemplate.cpp451 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) {
470 TemplateDecl *Sema::AdjustDeclIfTemplate(Decl *&D) {
542 Decl *Sema::ActOnTypeParameter(Scope *S, bool Typename, bool Ellipsis,
670 Decl *Sema::ActOnNonTypeTemplateParameter(Scope *S, Declarator &D,
748 Decl *Sema::ActOnTemplateTemplateParameter(Scope* S,
826 Decl **Params, unsigned NumParams,
2043 ClassTemplateSpecializationDecl *Decl local
2046 if (!Decl) {
2050 Decl = ClassTemplateSpecializationDecl::Create(Context,
2058 ClassTemplate->AddSpecialization(Decl, InsertPo
[all...]
H A DSemaDeclCXX.cpp80 NamedDecl *Decl = DRE->getDecl(); local
81 if (ParmVarDecl *Param = dyn_cast<ParmVarDecl>(Decl)) {
93 } else if (VarDecl *VDecl = dyn_cast<VarDecl>(Decl)) {
279 Sema::ActOnParamDefaultArgument(Decl *param, SourceLocation EqualLoc,
315 void Sema::ActOnParamUnparsedDefaultArgument(Decl *param,
330 void Sema::ActOnParamDefaultArgumentError(Decl *param) {
751 case Decl::StaticAssert:
752 case Decl::Using:
753 case Decl::UsingShadow:
754 case Decl
4436 CXXMethodDecl *Decl = SMOR->getMethod(); local
[all...]
H A DSemaExpr.cpp63 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)
112 void Sema::NoteDeletedFunction(FunctionDecl *Decl) { argument
113 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Decl);
118 Diag(Decl->getLocation(), diag::note_implicitly_deleted);
129 Diag(Decl->getLocation(), diag::note_unavailable_here)
130 << 1 << Decl->isDeleted();
150 llvm::DenseMap<Decl *, SmallVector<PartialDiagnosticAt, 1> >::iterator
2219 // Only create DeclRefExpr's for valid Decl's.
2240 case Decl::type:
2245 case Decl
[all...]
H A DSemaOverload.cpp994 return FD->isUnavailable() && !cast<Decl>(CurContext)->isUnavailable();
5364 NamedDecl *Decl = FoundDecl.getDecl(); local
5365 CXXRecordDecl *ActingContext = cast<CXXRecordDecl>(Decl->getDeclContext());
5367 if (isa<UsingShadowDecl>(Decl))
5368 Decl = cast<UsingShadowDecl>(Decl)->getTargetDecl();
5370 if (FunctionTemplateDecl *TD = dyn_cast<FunctionTemplateDecl>(Decl)) {
5379 AddMethodCandidate(cast<CXXMethodDecl>(Decl), FoundDecl, ActingContext,
9452 // If the Decl is neither a function nor a template function,
/external/llvm/lib/Analysis/
H A DDIBuilder.cpp833 MDNode *Decl) {
858 Decl,
823 createFunction(DIDescriptor Context, StringRef Name, StringRef LinkageName, DIFile File, unsigned LineNo, DIType 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 DDeclBase.h10 // This file defines the Decl and DeclContext interfaces.
75 /// Decl - This represents one declaration (or definition), e.g. a variable,
78 class Decl { class in namespace:clang
80 /// \brief Lists the kind of concrete classes of Decl.
106 /// Decl currently provides 15 bits of IDNS bits.
203 llvm::PointerIntPair<Decl *, 2, unsigned> NextInContextAndBits;
216 /// the DeclContext where the Decl was declared.
303 Decl(Kind DK, DeclContext *DC, SourceLocation L) function in class:clang::Decl
314 Decl(Kind DK, EmptyShell Empty) function in class:clang::Decl
324 virtual ~Decl();
[all...]
H A DDeclTemplate.h219 NamedDecl *Decl)
220 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl),
232 static bool classof(const Decl *D) { return classofKind(D->getKind()); }
580 NamedDecl *Decl)
581 : TemplateDecl(DK, DC, L, Name, Params, Decl), Common() { }
673 static bool classof(const Decl *D) { return classofKind(D->getKind()); }
722 TemplateParameterList *Params, NamedDecl *Decl)
723 : RedeclarableTemplateDecl(FunctionTemplate, DC, L, Name, Params, Decl) { }
815 NamedDecl *Decl);
821 static bool classof(const Decl *
578 RedeclarableTemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
721 FunctionTemplateDecl(DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
1720 ClassTemplateDecl(DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
1984 TypeAliasTemplateDecl(DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
[all...]
H A DASTContext.h23 #include "clang/AST/Decl.h"
62 class Decl;
264 /// wasting space in the Decl class.
265 llvm::DenseMap<const Decl*, AttrVec*> DeclAttrs;
423 AttrVec& getDeclAttrs(const Decl *D);
426 void eraseDeclAttrs(const Decl *D);
627 QualType getTypeDeclTypeSlow(const TypeDecl *Decl) const;
792 QualType getTypeDeclType(const TypeDecl *Decl, argument
794 assert(Decl && "Passed null for Decl para
[all...]
H A DType.h2951 UnresolvedUsingTypenameDecl *Decl;
2956 Decl(const_cast<UnresolvedUsingTypenameDecl*>(D)) {}
2960 UnresolvedUsingTypenameDecl *getDecl() const { return Decl; }
2971 return Profile(ID, Decl);
2981 TypedefNameDecl *Decl;
2988 Decl(const_cast<TypedefNameDecl*>(D)) {
2994 TypedefNameDecl *getDecl() const { return Decl; }
3687 CXXRecordDecl *Decl; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::InjectedClassNameType
3709 Decl(D), InjectedType(TST) {
4246 mutable ObjCInterfaceDecl *Decl; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::ObjCInterfaceType
[all...]
/external/clang/lib/CodeGen/
H A DCGExprConstant.cpp433 BaseInfo(const CXXRecordDecl *Decl, CharUnits Offset, unsigned Index) argument
434 : Decl(Decl), Offset(Offset), Index(Index) {
437 const CXXRecordDecl *Decl; member in struct:__anon3149::__anon3150::BaseInfo
473 bool IsPrimaryBase = Layout.getPrimaryBase() == Base.Decl;
474 Build(Val.getStructBase(Base.Index), Base.Decl, IsPrimaryBase,
902 if (const ValueDecl *Decl = LVBase.dyn_cast<const ValueDecl*>()) {
903 if (Decl->hasAttr<WeakRefAttr>())
904 return CGM.GetWeakRefReference(Decl);
905 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(Decl))
[all...]
/external/clang/lib/Serialization/
H A DASTReader.cpp2507 if (Decl *D = Names[I].dyn_cast<Decl *>())
3886 TypedefNameDecl *Decl = ReadDeclAs<TypedefNameDecl>(*Loc.F, Record, Idx); local
3890 return Context.getTypedefType(Decl, Canonical);
4516 Decl *ASTReader::GetExternalDecl(uint32_t ID) {
4571 ModuleFile *ASTReader::getOwningModuleFile(Decl *D) {
4590 if (Decl *D = DeclsLoaded[Index])
4598 Decl *ASTReader::GetDecl(DeclID ID) {
4679 // Switch case IDs are per Decl.
4692 bool (*isKindWeWant)(Decl
[all...]

Completed in 1797 milliseconds

12