Home | History | Annotate | Download | only in Sema

Lines Matching defs:DECL

83       cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)
96 const Decl *DC = cast_or_null<Decl>(S.getCurObjCLexicalContext());
104 void Sema::NoteDeletedFunction(FunctionDecl *Decl) {
105 assert(Decl && Decl->isDeleted());
107 if (Decl->isDefaulted()) {
109 if (!Decl->isImplicit())
110 Diag(Decl->getLocation(), diag::note_implicitly_deleted);
114 DiagnoseDeletedDefaultedFunction(Decl);
118 auto *Ctor = dyn_cast<CXXConstructorDecl>(Decl);
122 Diag(Decl->getLocation(), diag::note_availability_specified_here)
123 << Decl << 1;
162 // Check if the decl has internal linkage.
2691 // Don't diagnose problems with invalid record decl, the secondary no_member
2767 // found a decl, but that decl is outside the current instance method (i.e.
2769 // this name, if the lookup sucedes, we replace it our current decl.
2838 // If we're referencing an invalid decl, just return this as a silent
2839 // error node. The error diagnostic was already emitted on the decl.
3084 // original decl.
3092 // don't check the decl type at all, since all other decl types
3156 // just build an ordinary singleton decl ref.
3226 // Only create DeclRefExpr's for valid Decl's.
3253 #define DECL(type, base) \
3254 case Decl::type:
3256 llvm_unreachable("invalid value decl kind");
3259 case Decl::ObjCAtDefsField:
3264 case Decl::EnumConstant:
3265 case Decl::UnresolvedUsingValue:
3266 case Decl::OMPDeclareReduction:
3267 case Decl::OMPDeclareMapper:
3275 case Decl::Field:
3276 case Decl::IndirectField:
3277 case Decl::ObjCIvar:
3289 case Decl::NonTypeTemplateParm: {
3314 case Decl::Var:
3315 case Decl::VarTemplateSpecialization:
3316 case Decl::VarTemplatePartialSpecialization:
3317 case Decl::Decomposition:
3318 case Decl::OMPCapturedExpr:
3328 case Decl::ImplicitParam:
3329 case Decl::ParmVar: {
3346 case Decl::Binding: {
3361 case Decl::Function: {
3401 case Decl::CXXDeductionGuide:
3404 case Decl::MSProperty:
3405 case Decl::MSGuid:
3406 case Decl::TemplateParamObject:
3412 case Decl::CXXMethod:
3431 case Decl::CXXConversion:
3432 case Decl::CXXDestructor:
3433 case Decl::CXXConstructor:
3459 Decl *currentDecl = nullptr;
5262 if (Decl *ID = D.IteratorDecl)
5424 if (Decl *ID = D.IteratorDecl)
6485 // Rewrite the function decl for this builtin by replacing parameters
13511 // If the underlying expression isn't a decl ref, give up.
13572 // We have an lvalue with a decl. Make sure the decl is not declared
13613 llvm_unreachable("Unknown/unexpected decl type");
13641 const Decl *D = DRE->getDecl();
13919 Decl *D = getDeclFromExpr(E);
15278 Decl *ManglingContextDecl;
15395 // Set the parameters on the block decl.
15402 // Finally we can process decl attributes.
16370 ExpressionEvaluationContext NewContext, Decl *LambdaContextDecl,
16383 Decl *ClosureContextDecl = ExprEvalContexts.back().ManglingContextDecl;
16420 const ValueDecl *Decl = DeclRef->getDecl();
16422 << Decl->getName() << E->getSourceRange();
16423 Diag(Decl->getLocation(), diag::note_previous_decl) << Decl->getName();
16452 ExprResult Sema::CheckForImmediateInvocation(ExprResult E, FunctionDecl *Decl) {
16453 if (!E.isUsable() || !Decl || !Decl->isConsteval() || isConstantEvaluated() ||
16470 ConstantExpr::getStorageKind(Decl->getReturnType().getTypePtr(),
16495 llvm_unreachable("unhandled decl kind");
18450 "missing non-odr-use marking for unevaluated decl ref");
18508 Decl *D, Expr *E, bool MightBeOdrUse) {
18591 void Sema::MarkAnyDeclReferenced(SourceLocation Loc, Decl *D,
18634 if (Decl *D = Arg.getAsDecl())
18660 void visitUsedDecl(SourceLocation Loc, Decl *D) {