Home
last modified time | relevance | path

Searched refs:IntLiteral (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DTestAfterDivZeroChecker.cpp216 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(B->getRHS()); in checkBranchCondition() local
218 if (!IntLiteral) { in checkBranchCondition()
219 IntLiteral = dyn_cast<IntegerLiteral>(B->getLHS()); in checkBranchCondition()
223 if (!IntLiteral || IntLiteral->getValue() != 0) in checkBranchCondition()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp928 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr); in checkIncorrectRelationalOperator() local
931 if (!IntLiteral) { in checkIncorrectRelationalOperator()
932 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectRelationalOperator()
937 if (!IntLiteral || !BoolExpr->isKnownToHaveBooleanValue()) in checkIncorrectRelationalOperator()
940 llvm::APInt IntValue = IntLiteral->getValue(); in checkIncorrectRelationalOperator()
944 bool IntLarger = IntLiteral->getType()->isUnsignedIntegerType() || in checkIncorrectRelationalOperator()
970 if (!IntLiteral) { in checkIncorrectEqualityOperator()
971 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectEqualityOperator()
975 if (!IntLiteral) in checkIncorrectEqualityOperator()
992 llvm::APInt L1 = IntLiteral->getValue(); in checkIncorrectEqualityOperator()
[all …]