Home
last modified time | relevance | path

Searched refs:Dcl (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DMemberPointer.h25 const Decl *Dcl = nullptr; variable
28 MemberPointer(Pointer Base, const Decl *Dcl, int32_t PtrOffset) in MemberPointer() argument
29 : Base(Base), Dcl(Dcl), PtrOffset(PtrOffset) {} in MemberPointer()
33 MemberPointer(Pointer Base, const Decl *Dcl) : Base(Base), Dcl(Dcl) {} in MemberPointer() argument
39 MemberPointer(const Decl *D) : Dcl(D) { in MemberPointer()
60 return isa_and_nonnull<CXXMethodDecl>(Dcl); in isMemberFunctionPointer()
63 return dyn_cast_if_present<CXXMethodDecl>(Dcl); in getMemberFunction()
66 return dyn_cast_if_present<FieldDecl>(Dcl); in getField()
69 bool hasDecl() const { return Dcl; } in hasDecl()
70 const Decl *getDecl() const { return Dcl; } in getDecl()
[all …]
H A DMemberPointer.cpp19 if (!Dcl || isa<FunctionDecl>(Dcl)) in toPointer()
21 const FieldDecl *FD = cast<FieldDecl>(Dcl); in toPointer()
60 return FunctionPointer(Ctx.getProgram().getFunction(cast<FunctionDecl>(Dcl))); in toFunctionPointer()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp115 Attr.Dcl = D; in handleAttr()
184 if (Attr.FullyMigratable && Attr.Dcl) { in errorForGCAttrsOnNonObjC()
340 if (Attr.Dcl) { in dumpGCAttrs()
342 Attr.Dcl->dump(); in dumpGCAttrs()
H A DTransforms.cpp222 ValueDecl *Dcl; member in __anon26e897370111::ReferenceCollector
227 : Dcl(D), Refs(refs) { } in ReferenceCollector()
230 if (E->getDecl() == Dcl) in VisitDeclRefExpr()
H A DTransforms.h90 Decl *Dcl; member
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTWriter.h376 const Decl *Dcl; member
385 DeclUpdate(unsigned Kind) : Kind(Kind), Dcl(nullptr) {} in DeclUpdate()
386 DeclUpdate(unsigned Kind, const Decl *Dcl) : Kind(Kind), Dcl(Dcl) {} in DeclUpdate() argument
397 const Decl *getDecl() const { return Dcl; } in getDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaHLSL.h37 void ActOnFinishBuffer(Decl *Dcl, SourceLocation RBrace);
H A DSema.h2121 ExprResult ActOnBuiltinBitCastExpr(SourceLocation KWLoc, Declarator &Dcl,
3672 void ActOnInitializerError(Decl *Dcl);
4773 void ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace);
5223 void ActOnCXXEnterDeclInitializer(Scope *S, Decl *Dcl);
5227 void ActOnCXXExitDeclInitializer(Scope *S, Decl *Dcl);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclCXX.cpp1781 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
1784 static bool CheckConstexprMissingReturn(Sema &SemaRef, const FunctionDecl *Dcl);
1876 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl, in CheckConstexprDeclStmt() argument
1908 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
1924 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
1952 << isa<CXXConstructorDecl>(Dcl) in CheckConstexprDeclStmt()
1961 isa<CXXConstructorDecl>(Dcl), in CheckConstexprDeclStmt()
1966 isa<CXXConstructorDecl>(Dcl))) { in CheckConstexprDeclStmt()
1977 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
1989 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
2030 CheckConstexprCtorInitializer(Sema & SemaRef,const FunctionDecl * Dcl,FieldDecl * Field,llvm::SmallSet<Decl *,16> & Inits,bool & Diagnosed,Sema::CheckConstexprKind Kind) CheckConstexprCtorInitializer() argument
2085 CheckConstexprFunctionStmt(Sema & SemaRef,const FunctionDecl * Dcl,Stmt * S,SmallVectorImpl<SourceLocation> & ReturnStmts,SourceLocation & Cxx1yLoc,SourceLocation & Cxx2aLoc,SourceLocation & Cxx2bLoc,Sema::CheckConstexprKind Kind) CheckConstexprFunctionStmt() argument
2247 CheckConstexprFunctionBody(Sema & SemaRef,const FunctionDecl * Dcl,Stmt * Body,Sema::CheckConstexprKind Kind) CheckConstexprFunctionBody() argument
2457 CheckConstexprMissingReturn(Sema & SemaRef,const FunctionDecl * Dcl) CheckConstexprMissingReturn() argument
11698 ActOnFinishNamespaceDef(Decl * Dcl,SourceLocation RBrace) ActOnFinishNamespaceDef() argument
17920 SetDeclDeleted(Decl * Dcl,SourceLocation DelLoc,StringLiteral * Message) SetDeclDeleted() argument
17973 SetDeclDefaulted(Decl * Dcl,SourceLocation DefaultLoc) SetDeclDefaulted() argument
18397 Decl *Dcl = ActOnDeclarator(S, D); ActOnCXXConditionDeclaration() local
[all...]
H A DSemaHLSL.cpp82 void SemaHLSL::ActOnFinishBuffer(Decl *Dcl, SourceLocation RBrace) { in ActOnFinishBuffer() argument
83 auto *BufDecl = cast<HLSLBufferDecl>(Dcl); in ActOnFinishBuffer()
H A DSemaDeclObjC.cpp2123 Decl *Dcl = Decls[i]; in ActOnFinishObjCImplementation() local
2124 if (!Dcl) in ActOnFinishObjCImplementation()
2126 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation()
2127 Dcl->setTopLevelDeclInObjCContainer(); in ActOnFinishObjCImplementation()
2128 DeclsInGroup.push_back(Dcl); in ActOnFinishObjCImplementation()
H A DSema.cpp2754 bool Result = llvm::all_of(LR, [](Decl *Dcl) { in isDeclaratorFunctionLike() argument
2755 if (NamedDecl *ND = dyn_cast<NamedDecl>(Dcl)) { in isDeclaratorFunctionLike()
H A DSemaDecl.cpp6046 Decl *Dcl = HandleDeclarator(S, D, MultiTemplateParamsArg()); in ActOnDeclarator() local
6049 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
6050 Dcl->setTopLevelDeclInObjCContainer(); in ActOnDeclarator()
6053 OpenMP().ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope(Dcl, in ActOnDeclarator()
6056 return Dcl; in ActOnDeclarator()
15219 Decl *Dcl = ActOnStartOfFunctionDef(FnBodyScope, DP, SkipBody, BodyKind); in ActOnStartOfFunctionDef() local
15222 OpenMP().ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope(Dcl, in ActOnStartOfFunctionDef()
15225 return Dcl; in ActOnStartOfFunctionDef()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp322 void RewriteInterfaceDecl(ObjCInterfaceDecl *Dcl);
323 void RewriteImplementationDecl(Decl *Dcl);
330 void RewriteCategoryDecl(ObjCCategoryDecl *Dcl);
331 void RewriteProtocolDecl(ObjCProtocolDecl *Dcl);
340 void RewriteObjCQualifiedInterfaceTypes(Decl *Dcl);
2196 void RewriteModernObjC::RewriteObjCQualifiedInterfaceTypes(Decl *Dcl) { in RewriteObjCQualifiedInterfaceTypes() argument
2200 if (VarDecl *VD = dyn_cast<VarDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
2204 else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
2215 else if (FieldDecl *FD = dyn_cast<FieldDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
2219 else if (TypedefNameDecl *TD = dyn_cast<TypedefNameDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1781 Decl *Dcl; member
1787 : P(parser), Dcl(D), HasCFunction(false) { in ObjCImplParsingDataRAII()
3132 void DistributeCLateParsedAttrs(Decl *Dcl, LateParsedAttrList *LateAttrs);
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp2267 DeclResult Dcl = Actions.ActOnCXXConditionDeclaration(getCurScope(), in ParseCXXCondition() local
2269 if (Dcl.isInvalid()) in ParseCXXCondition()
2271 Decl *DeclOut = Dcl.get(); in ParseCXXCondition()
H A DParseObjc.cpp2311 P.Diag(Dcl->getBeginLoc(), diag::note_objc_container_start) in ~ObjCImplParsingDataRAII()
2321 P.Actions.ObjC().DefaultSynthesizeProperties(P.getCurScope(), Dcl, in finish()
H A DParseDecl.cpp3356 void Parser::DistributeCLateParsedAttrs(Decl *Dcl, in DistributeCLateParsedAttrs() argument
3361 if (Dcl) { in DistributeCLateParsedAttrs()
3364 LateAttr->addDecl(Dcl); in DistributeCLateParsedAttrs()
H A DParseExpr.cpp2370 CurParsedObjCImpl ? CurParsedObjCImpl->Dcl in ParsePostfixExpressionSuffix()