Home
last modified time | relevance | path

Searched refs:getLHS (Results 1 – 25 of 87) sorted by relevance

1234

/external/clang/lib/StaticAnalyzer/Checkers/
DUndefinedAssignmentChecker.cpp58 if (state->getSVal(B->getLHS(), C.getLocationContext()).isUndef()) { in checkBind()
61 ex = B->getLHS(); in checkBind()
DUndefResultChecker.cpp55 if (state->getSVal(B->getLHS(), LCtx).isUndef()) { in checkPostStmt()
56 Ex = B->getLHS()->IgnoreParenCasts(); in checkPostStmt()
DIdempotentOperationChecker.cpp130 const Expr *LHS = B->getLHS(); in checkPreStmt()
423 const Expr *LHS = i->first->getLHS(); in checkEndAnalysis()
677 if (B->getLHS()->getType()->getAs<PointerType>()) in CanVary()
681 || CanVary(B->getLHS(), AC); in CanVary()
DPointerArithChecker.cpp41 SVal LV = state->getSVal(B->getLHS(), LCtx); in checkPreStmt()
DPointerSubChecker.cpp44 SVal LV = state->getSVal(B->getLHS(), LCtx); in checkPreStmt()
DMallocOverflowSecurityChecker.cpp81 const Expr *lhs = binop->getLHS(); in CheckMallocArgument()
161 const Expr * lhs = E->getLHS(); in VisitBinaryOperator()
DDeadStoresChecker.cpp241 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
266 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt()
DCStringSyntaxChecker.cpp114 const Expr *L = BE->getLHS(); in containsBadStrncatPattern()
/external/clang/lib/ARCMigrate/
DTransZeroOutPropsInDealloc.cpp165 return isZeroingPropIvar(BOE->getLHS()) && in isZeroingPropIvar()
171 Expr *LHS = BOE->getLHS(); in isZeroingPropIvar()
201 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens()); in isZeroingPropIvar()
DTransARCAssign.cpp46 Expr *E = Exp->getLHS(); in VisitBinaryOperator()
DTransRetainReleaseDealloc.cpp213 if (RefD != getReferencedDecl(Bop->getLHS())) in isCommonUnusedAutorelease()
363 if (bopE->getOpcode() == BO_Comma && bopE->getLHS() == E && in tryRemoving()
/external/llvm/lib/MC/
DMCExpr.cpp89 if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS())) { in print()
90 OS << *BE.getLHS(); in print()
92 OS << '(' << *BE.getLHS() << ')'; in print()
535 if (!ABE->getLHS()->EvaluateAsRelocatableImpl(LHSValue, Asm, Layout, in EvaluateAsRelocatableImpl()
620 const MCSection *LHS_S = BE->getLHS()->FindAssociatedSection(); in FindAssociatedSection()
/external/clang/lib/StaticAnalyzer/Core/
DSymbolManager.cpp55 getLHS()->dumpToStream(os); in dumpToStream()
63 os << ' ' << getLHS().getZExtValue(); in dumpToStream()
64 if (getLHS().isUnsigned()) os << 'U'; in dumpToStream()
73 getLHS()->dumpToStream(os); in dumpToStream()
148 itr.push_back(cast<SymIntExpr>(SE)->getLHS()); in expand()
155 itr.push_back(x->getLHS()); in expand()
DSimpleConstraintManager.cpp200 return assumeSymRel(state, SE->getLHS(), op, SE->getRHS()); in assumeAux()
221 Sym = SE->getLHS(); in computeAdjustment()
/external/clang/lib/CodeGen/
DCGExprAgg.cpp671 CGF.EmitIgnoredExpr(E->getLHS()); in VisitBinComma()
712 return isBlockVarRef(op->getLHS()); in isBlockVarRef()
762 assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(), in VisitBinAssign()
770 if (isBlockVarRef(E->getLHS()) && in VisitBinAssign()
777 LValue LHS = CGF.EmitLValue(E->getLHS()); in VisitBinAssign()
779 EmitCopy(E->getLHS()->getType(), in VisitBinAssign()
781 needsGC(E->getLHS()->getType()), in VisitBinAssign()
787 LValue LHS = CGF.EmitLValue(E->getLHS()); in VisitBinAssign()
792 needsGC(E->getLHS()->getType()), in VisitBinAssign()
DCodeGenFunction.cpp652 if (ConstantFoldsToSimpleInteger(CondBOp->getLHS(), ConstantBool) && in EmitBranchOnBoolExpr()
663 return EmitBranchOnBoolExpr(CondBOp->getLHS(), TrueBlock, FalseBlock); in EmitBranchOnBoolExpr()
671 EmitBranchOnBoolExpr(CondBOp->getLHS(), LHSTrue, FalseBlock); in EmitBranchOnBoolExpr()
686 if (ConstantFoldsToSimpleInteger(CondBOp->getLHS(), ConstantBool) && in EmitBranchOnBoolExpr()
697 return EmitBranchOnBoolExpr(CondBOp->getLHS(), TrueBlock, FalseBlock); in EmitBranchOnBoolExpr()
705 EmitBranchOnBoolExpr(CondBOp->getLHS(), TrueBlock, LHSFalse); in EmitBranchOnBoolExpr()
733 EmitBranchOnBoolExpr(CondOp->getLHS(), TrueBlock, FalseBlock); in EmitBranchOnBoolExpr()
DCGExprScalar.cpp1653 Result.LHS = Visit(E->getLHS()); in EmitBinOps()
1665 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue()
1685 LValue LHSLV = EmitCheckedLValue(E->getLHS(), CodeGenFunction::TCK_Store); in EmitCompoundAssignLValue()
1911 Expr *pointerOperand = expr->getLHS(); in emitPointerArithmetic()
2047 QualType elementType = expr->getLHS()->getType()->getPointeeType(); in EmitSub()
2182 QualType LHSTy = E->getLHS()->getType(); in EmitCompare()
2186 Value *LHS = CGF.EmitScalarExpr(E->getLHS()); in EmitCompare()
2191 Value *LHS = Visit(E->getLHS()); in EmitCompare()
2278 CodeGenFunction::ComplexPairTy LHS = CGF.EmitComplexExpr(E->getLHS()); in EmitCompare()
2316 switch (E->getLHS()->getType().getObjCLifetime()) { in VisitBinAssign()
[all …]
DCGExprComplex.cpp588 Ops.LHS = Visit(E->getLHS()); in EmitBinOps()
601 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue()
616 LValue LHS = CGF.EmitLValue(E->getLHS()); in EmitCompoundAssignLValue()
656 assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(), in EmitBinAssignLValue()
666 LValue LHS = CGF.EmitLValue(E->getLHS()); in EmitBinAssignLValue()
690 CGF.EmitIgnoredExpr(E->getLHS()); in VisitBinComma()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMCExpr.cpp55 AddValueSymbols_(BE->getLHS(), Asm); in AddValueSymbols_()
/external/clang/lib/Analysis/
DReachableCode.cpp201 R1 = CAO->getLHS()->getSourceRange(); in GetUnreachableLoc()
218 R1 = ASE->getLHS()->getSourceRange(); in GetUnreachableLoc()
DCFG.cpp480 if (Bop->getLHS()->EvaluateAsInt(IntVal, *Context)) { in tryEvaluateBool()
503 TryResult LHS = tryEvaluateBool(Bop->getLHS()); in evaluateAsBooleanConditionNoCache()
1257 Expr *LHS = B->getLHS()->IgnoreParens(); in VisitLogicalOperator()
1310 return addStmt(B->getLHS()); in VisitBinaryOperator()
1318 Visit(B->getLHS()); in VisitBinaryOperator()
1328 CFGBlock *LBlock = Visit(B->getLHS()); in VisitBinaryOperator()
1451 CFGBlock *LHSBlock = Visit(C->getLHS(), alwaysAdd); in VisitChooseExpr()
2641 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx); in shouldAddCase()
3118 CFGBlock *ConfluenceBlock = VisitForTemporaryDtors(E->getLHS()); in VisitBinaryOperatorForTemporaryDtors()
3141 TryResult KnownVal = tryEvaluateBool(E->getLHS()); in VisitBinaryOperatorForTemporaryDtors()
[all …]
DPseudoConstantAnalysis.cpp96 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts()); in RunAnalysis()
/external/clang/lib/Sema/
DSemaStmt.cpp112 CanAssign = Op->getLHS()->IgnoreParenImpCasts()->isLValue(); in DiagnoseUnusedComparison()
702 Expr *Lo = CS->getLHS(); in ActOnFinishSwitchStmt()
785 Expr *PrevCase = CaseVals[i-1].second->getLHS()->IgnoreParenCasts(); in ActOnFinishSwitchStmt()
786 Expr *CurrCase = CaseVals[i].second->getLHS()->IgnoreParenCasts(); in ActOnFinishSwitchStmt()
797 Diag(CaseVals[i].second->getLHS()->getLocStart(), in ActOnFinishSwitchStmt()
801 Diag(CaseVals[i].second->getLHS()->getLocStart(), in ActOnFinishSwitchStmt()
807 Diag(CaseVals[i-1].second->getLHS()->getLocStart(), in ActOnFinishSwitchStmt()
860 Diag(CR->getLHS()->getLocStart(), diag::warn_case_empty_range) in ActOnFinishSwitchStmt()
861 << SourceRange(CR->getLHS()->getLocStart(), in ActOnFinishSwitchStmt()
915 Diag(CR->getLHS()->getLocStart(), diag::err_duplicate_case) in ActOnFinishSwitchStmt()
[all …]
DSemaChecking.cpp3237 const Expr *LHS = BO->getLHS()->IgnoreParenCasts(); in ignoreLiteralAdditions()
3369 const Expr *L = BE->getLHS()->IgnoreParenCasts(); in CheckStrncatArguments()
3575 Expr *Base = B->getLHS(); in EvalAddr()
3591 if (Expr *lhsExpr = C->getLHS()) { in EvalAddr()
3744 if (Expr *lhsExpr = C->getLHS()) in EvalVal()
4058 return IntRange::meet(GetExprRange(C, BO->getLHS(), MaxWidth), in GetExprRange()
4066 = dyn_cast<IntegerLiteral>(BO->getLHS()->IgnoreParenCasts())) { in GetExprRange()
4080 IntRange L = GetExprRange(C, BO->getLHS(), MaxWidth); in GetExprRange()
4103 if (BO->getLHS()->getType()->isPointerType()) in GetExprRange()
4112 IntRange L = GetExprRange(C, BO->getLHS(), opWidth); in GetExprRange()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSymbolManager.h367 const SymExpr *getLHS() const { return LHS; } in getLHS() function
409 const llvm::APSInt &getLHS() const { return LHS; } in getLHS() function
444 const SymExpr *getLHS() const { return LHS; } in getLHS() function

1234