Home
last modified time | relevance | path

Searched refs:IntLit (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationFactoryScaleCheck.cpp38 static double getValue(const IntegerLiteral *IntLit, in getValue() argument
40 if (IntLit) in getValue()
41 return IntLit->getValue().getLimitedValue(); in getValue()
173 const auto *IntLit = llvm::dyn_cast<IntegerLiteral>(MultBinOp->getLHS()); in check() local
175 if (IntLit || FloatLit) { in check()
176 NewScale = getNewScale(Scale, getValue(IntLit, FloatLit)); in check()
183 IntLit = llvm::dyn_cast<IntegerLiteral>(MultBinOp->getRHS()); in check()
185 if (IntLit || FloatLit) { in check()
186 NewScale = getNewScale(Scale, getValue(IntLit, FloatLit)); in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProTypeVarargCheck.cpp165 const auto *IntLit = in hasSingleVariadicArgumentWithValue() local
167 if (!IntLit) in hasSingleVariadicArgumentWithValue()
170 if (IntLit->getValue() != I) in hasSingleVariadicArgumentWithValue()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DImplicitBoolConversionCheck.cpp157 if (const auto *IntLit = dyn_cast<IntegerLiteral>(Expression)) { in getEquivalentBoolLiteralForExpr() local
158 return (IntLit->getValue() == 0) ? "false" : "true"; in getEquivalentBoolLiteralForExpr()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp13484 if (auto *IntLit = dyn_cast<IntegerLiteral>(E->IgnoreParenImpCasts())) { in isSameWidthConstantConversion() local
13486 S.getSourceManager().getCharacterData(IntLit->getBeginLoc())[0]; in isSameWidthConstantConversion()