Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/AST/
H A DExpr.cpp2119 Expr *PExp; in isNullPointerArithmeticExtension() local
2123 PExp = LHS; in isNullPointerArithmeticExtension()
2127 PExp = RHS; in isNullPointerArithmeticExtension()
2133 if (!PExp->IgnoreParenCasts() in isNullPointerArithmeticExtension()
2138 const PointerType *PTy = PExp->getType()->getAs<PointerType>(); in isNullPointerArithmeticExtension()
H A DExprConstant.cpp8814 const Expr *PExp = E->getLHS(); in VisitBinaryOperator() local
8817 std::swap(PExp, IExp); in VisitBinaryOperator()
8819 bool EvalPtrOK = evaluatePointer(PExp, Result); in VisitBinaryOperator()
8830 QualType Pointee = PExp->getType()->castAs<PointerType>()->getPointeeType(); in VisitBinaryOperator()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp11201 Expr *PExp = LHS.get(), *IExp = RHS.get(); in CheckAdditionOperands() local
11204 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
11206 } else if (PExp->getType()->isObjCObjectPointerType()) { in CheckAdditionOperands()
11209 std::swap(PExp, IExp); in CheckAdditionOperands()
11210 if (PExp->getType()->isPointerType()) { in CheckAdditionOperands()
11218 assert(PExp->getType()->isAnyPointerType()); in CheckAdditionOperands()
11224 if (PExp->IgnoreParenCasts()->isNullPointerConstant( in CheckAdditionOperands()
11234 Context, BO_Add, PExp, IExp); in CheckAdditionOperands()
11239 if (!checkArithmeticOpPointerOperand(*this, Loc, PExp)) in CheckAdditionOperands()
11246 CheckArrayAccess(PExp, IExp); in CheckAdditionOperands()
[all …]