reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
9227 if (!S.Context.hasSameUnqualifiedType(LHSTy->getPointeeType(), RHSTy)) 9230 S.Diag(Loc, diag::warn_division_sizeof_ptr) << LHS << LHS->getSourceRange(); 9233 S.Diag(LHSArgDecl->getLocation(), diag::note_pointer_declared_here) 9236 } else if (const auto *ArrayTy = S.Context.getAsArrayType(LHSTy)) { 9238 if (ArrayElemTy != S.Context.getBaseElementType(ArrayTy) || 9241 S.Context.getTypeSize(ArrayElemTy) == S.Context.getTypeSize(RHSTy)) 9241 S.Context.getTypeSize(ArrayElemTy) == S.Context.getTypeSize(RHSTy)) 9243 S.Diag(Loc, diag::warn_division_sizeof_array) 9247 S.Diag(LHSArgDecl->getLocation(), diag::note_array_declared_here) 9251 S.Diag(Loc, diag::note_precedence_silence) << RHS;