• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching refs:getDecl

563             SemaRef.Diag(Entity.getDecl()->getLocation(),
575 SemaRef.Diag(Entity.getDecl()->getLocation(),
577 << /*field*/1 << Entity.getDecl();
649 if (!RType->getDecl()->isUnion())
771 const RecordDecl *RDecl = RType->getDecl();
978 RecordDecl *structDecl = DeclType->castAs<RecordType>()->getDecl();
1008 Entity.getParent()->getType()->castAs<RecordType>()->getDecl();
1274 RecordDecl *RD = DeclType->castAs<RecordType>()->getDecl();
1991 } else if (cast<VarDecl>(Entity.getDecl())->hasLocalStorage()) {
2015 RecordDecl *structDecl = DeclType->castAs<RecordType>()->getDecl();
2027 RecordDecl *RD = DeclType->castAs<RecordType>()->getDecl();
2102 RecordDecl *RD = DeclType->castAs<RecordType>()->getDecl();
2514 DeclContext::lookup_result Lookup = RT->getDecl()->lookup(FieldName);
2548 FieldInitializerValidatorCCC CCC(RT->getDecl());
2552 Sema::CTK_ErrorRecovery, RT->getDecl())) {
2570 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RT->getDecl()))
2575 for (auto *FI : RT->getDecl()->fields()) {
2590 if (RT->getDecl()->isUnion()) {
2642 (*NextField == RT->getDecl()->field_end() ||
2646 for (auto FI = RT->getDecl()->field_begin();
2647 FI != RT->getDecl()->field_end(); ++FI) {
2650 if (*NextField != RT->getDecl()->field_end() &&
2775 if (RT->getDecl()->isUnion())
3308 ValueDecl *InitializedEntity::getDecl() const {
3405 if (auto *D = getDecl()) {
3777 VarDecl *VD = cast<VarDecl>(Entity.getDecl());
4046 = cast<CXXRecordDecl>(DestRecordType->getDecl());
4397 ET && ET->getDecl()->isFixed() &&
4507 CXXRecordDecl *T1RecordDecl = cast<CXXRecordDecl>(T1RecordType->getDecl());
4530 if (T1RecordType && T1RecordType->getDecl()->isInvalidDecl())
4538 CXXRecordDecl *T2RecordDecl = cast<CXXRecordDecl>(T2RecordType->getDecl());
4574 if (T2RecordType && T2RecordType->getDecl()->isInvalidDecl())
5047 if (CXXRecordDecl *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl())) {
5174 = cast<CXXRecordDecl>(DestRecordType->getDecl());
5211 = cast<CXXRecordDecl>(SourceRecordType->getDecl());
5382 VarDecl *var = dyn_cast<VarDecl>(cast<DeclRefExpr>(e)->getDecl());
5466 if (ParmVarDecl *param = cast_or_null<ParmVarDecl>(Entity.getDecl()))
5566 if (!DRE || !isa<FunctionDecl>(DRE->getDecl()))
5570 cast<FunctionDecl>(DRE->getDecl()));
5587 return isa<DecompositionDecl>(Entity.getDecl());
5925 if (ParmVarDecl *Param = cast_or_null<ParmVarDecl>(Entity.getDecl()))
5979 if (Entity.getDecl() &&
5980 isa<ObjCMethodDecl>(Entity.getDecl()->getDeclContext()))
5986 if (Entity.getDecl() &&
5987 isa<ObjCMethodDecl>(Entity.getDecl()->getDeclContext()))
6093 return Entity.getDecl()->getLocation();
6148 Class = cast<CXXRecordDecl>(Record->getDecl());
6305 S.LookupConstructors(cast<CXXRecordDecl>(Record->getDecl()));
6345 if (Entity.isParameterKind() && Entity.getDecl()) {
6346 if (Entity.getDecl()->getLocation().isInvalid())
6349 if (Entity.getDecl()->getDeclName())
6350 S.Diag(Entity.getDecl()->getLocation(), diag::note_parameter_named_here)
6351 << Entity.getDecl()->getDeclName();
6353 S.Diag(Entity.getDecl()->getLocation(), diag::note_parameter_here);
6459 Step.Function.FoundDecl.getDecl())) {
7017 auto *VD = dyn_cast<VarDecl>(DRE->getDecl());
7022 } else if (isa<ParmVarDecl>(DRE->getDecl())) {
7114 auto *VD = dyn_cast<VarDecl>(DRE->getDecl());
7436 MTE->setExtendingDecl(ExtendingEntity->getDecl(),
7460 << ExtendingEntity->getDecl()->isImplicit()
7461 << ExtendingEntity->getDecl() << Init->isGLValue() << DiagRange;
7472 ExtendingEntity ? ExtendingEntity->getDecl() : nullptr) {
7517 auto *VD = DRE ? dyn_cast<VarDecl>(DRE->getDecl()) : nullptr;
7525 ExtendingEntity ? ExtendingEntity->getDecl() : nullptr) {
7561 << Entity.getType()->isReferenceType() << DRE->getDecl()
7562 << isa<ParmVarDecl>(DRE->getDecl()) << DiagRange;
7672 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl());
7810 if (Decl *D = Entity.getDecl())
7844 if (auto *DD = dyn_cast_or_null<DeclaratorDecl>(Entity.getDecl())) {
7901 << SourceRange(Entity.getDecl()->getBeginLoc(), Args[0]->getEndLoc());
7907 // the same as Entity.getDecl()->getType() in cases involving type merging,
7910 *ResultType = Entity.getDecl() ? Entity.getDecl()->getType() :
8044 if (auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl())) {
8173 = S.LookupDestructor(cast<CXXRecordDecl>(Record->getDecl()));
8552 auto Var = cast<VarDecl>(DRE->getDecl());
8638 cast<FieldDecl>(Entity.getDecl())->isBitField())
8640 cast<FieldDecl>(Entity.getDecl()),
8733 if (auto *D = Entity.getDecl())
8846 auto *FD = cast<FunctionDecl>(cast<DeclRefExpr>(OnlyArg)->getDecl());
9099 ->getDecl();
9109 S.Diag(Entity.getDecl()->getLocation(),
9114 S.Diag(Record->getDecl()->getLocation(),
9116 << S.Context.getTagDeclType(Record->getDecl());
9174 S.Diag(Entity.getDecl()->getLocation(), diag::note_previous_decl)
9635 OS << *TT->getDecl();