Home
last modified time | relevance | path

Searched refs:APSIntType (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DBasicValueFactory.h148 APSIntType getAPSIntType(QualType T) const { in getAPSIntType()
156 return APSIntType(Ctx.getIntWidth(T), in getAPSIntType()
160 return APSIntType(Ctx.getIntWidth(T), T->isUnsignedFixedPointType()); in getAPSIntType()
170 APSIntType TargetType(To); in Convert()
171 if (TargetType == APSIntType(From)) in Convert()
178 APSIntType TargetType = getAPSIntType(T); in Convert()
182 const llvm::APSInt &Convert(APSIntType TargetType, const llvm::APSInt &From) { in Convert()
183 if (TargetType == APSIntType(From)) in Convert()
195 return getValue(APSIntType(v).getMaxValue()); in getMaxValue()
199 return getValue(APSIntType(v).getMinValue()); in getMinValue()
[all …]
H A DAPSIntType.h19 class APSIntType {
24 constexpr APSIntType(uint32_t Width, bool Unsigned) in APSIntType() function
27 /* implicit */ APSIntType(const llvm::APSInt &Value) in APSIntType() function
91 bool operator==(const APSIntType &Other) const {
99 bool operator<(const APSIntType &Other) const {
H A DRangedConstraintManager.h261 RangeSet castTo(RangeSet What, APSIntType Ty);
281 ContainerType truncateTo(RangeSet What, APSIntType Ty);
287 ContainerType convertTo(RangeSet What, APSIntType Ty);
292 ContainerType promoteTo(RangeSet What, APSIntType Ty);
347 APSIntType getAPSIntType() const;
356 APSIntType T{getMinValue()}; in containsZero()
H A DSMTConv.h317 APSIntType TargetType(ToWidth, !ToTy->isSignedIntegerOrEnumerationType()); in castAPSInt()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRangedConstraintManager.cpp109 APSIntType WraparoundType = BVF.getAPSIntType(Sym->getType()); in assumeSymInclusiveRange()
116 APSIntType ComparisonType = std::max(WraparoundType, APSIntType(From)); in assumeSymInclusiveRange()
172 APSIntType WraparoundType = BVF.getAPSIntType(Sym->getType()); in assumeSymRel()
185 APSIntType ComparisonType = std::max(WraparoundType, APSIntType(Int)); in assumeSymRel()
224 Adjustment = APSIntType(Adjustment).convert(SE->getRHS()); in computeAdjustment()
H A DRangeConstraintManager.cpp180 APSIntType Ty = APSIntType(First->From()); in unite()
367 APSIntType clang::ento::RangeSet::getAPSIntType() const { in getAPSIntType()
369 return APSIntType(begin()->From()); in getAPSIntType()
385 APSIntType Type(getMinValue()); in pin()
386 if (Type.testInRange(Point, true) != APSIntType::RTR_Within) in pin()
399 APSIntType Type(getMinValue()); in pin()
400 APSIntType::RangeTestResultKind LowerTest = Type.testInRange(Lower, true); in pin()
401 APSIntType::RangeTestResultKind UpperTest = Type.testInRange(Upper, true); in pin()
404 case APSIntType::RTR_Below: in pin()
406 case APSIntType::RTR_Below: in pin()
[all …]
H A DAPSIntType.cpp14 APSIntType::RangeTestResultKind
15 APSIntType::testInRange(const llvm::APSInt &Value, in testInRange()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundCheckerV2.cpp248 APSIntType(extent.getValue()).convert(SIE->getRHS()); in getSimplifiedOffsets()
H A DCStringChecker.cpp1022 llvm::APSInt fourInt = APSIntType(maxValInt).getValue(4); in getCStringLengthForRegion()
H A DMallocChecker.cpp1731 SVB.makeIntVal(MaxValInt / APSIntType(MaxValInt).getValue(4)); in checkTaintedness()
/freebsd/lib/clang/libclang/
H A DMakefile767 SRCS_FUL+= StaticAnalyzer/Core/APSIntType.cpp