Lines Matching refs:IntLiteral
648 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr); in checkIncorrectRelationalOperator() local
651 if (!IntLiteral) { in checkIncorrectRelationalOperator()
652 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectRelationalOperator()
657 if (!IntLiteral || !BoolExpr->isKnownToHaveBooleanValue()) in checkIncorrectRelationalOperator()
660 llvm::APInt IntValue = IntLiteral->getValue(); in checkIncorrectRelationalOperator()
664 bool IntLarger = IntLiteral->getType()->isUnsignedIntegerType() || in checkIncorrectRelationalOperator()
687 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr); in checkIncorrectEqualityOperator() local
690 if (!IntLiteral) { in checkIncorrectEqualityOperator()
691 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectEqualityOperator()
695 if (!IntLiteral) in checkIncorrectEqualityOperator()
712 llvm::APInt L1 = IntLiteral->getValue(); in checkIncorrectEqualityOperator()
722 llvm::APInt IntValue = IntLiteral->getValue(); in checkIncorrectEqualityOperator()