Home
last modified time | relevance | path

Searched refs:ImpCast (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DSimplifyBooleanExprCheck.cpp150 if (const auto *ImpCast = dyn_cast<ImplicitCastExpr>(E)) in needsNullPtrComparison() local
151 return ImpCast->getCastKind() == CK_PointerToBoolean || in needsNullPtrComparison()
152 ImpCast->getCastKind() == CK_MemberPointerToBoolean; in needsNullPtrComparison()
158 if (const auto *ImpCast = dyn_cast<ImplicitCastExpr>(E)) in needsZeroComparison() local
159 return ImpCast->getCastKind() == CK_IntegralToBoolean; in needsZeroComparison()
165 if (const auto *ImpCast = dyn_cast<ImplicitCastExpr>(E)) { in needsStaticCast() local
166 if (ImpCast->getCastKind() == CK_UserDefinedConversion && in needsStaticCast()
167 ImpCast->getSubExpr()->getType()->isBooleanType()) { in needsStaticCast()
169 dyn_cast<CXXMemberCallExpr>(ImpCast->getSubExpr())) { in needsStaticCast()
/external/clang/lib/Sema/
DSema.cpp396 if (ImplicitCastExpr *ImpCast = dyn_cast<ImplicitCastExpr>(E)) { in ImpCastExprToType() local
397 if (ImpCast->getCastKind() == Kind && (!BasePath || BasePath->empty())) { in ImpCastExprToType()
398 ImpCast->setType(Ty); in ImpCastExprToType()
399 ImpCast->setValueKind(VK); in ImpCastExprToType()
/external/llvm-project/clang/lib/Sema/
DSema.cpp591 if (ImplicitCastExpr *ImpCast = dyn_cast<ImplicitCastExpr>(E)) { in ImpCastExprToType() local
592 if (ImpCast->getCastKind() == Kind && (!BasePath || BasePath->empty())) { in ImpCastExprToType()
593 ImpCast->setType(Ty); in ImpCastExprToType()
594 ImpCast->setValueKind(VK); in ImpCastExprToType()
DSemaStmt.cpp702 while (const auto *ImpCast = dyn_cast<ImplicitCastExpr>(E)) { in GetTypeBeforeIntegralPromotion() local
703 if (ImpCast->getCastKind() != CK_IntegralCast) break; in GetTypeBeforeIntegralPromotion()
704 E = ImpCast->getSubExpr(); in GetTypeBeforeIntegralPromotion()