Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DTestAfterDivZeroChecker.cpp217 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(B->getRHS()); in checkBranchCondition() local
219 if (!IntLiteral) { in checkBranchCondition()
220 IntLiteral = dyn_cast<IntegerLiteral>(B->getLHS()); in checkBranchCondition()
224 if (!IntLiteral || IntLiteral->getValue() != 0) in checkBranchCondition()
/openbsd/gnu/llvm/clang/lib/Analysis/
H A DCFG.cpp932 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr); in checkIncorrectRelationalOperator() local
935 if (!IntLiteral) { in checkIncorrectRelationalOperator()
936 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectRelationalOperator()
941 if (!IntLiteral || !BoolExpr->isKnownToHaveBooleanValue()) in checkIncorrectRelationalOperator()
944 llvm::APInt IntValue = IntLiteral->getValue(); in checkIncorrectRelationalOperator()
948 bool IntLarger = IntLiteral->getType()->isUnsignedIntegerType() || in checkIncorrectRelationalOperator()
1032 if (const auto *IntLiteral = dyn_cast<IntegerLiteral>(SubExpr)) { in getIntegerLiteralSubexpressionValue() local
1034 llvm::APInt Value = IntLiteral->getValue(); in getIntegerLiteralSubexpressionValue()
1051 } else if (const auto *IntLiteral = in getIntegerLiteralSubexpressionValue() local
1053 return IntLiteral->getValue(); in getIntegerLiteralSubexpressionValue()