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.cpp2212 const Expr *PExp; in isNullPointerArithmeticExtension() local
2216 PExp = LHS; in isNullPointerArithmeticExtension()
2220 PExp = RHS; in isNullPointerArithmeticExtension()
2227 dyn_cast<ConditionalOperator>(PExp->IgnoreParenNoopCasts(Ctx))) { in isNullPointerArithmeticExtension()
2232 PExp = EvalResult ? Select->getTrueExpr() : Select->getFalseExpr(); in isNullPointerArithmeticExtension()
2236 if (!PExp->IgnoreParenCasts() in isNullPointerArithmeticExtension()
2241 const PointerType *PTy = PExp->getType()->getAs<PointerType>(); in isNullPointerArithmeticExtension()
H A DExprConstant.cpp9631 const Expr *PExp = E->getLHS(); in VisitBinaryOperator() local
9634 std::swap(PExp, IExp); in VisitBinaryOperator()
9636 bool EvalPtrOK = evaluatePointer(PExp, Result); in VisitBinaryOperator()
9647 QualType Pointee = PExp->getType()->castAs<PointerType>()->getPointeeType(); in VisitBinaryOperator()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp11180 Expr *PExp = LHS.get(), *IExp = RHS.get(); in CheckAdditionOperands() local
11183 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
11185 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
11188 std::swap(PExp, IExp); in CheckAdditionOperands()
11189 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
11191 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
11197 assert(PExp->getType()->isAnyPointerType()); in CheckAdditionOperands()
11203 if (PExp->IgnoreParenCasts()->isNullPointerConstant( in CheckAdditionOperands()
11213 Context, BO_Add, PExp, IExp); in CheckAdditionOperands()
11214 diagnoseArithmeticOnNullPointer(*this, Loc, PExp, IsGNUIdiom); in CheckAdditionOperands()
[all …]