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

12

/external/clang/unittests/Tooling/
H A DRecursiveASTVisitorTestDeclVisitor.cpp66 bool VisitNamedDecl(NamedDecl *Decl) { argument
69 Decl->getNameForDiagnostic(OS,
70 Decl->getASTContext().getPrintingPolicy(),
72 Match(OS.str(), Decl->getLocation());
/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.
251 NamedDecl *Decl) {
252 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl));
253 return new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl);
328 NamedDecl *Decl,
330 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl));
332 Params, Decl);
435 Decl *DCanon = D->getCanonicalDecl();
896 NamedDecl *Decl) {
898 return new (C, DC) TypeAliasTemplateDecl(C, DC, L, Name, Params, Decl);
246 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
323 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl, ClassTemplateDecl *PrevDecl) argument
891 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
948 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, VarDecl *Decl) argument
[all...]
/external/clang/unittests/Frontend/
H A DFrontendActionTest.cpp67 virtual bool VisitNamedDecl(NamedDecl *Decl) { argument
68 decl_names_.push_back(Decl->getQualifiedNameAsString());
/external/clang/utils/
H A Dmodfuzz.py15 class Decl: class in inherits:
37 Decl('struct X { int n; };\n', provides=['X'], conflicts=['X']),
38 Decl('static_assert(X{.n=1}.n == 1, "");\n', depends=['X']),
39 Decl('X %(name)s;\n', depends=['X']),
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypeChecker.cpp155 const ObjCInterfaceDecl *Decl = ObjPtr->getInterfaceDecl(); local
156 if (!Decl)
159 return Decl->getDefinition();
H A DNullabilityChecker.cpp435 const Decl *D = LocCtxt->getDecl();
573 const Decl *D = DeclCtxt->getDecl();
770 auto Decl = Call.getDecl(); local
771 if (!Decl)
776 const FunctionType *FuncType = Decl->getFunctionType();
793 StringRef FilePath = SM.getFilename(SM.getSpellingLoc(Decl->getLocStart()));
844 auto Decl = M.getDecl(); local
845 if (!Decl)
847 QualType RetType = Decl->getReturnType();
859 auto Interface = Decl
[all...]
/external/llvm/lib/Transforms/ObjCARC/
H A DARCRuntimeEntryPoints.h124 Constant *getVoidRetI8XEntryPoint(Constant *&Decl, argument
126 if (Decl)
127 return Decl;
136 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
139 Constant *getI8XRetI8XEntryPoint(Constant *& Decl, argument
142 if (Decl)
143 return Decl;
155 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
158 Constant *getI8XRetI8XXI8XEntryPoint(Constant *&Decl, argument
160 if (Decl)
[all...]
H A DObjCARCContract.cpp138 Constant *Decl = EP.get(ARCRuntimeEntryPointKind::RetainRV); local
139 cast<CallInst>(Retain)->setCalledFunction(Decl);
184 Constant *Decl = EP.get(Class == ARCInstKind::AutoreleaseRV local
187 Retain->setCalledFunction(Decl);
385 Constant *Decl = EP.get(ARCRuntimeEntryPointKind::StoreStrong); local
386 CallInst *StoreStrong = CallInst::Create(Decl, Args, "", Store);
/external/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp464 ASTNodeKind::getFromNodeKind<Decl>(),
523 std::string Decl; local
524 llvm::raw_string_ostream OS(Decl);
H A DParser.cpp455 std::string Decl = local
457 Result.emplace_back(Entry.getKey(), Decl, Specificity);
/external/clang/lib/CodeGen/
H A DCGDebugInfo.h83 llvm::DIType *Decl; member in struct:clang::CodeGen::CGDebugInfo::ObjCInterfaceCacheEntry
85 ObjCInterfaceCacheEntry(const ObjCInterfaceType *Type, llvm::DIType *Decl, argument
87 : Type(Type), Decl(Decl), Unit(Unit) {}
110 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> RegionMap;
125 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> DeclCache;
129 llvm::DenseMap<const Decl *, llvm::TypedTrackingMDRef<llvm::DIDerivedType>>
190 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F);
208 void CollectCXXMemberFunctions(const CXXRecordDecl *Decl, llvm::DIFile *F,
215 void CollectCXXBases(const CXXRecordDecl *Decl, llv
[all...]
H A DCGRecordLayoutBuilder.cpp182 bool hasOwnStorage(const CXXRecordDecl *Decl, const CXXRecordDecl *Query);
516 bool CGRecordLowering::hasOwnStorage(const CXXRecordDecl *Decl, argument
518 const ASTRecordLayout &DeclLayout = Context.getASTRecordLayout(Decl);
521 for (const auto &Base : Decl->bases())
H A DCGExprConstant.cpp421 BaseInfo(const CXXRecordDecl *Decl, CharUnits Offset, unsigned Index) argument
422 : Decl(Decl), Offset(Offset), Index(Index) {
425 const CXXRecordDecl *Decl; member in struct:__anon1585::__anon1586::BaseInfo
465 bool IsPrimaryBase = Layout.getPrimaryBase() == Base.Decl;
466 Build(Val.getStructBase(Base.Index), Base.Decl, IsPrimaryBase,
996 if (const ValueDecl *Decl = LVBase.dyn_cast<const ValueDecl*>()) {
997 if (Decl->hasAttr<WeakRefAttr>())
998 return CGM.GetWeakRefReference(Decl);
999 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(Decl))
[all...]
/external/clang/lib/Tooling/Core/
H A DQualTypeNames.cpp66 const ASTContext &Ctx, const Decl *decl,
202 static NestedNameSpecifier *createOuterNNS(const ASTContext &Ctx, const Decl *D,
281 const ASTContext &Ctx, const Decl *Decl,
283 assert(Decl);
285 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext();
303 Decl = *(ClassTempl->spec_begin());
304 Outer = dyn_cast<NamedDecl>(Decl);
305 OuterNS = dyn_cast<NamespaceDecl>(Decl);
319 // Decl'
280 createNestedNameSpecifierForScopeOf( const ASTContext &Ctx, const Decl *Decl, bool FullyQualified, bool WithGlobalNsPrefix) argument
[all...]
/external/clang/lib/Sema/
H A DSemaAttr.cpp249 DeclaratorDecl *Decl) {
253 ASTContext::SectionInfo(Decl, SourceLocation(), SectionFlags);
260 auto OtherDecl = Section->second.Decl;
261 Diag(Decl->getLocation(), diag::err_section_conflict)
262 << Decl << OtherDecl;
265 if (auto A = Decl->getAttr<SectionAttr>())
358 void Sema::AddCFAuditedAttribute(Decl *D) {
401 void Sema::AddPushedVisibilityAttribute(Decl *D) {
247 UnifySection(StringRef SectionName, int SectionFlags, DeclaratorDecl *Decl) argument
H A DSemaExceptionSpec.cpp193 static bool hasImplicitExceptionSpec(FunctionDecl *Decl) { argument
194 if (!isa<CXXDestructorDecl>(Decl) &&
195 Decl->getDeclName().getCXXOverloadedOperator() != OO_Delete &&
196 Decl->getDeclName().getCXXOverloadedOperator() != OO_Array_Delete)
204 if (!Decl->getTypeSourceInfo())
205 return isa<CXXDestructorDecl>(Decl);
208 Decl->getTypeSourceInfo()->getType()->getAs<FunctionProtoType>();
881 static CanThrowResult canCalleeThrow(Sema &S, const Expr *E, const Decl *D) {
/external/libxkbcommon/xkbcommon/src/xkbcomp/
H A Dparser.y199 %type <any> DeclList Decl
312 DeclList : DeclList Decl
317 Decl : OptMergeMode VarDecl label
/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.cpp27 Decl *
60 Decl *
116 SmallVector<Decl*, 4> TemplateParams;
171 Decl *
215 Decl *Decl = Actions.ParsedFreeStandingDeclSpec( local
223 DS.complete(Decl);
224 return Decl;
303 Decl *ThisDecl = ParseDeclarationAfterDeclarator(DeclaratorInfo,
331 SmallVectorImpl<Decl*>
[all...]
H A DParseStmt.cpp215 DeclGroupPtrTy Decl = ParseDeclaration(Declarator::BlockContext, local
217 return Actions.ActOnDeclStmt(Decl, DeclStart, DeclEnd);
953 SmallVector<Decl *, 8> DeclsInGroup;
1935 Decl *Parser::ParseFunctionStatementBody(Decl *Decl, ParseScope &BodyScope) { argument
1939 PrettyDeclStackTraceEntry CrashInfo(Actions, Decl, LBraceLoc,
1944 getLangOpts().CPlusPlus && Decl && isa<CXXMethodDecl>(Decl);
1960 return Actions.ActOnFinishFunctionBody(Decl, FnBod
1968 ParseFunctionTryBlock(Decl *Decl, ParseScope &BodyScope) argument
[all...]
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DDIBuilder.cpp760 MDNode *Decl) {
785 Decl,
751 createFunction(DIDescriptor Context, StringRef Name, StringRef LinkageName, DIFile File, unsigned LineNo, DIType Ty, bool isLocalToUnit, bool isDefinition, unsigned Flags, bool isOptimized, Function *Fn, MDNode *TParams, MDNode *Decl) argument
/external/swiftshader/third_party/subzero/src/
H A DIceConverter.cpp134 Ice::GlobalDeclaration *Decl = getConverter().getGlobalDeclaration(GV); local
136 if (const auto *Func = llvm::dyn_cast<Ice::FunctionDeclaration>(Decl))
138 else if (const auto *Var = llvm::dyn_cast<Ice::VariableDeclaration>(Decl))
143 return Ctx->getConstantExternSym(Decl->getName());
147 Offset, Ctx->getGlobalString(Decl->getName().toString()));
/external/clang/include/clang/AST/
H A DDeclTemplate.h347 TemplateParameterList *Params, NamedDecl *Decl)
348 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl, false),
361 static bool classof(const Decl *D) { return classofKind(D->getKind()); }
715 TemplateParameterList *Params, NamedDecl *Decl)
716 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C),
814 static bool classof(const Decl *D) { return classofKind(D->getKind()); }
870 NamedDecl *Decl)
872 Decl) {}
979 NamedDecl *Decl);
985 static bool classof(const Decl *
346 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
713 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
868 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
1973 ClassTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
2229 TypeAliasTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
2784 VarTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl) argument
[all...]
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h123 typedef internal::Matcher<Decl> DeclarationMatcher;
158 const internal::VariadicDynCastAllOfMatcher<Decl, TranslationUnitDecl>
170 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl> typedefDecl;
181 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
193 const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasDecl> typeAliasDecl;
208 /// Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc>
210 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) {
229 /// Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc>
231 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) {
254 /// Usable as: Matcher<Decl>, Matche
5076 AST_MATCHER_P_OVERLOAD(Decl, equalsNode, const Decl*, Other, 0) argument
[all...]

Completed in 497 milliseconds

12