Home
last modified time | relevance | path

Searched refs:IgnoreParenImpCasts (Results 1 – 25 of 126) sorted by relevance

123456

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DRedundantBranchConditionCheck.cpp86 dyn_cast<BinaryOperator>(InnerIf->getCond()->IgnoreParenImpCasts()); in check()
88 if (isa<DeclRefExpr>(InnerIf->getCond()->IgnoreParenImpCasts()) || in check()
95 dyn_cast<DeclRefExpr>(BinOpCond->getLHS()->IgnoreParenImpCasts()); in check()
135 cast<BinaryOperator>(InnerIf->getCond()->IgnoreParenImpCasts()); in check()
137 dyn_cast<DeclRefExpr>(CondOp->getLHS()->IgnoreParenImpCasts()); in check()
DStringIntegerAssignmentCheck.cpp55 const auto *LHS = BinOp->getLHS()->IgnoreParenImpCasts(); in isLikelyCharExpression()
56 const auto *RHS = BinOp->getRHS()->IgnoreParenImpCasts(); in isLikelyCharExpression()
71 CondOp->getFalseExpr()->IgnoreParenImpCasts()) || in isLikelyCharExpression()
73 CondOp->getTrueExpr()->IgnoreParenImpCasts()); in isLikelyCharExpression()
DTooSmallLoopVariableCheck.cpp116 const Expr *RHSE = BinOperator->getRHS()->IgnoreParenImpCasts(); in calcUpperBoundMagnitudeBits()
117 const Expr *LHSE = BinOperator->getLHS()->IgnoreParenImpCasts(); in calcUpperBoundMagnitudeBits()
150 Result.Nodes.getNodeAs<Expr>(LoopUpperBoundName)->IgnoreParenImpCasts(); in check()
152 Result.Nodes.getNodeAs<Expr>(LoopIncrementName)->IgnoreParenImpCasts(); in check()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DLoopConvertUtils.cpp199 return dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()); in getDeclRef()
293 if (areSameExpr(Context, SourceExpr->IgnoreParenImpCasts(), in isIndexInSubscriptExpr()
294 Obj->IgnoreParenImpCasts())) in isIndexInSubscriptExpr()
297 if (const Expr *InnerObj = getDereferenceOperand(Obj->IgnoreParenImpCasts())) in isIndexInSubscriptExpr()
298 if (PermitDeref && areSameExpr(Context, SourceExpr->IgnoreParenImpCasts(), in isIndexInSubscriptExpr()
299 InnerObj->IgnoreParenImpCasts())) in isIndexInSubscriptExpr()
358 const Expr *Init = VDecl->getInit()->IgnoreParenImpCasts(); in isAliasDecl()
479 const Expr *Node = E->IgnoreParenImpCasts(); in addComponent()
546 dyn_cast<CXXOperatorCallExpr>(Base->IgnoreParenImpCasts())) { in TraverseMemberExpr()
602 dyn_cast<MemberExpr>(MemberCall->getCallee()->IgnoreParenImpCasts()); in TraverseCXXMemberCallExpr()
[all …]
DUseDefaultMemberInitCheck.cpp146 return InitList->getInit(0)->IgnoreParenImpCasts(); in getInitializer()
151 E1 = ignoreUnaryPlus(getInitializer(E1->IgnoreParenImpCasts())); in sameValue()
152 E2 = ignoreUnaryPlus(getInitializer(E2->IgnoreParenImpCasts())); in sameValue()
DLoopConvertCheck.cpp410 if (const auto *Mem = dyn_cast<MemberExpr>(E->IgnoreParenImpCasts())) in getReferencedVariable()
418 if (const auto *Member = dyn_cast<MemberExpr>(E->IgnoreParenImpCasts())) in isDirectMemberExpr()
419 return isa<CXXThisExpr>(Member->getBase()->IgnoreParenImpCasts()); in isDirectMemberExpr()
724 ContainerExpr = ContainerExpr->IgnoreParenImpCasts(); in getContainerString()
945 ComponentFinder.findExprComponents(ContainerExpr->IgnoreParenImpCasts()); in check()
957 ContainerExpr = Finder.getContainerIndexed()->IgnoreParenImpCasts(); in check()
/external/llvm-project/clang/lib/Tooling/Transformer/
DSourceCodeBuilders.cpp79 getText(*Op->getSubExpr()->IgnoreParenImpCasts(), Context); in buildDereference()
100 getText(*Op->getSubExpr()->IgnoreParenImpCasts(), Context); in buildAddressOf()
120 const Expr *SubExpr = Op->getSubExpr()->IgnoreParenImpCasts(); in buildDot()
144 const Expr *SubExpr = Op->getSubExpr()->IgnoreParenImpCasts(); in buildArrow()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DCStringSyntaxChecker.cpp159 const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern()
181 if (const auto *IL = dyn_cast<IntegerLiteral>(LenArg->IgnoreParenImpCasts())) { in containsBadStrlcpyStrlcatPattern()
189 dyn_cast<BinaryOperator>(DstArg->IgnoreParenImpCasts())) { in containsBadStrlcpyStrlcatPattern()
190 DstArgDRE = dyn_cast<DeclRefExpr>(BE->getLHS()->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern()
192 if ((IL = dyn_cast<IntegerLiteral>(BE->getRHS()->IgnoreParenImpCasts()))) { in containsBadStrlcpyStrlcatPattern()
DMallocOverflowSecurityChecker.cpp80 e = e->IgnoreParenImpCasts(); in CheckMallocArgument()
162 const Expr *E = E_p->IgnoreParenImpCasts(); in CheckExpr()
189 const Expr *rhse = rhs->IgnoreParenImpCasts(); in CheckAssignmentExpr()
192 const Expr *denom = BOp->getRHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
198 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
212 const Expr *E = lhs->IgnoreParenImpCasts(); in CheckAssignmentExpr()
DConversionChecker.cpp60 if (!isa<DeclRefExpr>(Cast->IgnoreParenImpCasts())) in checkPreStmt()
135 QualType SubType = Cast->IgnoreParenImpCasts()->getType(); in isLossOfPrecision()
187 QualType SubType = Cast->IgnoreParenImpCasts()->getType(); in isLossOfSign()
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp81 e = e->IgnoreParenImpCasts(); in CheckMallocArgument()
163 const Expr *E = E_p->IgnoreParenImpCasts(); in CheckExpr()
190 const Expr *rhse = rhs->IgnoreParenImpCasts(); in CheckAssignmentExpr()
193 const Expr *denom = BOp->getRHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
196 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
210 const Expr *E = lhs->IgnoreParenImpCasts(); in CheckAssignmentExpr()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DExplicitMakePairCheck.cpp49 const Expr *Arg0 = Call->getArg(0)->IgnoreParenImpCasts(); in check()
50 const Expr *Arg1 = Call->getArg(1)->IgnoreParenImpCasts(); in check()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DPreferMemberInitializerCheck.cpp64 const auto *ME = dyn_cast<MemberExpr>(BO->getLHS()->IgnoreParenImpCasts()); in isAssignmentToMemberOf()
73 return std::make_pair(Field, BO->getRHS()->IgnoreParenImpCasts()); in isAssignmentToMemberOf()
79 dyn_cast<MemberExpr>(COCE->getArg(0)->IgnoreParenImpCasts()); in isAssignmentToMemberOf()
88 return std::make_pair(Field, COCE->getArg(1)->IgnoreParenImpCasts()); in isAssignmentToMemberOf()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DDurationAdditionCheck.cpp49 if (Call == Binop->getLHS()->IgnoreParenImpCasts()) { in check()
57 assert(Call == Binop->getRHS()->IgnoreParenImpCasts() && in check()
DDurationUnnecessaryConversionCheck.cpp90 if (LHS->IgnoreParenImpCasts() == InnerCall) { in check()
97 assert(RHS->IgnoreParenImpCasts() == InnerCall && in check()
/external/llvm-project/clang/lib/ARCMigrate/
DTransUnbridgedCasts.cpp181 Expr *base = inner->IgnoreParenImpCasts(); in transformNonObjCToObjCCast()
183 base = cast<MemberExpr>(base)->getBase()->IgnoreParenImpCasts(); in transformNonObjCToObjCCast()
285 SourceRange SubRange = E->getSubExpr()->IgnoreParenImpCasts()->getSourceRange(); in getBlockMacroRanges()
435 if (arg == E || arg->IgnoreParenImpCasts() == E) in isPassedToCParamWithKnownOwnership()
DTransRetainReleaseDealloc.cpp86 rec = rec->IgnoreParenImpCasts(); in VisitObjCMessageExpr()
378 Rec = Init->IgnoreParenImpCasts(); in checkForGCDOrXPC()
380 Rec = FE->getSubExpr()->IgnoreParenImpCasts(); in checkForGCDOrXPC()
DTransGCCalls.cpp45 Expr *CEE = E->getCallee()->IgnoreParenImpCasts(); in VisitCallExpr()
/external/clang/lib/ARCMigrate/
DTransUnbridgedCasts.cpp182 Expr *base = inner->IgnoreParenImpCasts(); in transformNonObjCToObjCCast()
184 base = cast<MemberExpr>(base)->getBase()->IgnoreParenImpCasts(); in transformNonObjCToObjCCast()
288 SourceRange SubRange = E->getSubExpr()->IgnoreParenImpCasts()->getSourceRange(); in getBlockMacroRanges()
438 if (arg == E || arg->IgnoreParenImpCasts() == E) in isPassedToCParamWithKnownOwnership()
DTransRetainReleaseDealloc.cpp85 rec = rec->IgnoreParenImpCasts(); in VisitObjCMessageExpr()
374 Rec = Init->IgnoreParenImpCasts(); in checkForGCDOrXPC()
376 Rec = EWC->getSubExpr()->IgnoreParenImpCasts(); in checkForGCDOrXPC()
DTransGCCalls.cpp46 Expr *CEE = E->getCallee()->IgnoreParenImpCasts(); in VisitCallExpr()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DMisplacedArrayIndexCheck.cpp40 const Expr *RHSE = ArraySubscriptE->getRHS()->IgnoreParenImpCasts(); in check()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DTwineLocalCheck.cpp42 C = cast<CXXConstructExpr>(C)->getArg(0)->IgnoreParenImpCasts(); in check()
/external/clang/lib/AST/
DExprClassification.cpp497 Expr *Base = E->getBase()->IgnoreParenImpCasts(); in ClassifyMemberExpr()
562 bool TrueIsThrow = isa<CXXThrowExpr>(True->IgnoreParenImpCasts()); in ClassifyConditional()
563 bool FalseIsThrow = isa<CXXThrowExpr>(False->IgnoreParenImpCasts()); in ClassifyConditional()
591 if (CE->getSubExpr()->IgnoreParenImpCasts()->isLValue()) { in IsModifiable()
/external/clang/lib/Sema/
DSemaOpenMP.cpp3670 E = E->IgnoreParenImpCasts(); in ActOnOpenMPDeclareSimdDirective()
3697 E = E->IgnoreParenImpCasts(); in ActOnOpenMPDeclareSimdDirective()
3767 E = E->IgnoreParenImpCasts(); in ActOnOpenMPDeclareSimdDirective()
4032 NewLB = CE->getArg(0)->IgnoreParenImpCasts(); in SetLCDeclAndLB()
4141 isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts())) in CheckInit()
4169 isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts())) in CheckInit()
4195 E = CE->getArg(0)->IgnoreParenImpCasts(); in GetInitLCDecl()
4205 if (ME->isArrow() && isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts())) in GetInitLCDecl()
4271 RHS = RHS->IgnoreParenImpCasts(); in CheckIncRHS()
6119 AtomicBinOp->getRHS()->IgnoreParenImpCasts())) { in checkBinaryOperation()
[all …]

123456