reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/ASTContext.h
 2657   unsigned getIntWidth(QualType T) const;

References

tools/clang/include/clang/AST/ASTContext.h
 2688     unsigned Width = getIntWidth(Type);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h
  143     return APSIntType(Ctx.getIntWidth(T),
  213     return getValue(b ? 1 : 0, Ctx.getIntWidth(T),
tools/clang/lib/AST/ASTContext.cpp
 5761     return 1 + (getIntWidth(BoolTy) << 3);
 5766     return 2 + (getIntWidth(CharTy) << 3);
 5769     return 3 + (getIntWidth(ShortTy) << 3);
 5772     return 4 + (getIntWidth(IntTy) << 3);
 5775     return 5 + (getIntWidth(LongTy) << 3);
 5778     return 6 + (getIntWidth(LongLongTy) << 3);
 5781     return 7 + (getIntWidth(Int128Ty) << 3);
 5881   uint64_t PromotableSize = getIntWidth(Promotable);
 5882   uint64_t IntSize = getIntWidth(IntTy);
 6606       if (BT->getKind() == BuiltinType::ULong && getIntWidth(PointeeTy) == 32)
 6609         if (BT->getKind() == BuiltinType::Long && getIntWidth(PointeeTy) == 32)
10713     return FixedPointSemantics::GetIntegerSemantics(getIntWidth(Ty),
tools/clang/lib/AST/Expr.cpp
  919   assert(V.getBitWidth() == C.getIntWidth(type) &&
 2209     llvm::APSInt IntVal(Ctx.getIntWidth(Ctx.UnsignedIntTy),
tools/clang/lib/AST/ExprConstant.cpp
 2345   unsigned DestWidth = Info.Ctx.getIntWidth(DestType);
 2370   unsigned DestWidth = Info.Ctx.getIntWidth(DestType);
 9656     assert(SI.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) &&
 9668     assert(I.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) &&
 9810     assert(V.getWidth() == Info.Ctx.getIntWidth(E->getType()) &&
 9904                       == Info.Ctx.getIntWidth(E->getType()));
 9914         Val = Val.extOrTrunc(Info.Ctx.getIntWidth(E->getType()));
11354   APSInt Value(Info.Ctx.getIntWidth(E->getType()),
11885     APSInt Result = TrueResult.trunc(Info.Ctx.getIntWidth(E->getType()));
12144         Info.Ctx.getIntWidth(DestType),
14132         unsigned DestWidth = Ctx.getIntWidth(E->getType());
tools/clang/lib/AST/Interp/ByteCodeExprGen.h
   92     return ASTContext.getIntWidth(Ty);
tools/clang/lib/AST/Interp/Context.cpp
   77     switch (Ctx.getIntWidth(T)) {
   92     switch (Ctx.getIntWidth(T)) {
tools/clang/lib/CodeGen/CGExprScalar.cpp
  889   unsigned Width = CGF.getContext().getIntWidth(DstType);
tools/clang/lib/CodeGen/TargetInfo.cpp
 7257           getContext().getIntWidth(Ty) < SlotSizeInBits) ||
tools/clang/lib/Sema/SemaChecking.cpp
10098         return IntRange(C.getIntWidth(QualType(T, 0)),
10115     return IntRange(C.getIntWidth(QualType(T, 0)), BT->isUnsignedInteger());
10138     return IntRange(C.getIntWidth(QualType(T, 0)), BT->isUnsignedInteger());
10360       unsigned opWidth = C.getIntWidth(GetExprType(E));
10383       unsigned opWidth = C.getIntWidth(GetExprType(E));
10435   return GetExprRange(C, E, C.getIntWidth(GetExprType(E)), InConstantContext);
10876     unsigned comparisonWidth = S.Context.getIntWidth(T);
11126   llvm::APSInt IntegerValue(S.Context.getIntWidth(T),
11745             S.Context.getIntWidth(T),
11882     if (TargetRange.Width == 32 && S.Context.getIntWidth(E->getType()) == 64)
tools/clang/lib/Sema/SemaDecl.cpp
15819     uint64_t TypeWidth = Context.getIntWidth(FieldTy);
16858   unsigned BitWidth = Context.getIntWidth(T);
17040         EnumVal = EnumVal.zextOrTrunc(Context.getIntWidth(EltTy));
17062     EnumVal = EnumVal.extOrTrunc(Context.getIntWidth(EltTy));
17433     BestWidth = Context.getIntWidth(BestType);
tools/clang/lib/Sema/SemaExpr.cpp
 1178   } else if (S.Context.getIntWidth(LHSType) != S.Context.getIntWidth(RHSType)) {
 1178   } else if (S.Context.getIntWidth(LHSType) != S.Context.getIntWidth(RHSType)) {
 1732     llvm::APInt Len(Context.getIntWidth(SizeType), Literal.GetNumStringChars());
 1743     unsigned CharBits = Context.getIntWidth(CharTy);
 3494       unsigned CharBits = Context.getIntWidth(Context.CharTy);
 8864     if (Order < 0 && S.Context.getIntWidth(OtherIntTy) < NumBits)
 8871             NumBits > S.Context.getIntWidth(OtherIntTy));
 8901     llvm::APSInt ConvertBack(S.Context.getIntWidth(IntTy),
13447   return Ctx.getIntWidth(T) >= Ctx.getIntWidth(Ctx.IntTy);
13447   return Ctx.getIntWidth(T) >= Ctx.getIntWidth(Ctx.IntTy);
tools/clang/lib/Sema/SemaInit.cpp
 8524             32 != S.Context.getIntWidth(SourceType)) {
tools/clang/lib/Sema/SemaOverload.cpp
  420     const unsigned FromWidth = Ctx.getIntWidth(FromType);
  422     const unsigned ToWidth = Ctx.getIntWidth(ToType);
tools/clang/lib/Sema/SemaStmt.cpp
  879   unsigned CondWidth = HasDependentValue ? 0 : Context.getIntWidth(CondType);
  887     = HasDependentValue ? 0 : Context.getIntWidth(CondTypeBeforePromotion);
 1271         unsigned DstWidth = Context.getIntWidth(DstType);
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 3739       llvm::APInt Size(S.Context.getIntWidth(T), ILE->getNumInits());
tools/clang/lib/Sema/TreeTransform.h
12919     if (Size->getBitWidth() == SemaRef.Context.getIntWidth(Types[I])) {
13007   llvm::APInt numElements(SemaRef.Context.getIntWidth(SemaRef.Context.IntTy),
tools/clang/lib/StaticAnalyzer/Checkers/ConversionChecker.cpp
  152     RepresentsUntilExp = AC.getIntWidth(DestType);
  166   unsigned CorrectedSrcWidth = AC.getIntWidth(SubType);
tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
   62       B->getRHS(), C.getASTContext().getIntWidth(B->getLHS()->getType()));
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 2366     assert(V1.getBitWidth() == getContext().getIntWidth(CondE->getType()));
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
   83     unsigned castSize = Context.getIntWidth(castTy);
  175     unsigned BitWidth = Context.getIntWidth(castTy);
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedWideningCastCheck.cpp
   88     return T->isIntegerType() ? Context.getIntWidth(T) : 1024U;
   93   return Context.getIntWidth(E->getType());
  204   if (Context.getIntWidth(CastType) < Context.getIntWidth(CalcType))
  204   if (Context.getIntWidth(CastType) < Context.getIntWidth(CalcType))
  210   if (Context.getIntWidth(CastType) == Context.getIntWidth(CalcType)) {
  210   if (Context.getIntWidth(CastType) == Context.getIntWidth(CalcType)) {
  223   if (Context.getIntWidth(CalcType) >= getMaxCalculationWidth(Context, Calc))
tools/clang/tools/extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp
  104              ? Context.getIntWidth(IntExprType)
  105              : Context.getIntWidth(IntExprType) - 1;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
  294   unsigned DestWidth = Context.getIntWidth(DestType);