Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DMemberPointer.h25 const ValueDecl *Dcl = nullptr; variable
28 MemberPointer(Pointer Base, const ValueDecl *Dcl, int32_t PtrOffset) in MemberPointer() argument
29 : Base(Base), Dcl(Dcl), PtrOffset(PtrOffset) {} in MemberPointer()
33 MemberPointer(Pointer Base, const ValueDecl *Dcl) : Base(Base), Dcl(Dcl) {} in MemberPointer() argument
39 MemberPointer(const ValueDecl *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 ValueDecl *getDecl() const { return Dcl; } in getDecl()
[all …]
H A DMemberPointer.cpp19 if (!Dcl || isa<FunctionDecl>(Dcl)) in toPointer()
21 assert((isa<FieldDecl, IndirectFieldDecl>(Dcl))); in toPointer()
36 if (const auto *FD = dyn_cast<FieldDecl>(Dcl)) { in toPointer()
52 const auto *IFD = cast<IndirectFieldDecl>(Dcl); in toPointer()
71 return FunctionPointer(Ctx.getProgram().getFunction(cast<FunctionDecl>(Dcl))); in toFunctionPointer()
H A DPointer.cpp231 const auto *Dcl = Desc->asDecl(); in toAPValue() local
232 Path.push_back(APValue::LValuePathEntry({Dcl, /*IsVirtual=*/false})); in toAPValue()
234 if (const auto *FD = dyn_cast_if_present<FieldDecl>(Dcl)) in toAPValue()
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTWriter.h385 const Decl *Dcl; member
394 DeclUpdate(serialization::DeclUpdateKind Kind) : Kind(Kind), Dcl(nullptr) {} in DeclUpdate()
395 DeclUpdate(serialization::DeclUpdateKind Kind, const Decl *Dcl) in DeclUpdate() argument
396 : Kind(Kind), Dcl(Dcl) {} in DeclUpdate()
409 const Decl *getDecl() const { return Dcl; } in getDecl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclCXX.cpp1901 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
1904 static bool CheckConstexprMissingReturn(Sema &SemaRef, const FunctionDecl *Dcl);
1996 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl, in CheckConstexprDeclStmt() argument
2028 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
2042 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
2068 << isa<CXXConstructorDecl>(Dcl) in CheckConstexprDeclStmt()
2077 isa<CXXConstructorDecl>(Dcl)); in CheckConstexprDeclStmt()
2081 isa<CXXConstructorDecl>(Dcl))) { in CheckConstexprDeclStmt()
2089 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
2098 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
[all …]
H A DSemaDecl.cpp6160 Decl *Dcl = HandleDeclarator(S, D, MultiTemplateParamsArg()); in ActOnDeclarator() local
6163 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
6164 Dcl->setTopLevelDeclInObjCContainer(); in ActOnDeclarator()
6167 OpenMP().ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope(Dcl, in ActOnDeclarator()
6170 return Dcl; in ActOnDeclarator()
13484 const VarDecl *Dcl) { in GloballyUniqueObjectMightBeAccidentallyDuplicated() argument
13490 if (!Dcl->isThisDeclarationADefinition()) in GloballyUniqueObjectMightBeAccidentallyDuplicated()
13495 if (Dcl->getASTContext().getSourceManager().isInMainFile(Dcl->getLocation())) in GloballyUniqueObjectMightBeAccidentallyDuplicated()
13500 const ValueDecl *Target = Dcl; in GloballyUniqueObjectMightBeAccidentallyDuplicated()
13504 bool TargetIsInline = Dcl->isInline(); in GloballyUniqueObjectMightBeAccidentallyDuplicated()
[all …]
H A DSemaHLSL.cpp590 void SemaHLSL::ActOnFinishBuffer(Decl *Dcl, SourceLocation RBrace) { in ActOnFinishBuffer() argument
591 auto *BufDecl = cast<HLSLBufferDecl>(Dcl); in ActOnFinishBuffer()
599 HLSLResourceBindingAttr *RBA = Dcl->getAttr<HLSLResourceBindingAttr>(); in ActOnFinishBuffer()
601 SemaRef.Diag(Dcl->getLocation(), diag::warn_hlsl_implicit_binding); in ActOnFinishBuffer()
H A DSemaDeclObjC.cpp2126 Decl *Dcl = Decls[i]; in ActOnFinishObjCImplementation() local
2127 if (!Dcl) in ActOnFinishObjCImplementation()
2129 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation()
2130 Dcl->setTopLevelDeclInObjCContainer(); in ActOnFinishObjCImplementation()
2131 DeclsInGroup.push_back(Dcl); in ActOnFinishObjCImplementation()
H A DSema.cpp2922 bool Result = llvm::all_of(LR, [](Decl *Dcl) { in isDeclaratorFunctionLike() argument
2923 if (NamedDecl *ND = dyn_cast<NamedDecl>(Dcl)) { in isDeclaratorFunctionLike()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaHLSL.h113 void ActOnFinishBuffer(Decl *Dcl, SourceLocation RBrace);
H A DSema.h2526 ExprResult ActOnBuiltinBitCastExpr(SourceLocation KWLoc, Declarator &Dcl,
4073 bool GloballyUniqueObjectMightBeAccidentallyDuplicated(const VarDecl *Dcl);
4074 void DiagnoseUniqueObjectDuplication(const VarDecl *Dcl);
4086 void ActOnInitializerError(Decl *Dcl);
5169 void ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace);
5638 void ActOnCXXEnterDeclInitializer(Scope *S, Decl *Dcl);
5642 void ActOnCXXExitDeclInitializer(Scope *S, Decl *Dcl);
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp268 void RewriteInterfaceDecl(ObjCInterfaceDecl *Dcl);
269 void RewriteImplementationDecl(Decl *Dcl);
276 void RewriteCategoryDecl(ObjCCategoryDecl *Dcl);
277 void RewriteProtocolDecl(ObjCProtocolDecl *Dcl);
286 void RewriteObjCQualifiedInterfaceTypes(Decl *Dcl);
2112 void RewriteObjC::RewriteObjCQualifiedInterfaceTypes(Decl *Dcl) { in RewriteObjCQualifiedInterfaceTypes() argument
2116 if (VarDecl *VD = dyn_cast<VarDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
2120 else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
2131 else if (FieldDecl *FD = dyn_cast<FieldDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
H A DRewriteModernObjC.cpp321 void RewriteInterfaceDecl(ObjCInterfaceDecl *Dcl);
322 void RewriteImplementationDecl(Decl *Dcl);
329 void RewriteCategoryDecl(ObjCCategoryDecl *Dcl);
330 void RewriteProtocolDecl(ObjCProtocolDecl *Dcl);
339 void RewriteObjCQualifiedInterfaceTypes(Decl *Dcl);
2195 void RewriteModernObjC::RewriteObjCQualifiedInterfaceTypes(Decl *Dcl) { in RewriteObjCQualifiedInterfaceTypes() argument
2199 if (VarDecl *VD = dyn_cast<VarDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
2203 else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
2214 else if (FieldDecl *FD = dyn_cast<FieldDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
2218 else if (TypedefNameDecl *TD = dyn_cast<TypedefNameDecl>(Dcl)) { in RewriteObjCQualifiedInterfaceTypes()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h2447 void DistributeCLateParsedAttrs(Decl *Dcl, LateParsedAttrList *LateAttrs);
5613 Decl *Dcl; member
5619 : P(parser), Dcl(D), HasCFunction(false) { in ObjCImplParsingDataRAII()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp2017 DeclResult Dcl = Actions.ActOnCXXConditionDeclaration(getCurScope(), in ParseCXXCondition() local
2019 if (Dcl.isInvalid()) in ParseCXXCondition()
2021 Decl *DeclOut = Dcl.get(); in ParseCXXCondition()
H A DParseObjc.cpp2034 P.Diag(Dcl->getBeginLoc(), diag::note_objc_container_start) in ~ObjCImplParsingDataRAII()
2044 P.Actions.ObjC().DefaultSynthesizeProperties(P.getCurScope(), Dcl, in finish()
H A DParseDecl.cpp3136 void Parser::DistributeCLateParsedAttrs(Decl *Dcl, in DistributeCLateParsedAttrs() argument
3141 if (Dcl) { in DistributeCLateParsedAttrs()
3144 LateAttr->addDecl(Dcl); in DistributeCLateParsedAttrs()
H A DParseExpr.cpp2019 CurParsedObjCImpl ? CurParsedObjCImpl->Dcl in ParsePostfixExpressionSuffix()