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

12

/external/clang/unittests/Frontend/
H A DFrontendActionTest.cpp55 virtual bool VisitNamedDecl(NamedDecl *Decl) { argument
56 decl_names_.push_back(Decl->getQualifiedNameAsString());
/external/clang/lib/AST/
H A DInheritViz.cpp17 #include "clang/AST/Decl.h"
94 const CXXRecordDecl *Decl local
96 for (const auto &Base : Decl->bases()) {
H A DDeclTemplate.cpp10 // 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 DDeclBase.cpp10 // 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 DExprConstant.cpp235 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...]
/external/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp368 ASTNodeKind::getFromNodeKind<Decl>(),
433 std::string Decl; local
434 llvm::raw_string_ostream OS(Decl);
H A DParser.cpp431 StringRef Decl) {
435 MatcherCompletion(TypedText.substr(CompToken.Text.size()), Decl));
430 addCompletion(const TokenInfo &CompToken, StringRef TypedText, StringRef Decl) argument
/external/clang/lib/CodeGen/
H A DCGDebugInfo.h72 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 DCGRecordLayoutBuilder.cpp171 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())
H A DCGExprConstant.cpp393 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...]
/external/clang/unittests/Tooling/
H A DRecursiveASTVisitorTest.cpp65 bool VisitNamedDecl(NamedDecl *Decl) { argument
68 Decl->getNameForDiagnostic(OS,
69 Decl->getASTContext().getPrintingPolicy(),
71 Match(OS.str(), Decl->getLocation());
/external/llvm/lib/Transforms/ObjCARC/
H A DARCRuntimeEntryPoints.h126 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 DObjCARCContract.cpp142 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_RetainRV); local
143 cast<CallInst>(Retain)->setCalledFunction(Decl);
193 Constant *Decl = EP.get(Class == IC_AutoreleaseRV ? local
196 Retain->setCalledFunction(Decl);
277 Constant *Decl = EP.get(ARCRuntimeEntryPoints::EPT_StoreStrong); local
278 CallInst *StoreStrong = CallInst::Create(Decl, Args, "", Store);
/external/clang/include/clang/Sema/
H A DDelayedDiagnostic.h170 return DeprecationData.Decl;
214 const NamedDecl *Decl; member in struct:clang::sema::DelayedDiagnostic::DD
/external/clang/lib/Parse/
H A DParseTemplate.cpp26 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...]
H A DParseStmt.cpp210 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...]
/external/clang/lib/Sema/
H A DSemaAttr.cpp365 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 DSemaExceptionSpec.cpp156 static bool hasImplicitExceptionSpec(FunctionDecl *Decl) { argument
157 if (!isa<CXXDestructorDecl>(Decl) &&
158 Decl->getDeclName().getCXXOverloadedOperator() != OO_Delete &&
159 Decl->getDeclName().getCXXOverloadedOperator() != OO_Array_Delete)
167 if (!Decl->getTypeSourceInfo())
168 return isa<CXXDestructorDecl>(Decl);
171 Decl->getTypeSourceInfo()->getType()->getAs<FunctionProtoType>();
807 static CanThrowResult canCalleeThrow(Sema &S, const Expr *E, const Decl *D) {
H A DSemaAccess.cpp1122 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...]
/external/llvm/lib/IR/
H A DDIBuilder.cpp200 DIScope Decl,
203 Context, Decl.getRef(), Line, Name,
1015 Value *Val, MDNode *Decl) {
1029 DIDescriptor(Decl)
1103 MDNode *TParams, MDNode *Decl) {
1109 Flags, isOptimized, Fn, TParams, Decl);
1119 MDNode *TParams, MDNode *Decl) {
1141 Decl,
199 createImportedDeclaration(DIScope Context, DIScope Decl, unsigned Line, StringRef Name) argument
1009 createStaticVariable(DIDescriptor Context, StringRef Name, StringRef LinkageName, DIFile F, unsigned LineNumber, DITypeRef Ty, bool isLocalToUnit, Value *Val, MDNode *Decl) argument
1097 createFunction(DIScopeRef 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
1113 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 DDeclBase.h10 // 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 DDeclTemplate.h248 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...]
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h121 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/lldb/source/Expression/
H A DClangASTSource.cpp186 ASTDumper dumper((Decl*)tag_decl);
301 ASTDumper dumper((Decl*)tag_decl);
315 ASTDumper dumper((Decl*)interface_decl);
324 ASTDumper dumper((Decl*)interface_decl);
368 bool (*predicate)(Decl::Kind),
369 llvm::SmallVectorImpl<Decl*> &decls)
375 const Decl *context_decl = dyn_cast<Decl>(decl_context);
407 Decl *original_decl = NULL;
415 log->Printf(" FELD[%u] Original decl (ASTContext*)%p (Decl*)
1717 clang::NamedDecl *Decl = VarDecl::Create(*ast, local
[all...]
/external/clang/lib/ARCMigrate/
H A DObjCMT.cpp49 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...]

Completed in 561 milliseconds

12