Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp2214 const Expr *PExp; in isNullPointerArithmeticExtension() local
2218 PExp = LHS; in isNullPointerArithmeticExtension()
2222 PExp = RHS; in isNullPointerArithmeticExtension()
2228 if (!PExp->IgnoreParenCasts() in isNullPointerArithmeticExtension()
2233 const PointerType *PTy = PExp->getType()->getAs<PointerType>(); in isNullPointerArithmeticExtension()
H A DExprConstant.cpp9210 const Expr *PExp = E->getLHS(); in VisitBinaryOperator() local
9213 std::swap(PExp, IExp); in VisitBinaryOperator()
9215 bool EvalPtrOK = evaluatePointer(PExp, Result); in VisitBinaryOperator()
9226 QualType Pointee = PExp->getType()->castAs<PointerType>()->getPointeeType(); in VisitBinaryOperator()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp10898 Expr *PExp = LHS.get(), *IExp = RHS.get(); in CheckAdditionOperands() local
10901 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
10903 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
10906 std::swap(PExp, IExp); in CheckAdditionOperands()
10907 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
10909 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
10915 assert(PExp->getType()->isAnyPointerType()); in CheckAdditionOperands()
10921 if (PExp->IgnoreParenCasts()->isNullPointerConstant( in CheckAdditionOperands()
10931 Context, BO_Add, PExp, IExp); in CheckAdditionOperands()
10932 diagnoseArithmeticOnNullPointer(*this, Loc, PExp, IsGNUIdiom); in CheckAdditionOperands()
[all …]