reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaExpr.cpp
13882     if (OC.isBrackets) {
13887           return ExprError(Diag(OC.LocEnd, diag::err_offsetof_array_type)
13893       ExprResult IdxRval = DefaultLvalueConversion(static_cast<Expr*>(OC.U.E));
13907       Comps.push_back(OffsetOfNode(OC.LocStart, Exprs.size(), OC.LocEnd));
13907       Comps.push_back(OffsetOfNode(OC.LocStart, Exprs.size(), OC.LocEnd));
13916       Comps.push_back(OffsetOfNode(OC.LocStart, OC.U.IdentInfo, OC.LocEnd));
13916       Comps.push_back(OffsetOfNode(OC.LocStart, OC.U.IdentInfo, OC.LocEnd));
13916       Comps.push_back(OffsetOfNode(OC.LocStart, OC.U.IdentInfo, OC.LocEnd));
13922     if (RequireCompleteType(OC.LocStart, CurrentType,
13929       return ExprError(Diag(OC.LocEnd, diag::err_offsetof_record_type)
13949                               << SourceRange(Components[0].LocStart, OC.LocEnd)
13955     LookupResult R(*this, OC.U.IdentInfo, OC.LocStart, LookupMemberName);
13955     LookupResult R(*this, OC.U.IdentInfo, OC.LocStart, LookupMemberName);
13966                        << OC.U.IdentInfo << RD << SourceRange(OC.LocStart,
13966                        << OC.U.IdentInfo << RD << SourceRange(OC.LocStart,
13967                                                               OC.LocEnd));
13974       Diag(OC.LocEnd, diag::err_offsetof_bitfield)
13988     if (IsDerivedFrom(OC.LocStart, CurrentType, Context.getTypeDeclType(Parent),
13991         Diag(OC.LocEnd, diag::err_offsetof_field_of_virtual_base)
14005         Comps.push_back(OffsetOfNode(OC.LocStart,
14006                                      cast<FieldDecl>(FI), OC.LocEnd));
14009       Comps.push_back(OffsetOfNode(OC.LocStart, MemberDecl, OC.LocEnd));
14009       Comps.push_back(OffsetOfNode(OC.LocStart, MemberDecl, OC.LocEnd));