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

References

tools/clang/lib/Sema/SemaExpr.cpp
12334     auto* VarRef = dyn_cast<DeclRefExpr>(op);
12336       Diag(op->getExprLoc(), diag::err_opencl_taking_address_capture);
12343     if (UnaryOperator* uOp = dyn_cast<UnaryOperator>(op)) {
12352   ValueDecl *dcl = getPrimaryDecl(op);
12356                                            op->getBeginLoc()))
12359   Expr::LValueClassification lval = op->ClassifyLValue(Context);
12366       << op->getType() << op->getSourceRange();
12366       << op->getType() << op->getSourceRange();
12370     OrigOp = op =
12371         CreateMaterializeTemporaryExpr(op->getType(), OrigOp.get(), true);
12372   } else if (isa<ObjCSelectorExpr>(op)) {
12373     return Context.getPointerType(op->getType());
12379     if (!isa<DeclRefExpr>(op)) {
12384     DeclRefExpr *DRE = cast<DeclRefExpr>(op);
12396           << op->getSourceRange();
12401           << op->getSourceRange()
12402           << FixItHint::CreateInsertion(op->getSourceRange().getBegin(), Qual);
12408       Diag(OpLoc, diag::err_typecheck_addrof_dtor) << op->getSourceRange();
12411         op->getType(), Context.getTypeDeclType(MD->getParent()).getTypePtr());
12419     if (!op->getType()->isFunctionType()) {
12421       if (isa<PseudoObjectExpr>(op)) {
12425           << op->getType() << op->getSourceRange();
12425           << op->getType() << op->getSourceRange();
12429   } else if (op->getObjectKind() == OK_BitField) { // C99 6.5.3.2p1
12432   } else if (op->getObjectKind() == OK_VectorComponent) {
12453       if (isa<DeclRefExpr>(op) && cast<DeclRefExpr>(op)->getQualifier()) {
12453       if (isa<DeclRefExpr>(op) && cast<DeclRefExpr>(op)->getQualifier()) {
12467               op->getType(),
12481     diagnoseAddressOfInvalidType(*this, OpLoc, op, AddressOfError);
12489     Diag(OpLoc, diag::ext_typecheck_addrof_void) << op->getSourceRange();
12493   if (op->getType()->isObjCObjectType())
12494     return Context.getObjCObjectPointerType(op->getType());
12496   CheckAddressOfPackedMember(op);
12498   return Context.getPointerType(op->getType());