Home
last modified time | relevance | path

Searched refs:TheDecl (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DPrettyDeclStackTrace.h31 Decl *TheDecl; variable
38 : Context(Ctx), TheDecl(D), Loc(Loc), Message(Msg) {} in PrettyDeclStackTraceEntry()
H A DStmt.h2158 LabelDecl *TheDecl;
2165 : ValueStmt(LabelStmtClass), TheDecl(D), SubStmt(substmt) {
2175 LabelDecl *getDecl() const { return TheDecl; }
2176 void setDecl(LabelDecl *D) { TheDecl = D; }
H A DDeclBase.h1298 const Decl *TheDecl; variable
1306 : TheDecl(theDecl), Loc(L), SM(sm), Message(Msg) {} in PrettyStackTraceDecl()
H A DExprCXX.h937 MSPropertyDecl *TheDecl; variable
949 TheDecl(decl), MemberLoc(nameLoc), IsArrow(isArrow), in MSPropertyRefExpr()
989 MSPropertyDecl *getPropertyDecl() const { return TheDecl; } in getPropertyDecl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp598 Sema::ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl, in ActOnLabelStmt() argument
601 if (TheDecl->getStmt()) { in ActOnLabelStmt()
602 Diag(IdentLoc, diag::err_redefinition_of_label) << TheDecl->getDeclName(); in ActOnLabelStmt()
603 Diag(TheDecl->getLocation(), diag::note_previous_definition); in ActOnLabelStmt()
607 ReservedIdentifierStatus Status = TheDecl->isReserved(getLangOpts()); in ActOnLabelStmt()
611 << TheDecl << static_cast<int>(Status); in ActOnLabelStmt()
628 LabelStmt *LS = new (Context) LabelStmt(IdentLoc, TheDecl, SubStmt); in ActOnLabelStmt()
629 TheDecl->setStmt(LS); in ActOnLabelStmt()
630 if (!TheDecl->isGnuLocal()) { in ActOnLabelStmt()
631 TheDecl->setLocStart(IdentLoc); in ActOnLabelStmt()
[all …]
H A DSemaHLSL.cpp1926 static bool ValidateMultipleRegisterAnnotations(Sema &S, Decl *TheDecl, in ValidateMultipleRegisterAnnotations() argument
1933 for (auto it = TheDecl->attr_begin(); it != TheDecl->attr_end(); ++it) { in ValidateMultipleRegisterAnnotations()
1940 S.Diag(TheDecl->getLocation(), in ValidateMultipleRegisterAnnotations()
1968 void SemaHLSL::handleResourceBindingAttr(Decl *TheDecl, const ParsedAttr &AL) { in handleResourceBindingAttr() argument
1969 if (isa<VarDecl>(TheDecl)) { in handleResourceBindingAttr()
1970 if (SemaRef.RequireCompleteType(TheDecl->getBeginLoc(), in handleResourceBindingAttr()
1971 cast<ValueDecl>(TheDecl)->getType(), in handleResourceBindingAttr()
2046 if (!DiagnoseHLSLRegisterAttribute(SemaRef, SlotLoc, TheDecl, RegType, in handleResourceBindingAttr()
2054 TheDecl->addAttr(NewAttr); in handleResourceBindingAttr()
H A DSemaExpr.cpp4665 DC = BSI->TheDecl; in CheckUnaryExprOrTypeTraitOperand()
5385 DC = BSI->TheDecl; in CreateBuiltinArraySubscriptExpr()
15973 LabelDecl *TheDecl) { in ActOnAddrLabel() argument
15974 TheDecl->markUsed(Context); in ActOnAddrLabel()
15977 OpLoc, LabLoc, TheDecl, Context.getPointerType(Context.VoidTy)); in ActOnAddrLabel()
16366 CurBlock->TheDecl->setSignatureAsWritten(Sig); in ActOnBlockArguments()
16374 CurBlock->TheDecl->setIsVariadic(isVariadic); in ActOnBlockArguments()
16382 CurBlock->TheDecl->setBlockMissingReturnType(false); in ActOnBlockArguments()
16405 CurBlock->TheDecl, ParamInfo.getBeginLoc(), I); in ActOnBlockArguments()
16412 CurBlock->TheDecl->setParams(Params); in ActOnBlockArguments()
[all …]
H A DSema.cpp2517 if (CurBSI && CurBSI->TheDecl && in getCurBlock()
2518 !CurBSI->TheDecl->Encloses(CurContext)) { in getCurBlock()
H A DTreeTransform.h16993 blockScope->TheDecl->setIsVariadic(oldBlock->isVariadic()); in TransformBlockExpr()
16994 blockScope->TheDecl->setBlockMissingReturnType( in TransformBlockExpr()
17024 blockScope->TheDecl->setParams(params); in TransformBlockExpr()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParser.cpp1130 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec( in ParseDeclOrFunctionDefInternal() local
1132 DS.complete(TheDecl); in ParseDeclOrFunctionDefInternal()
1133 Actions.ActOnDefinedDeclarationSpecifier(TheDecl); in ParseDeclOrFunctionDefInternal()
1135 Decl* decls[] = {AnonRecord, TheDecl}; in ParseDeclOrFunctionDefInternal()
1138 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseDeclOrFunctionDefInternal()
1183 Decl *TheDecl = ParseLinkage(DS, DeclaratorContext::File); in ParseDeclOrFunctionDefInternal() local
1184 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseDeclOrFunctionDefInternal()
H A DParseDecl.cpp1961 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec( in ParseSimpleDeclaration() local
1963 Actions.ActOnDefinedDeclarationSpecifier(TheDecl); in ParseSimpleDeclaration()
1964 DS.complete(TheDecl); in ParseSimpleDeclaration()
1966 Decl* decls[] = {AnonRecord, TheDecl}; in ParseSimpleDeclaration()
1969 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseSimpleDeclaration()
2231 Decl *TheDecl = nullptr; in ParseDeclGroup() local
2238 TheDecl = ParseFunctionDefinition(D, ParsedTemplateInfo(), in ParseDeclGroup()
2254 TheDecl = ParseFunctionDefinition( in ParseDeclGroup()
2262 TheDecl = in ParseDeclGroup()
2266 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseDeclGroup()
[all …]
H A DParseDeclCXX.cpp2898 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec( in ParseCXXClassMemberDeclaration() local
2900 Actions.ActOnDefinedDeclarationSpecifier(TheDecl); in ParseCXXClassMemberDeclaration()
2901 DS.complete(TheDecl); in ParseCXXClassMemberDeclaration()
2903 Decl *decls[] = {AnonRecord, TheDecl}; in ParseCXXClassMemberDeclaration()
2906 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseCXXClassMemberDeclaration()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h792 BlockDecl *TheDecl;
803 : CapturingScopeInfo(Diag, ImpCap_Block), TheDecl(Block), in BlockScopeInfo()
H A DSema.h2221 NamedDecl *TheDecl);
7486 LabelDecl *TheDecl);
10914 StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
11019 LabelDecl *TheDecl);
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp339 if (TheLoc.isInvalid() && TheDecl) in print()
340 TheLoc = TheDecl->getLocation(); in print()
349 if (const auto *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) { in print()
H A DDecl.cpp82 if (!Loc.isValid() && TheDecl) Loc = TheDecl->getLocation(); in print()
89 if (auto *ND = dyn_cast_if_present<NamedDecl>(TheDecl)) { in print()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp2334 E->TheDecl = readDeclAs<MSPropertyDecl>(); in VisitMSPropertyRefExpr()