Lines Matching refs:CountFD
153 FieldDecl *CountFD = dyn_cast<FieldDecl>(CountDecl); in CheckCountedByAttrOnField() local
155 CountFD = IFD->getAnonField(); in CheckCountedByAttrOnField()
157 if (!CountFD) { in CheckCountedByAttrOnField()
167 if (FD->getParent() != CountFD->getParent()) { in CheckCountedByAttrOnField()
168 if (CountFD->getParent()->isUnion()) { in CheckCountedByAttrOnField()
169 Diag(CountFD->getBeginLoc(), diag::err_count_attr_refer_to_union) in CheckCountedByAttrOnField()
170 << Kind << CountFD->getSourceRange(); in CheckCountedByAttrOnField()
177 auto *CountRD = GetEnclosingNamedOrTopAnonRecord(CountFD); in CheckCountedByAttrOnField()
181 << CountFD << Kind << FieldTy->isArrayType() << E->getSourceRange(); in CheckCountedByAttrOnField()
182 Diag(CountFD->getBeginLoc(), in CheckCountedByAttrOnField()
184 << CountFD << CountFD->getSourceRange(); in CheckCountedByAttrOnField()
189 Decls.push_back(TypeCoupledDeclRefInfo(CountFD, /*IsDref*/ false)); in CheckCountedByAttrOnField()