Home
last modified time | relevance | path

Searched refs:PExp (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/clang/lib/AST/
DExpr.cpp1994 Expr *PExp; in isNullPointerArithmeticExtension() local
1998 PExp = LHS; in isNullPointerArithmeticExtension()
2002 PExp = RHS; in isNullPointerArithmeticExtension()
2008 if (!PExp->IgnoreParenCasts() in isNullPointerArithmeticExtension()
2013 const PointerType *PTy = PExp->getType()->getAs<PointerType>(); in isNullPointerArithmeticExtension()
DExprConstant.cpp8677 const Expr *PExp = E->getLHS(); in VisitBinaryOperator() local
8680 std::swap(PExp, IExp); in VisitBinaryOperator()
8682 bool EvalPtrOK = evaluatePointer(PExp, Result); in VisitBinaryOperator()
8693 QualType Pointee = PExp->getType()->castAs<PointerType>()->getPointeeType(); in VisitBinaryOperator()
/external/llvm-project/clang/lib/Sema/
DSemaExpr.cpp10533 Expr *PExp = LHS.get(), *IExp = RHS.get(); in CheckAdditionOperands() local
10536 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
10538 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
10541 std::swap(PExp, IExp); in CheckAdditionOperands()
10542 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
10544 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
10550 assert(PExp->getType()->isAnyPointerType()); in CheckAdditionOperands()
10556 if (PExp->IgnoreParenCasts()->isNullPointerConstant( in CheckAdditionOperands()
10566 Context, BO_Add, PExp, IExp); in CheckAdditionOperands()
10567 diagnoseArithmeticOnNullPointer(*this, Loc, PExp, IsGNUIdiom); in CheckAdditionOperands()
[all …]
/external/clang/lib/Sema/
DSemaExpr.cpp8383 Expr *PExp = LHS.get(), *IExp = RHS.get(); in CheckAdditionOperands() local
8386 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
8388 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
8391 std::swap(PExp, IExp); in CheckAdditionOperands()
8392 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
8394 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
8400 assert(PExp->getType()->isAnyPointerType()); in CheckAdditionOperands()
8405 if (!checkArithmeticOpPointerOperand(*this, Loc, PExp)) in CheckAdditionOperands()
8408 if (isObjCPointer && checkArithmeticOnObjCPointer(*this, Loc, PExp)) in CheckAdditionOperands()
8412 CheckArrayAccess(PExp, IExp); in CheckAdditionOperands()
[all …]
/external/clang/lib/AST/
DExprConstant.cpp5085 const Expr *PExp = E->getLHS(); in VisitBinaryOperator() local
5088 std::swap(PExp, IExp); in VisitBinaryOperator()
5090 bool EvalPtrOK = EvaluatePointer(PExp, Result, Info); in VisitBinaryOperator()
5102 QualType Pointee = PExp->getType()->castAs<PointerType>()->getPointeeType(); in VisitBinaryOperator()