Home
last modified time | relevance | path

Searched refs:isSignedIntegerType (Results 1 – 25 of 33) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DImplicitWideningOfMultiplicationResultCheck.cpp118 if (Ty->isSignedIntegerType() == ETy->isSignedIntegerType()) in handleImplicitCastExpr()
120 else if (Ty->isSignedIntegerType()) { in handleImplicitCastExpr()
127 assert(ETy->isSignedIntegerType() && in handleImplicitCastExpr()
183 QualType SizeTy = IndexExprType->isSignedIntegerType() ? SSizeTy : USizeTy; in handlePointerOffsetting()
187 IndexExprType->isSignedIntegerType() ? "ptrdiff_t" : "size_t"; in handlePointerOffsetting()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp168 if (DestType->isSignedIntegerType()) in isLossOfPrecision()
178 if (SubType->isSignedIntegerType()) in isLossOfPrecision()
200 if (!CastType->isUnsignedIntegerType() || !SubType->isSignedIntegerType()) in isLossOfSign()
H A DMIGChecker.cpp167 .getCanonicalType()->isSignedIntegerType()) in isInMIGCall()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp163 NestedType->isSignedIntegerType()); in VisitNonLocLocAsInteger()
H A DExprEngineC.cpp862 assert(IV.isSigned() == OOE->getType()->isSignedIntegerType()); in VisitOffsetOfExpr()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGAtomic.cpp639 Op = E->getValueType()->isSignedIntegerType() ? llvm::AtomicRMWInst::Min in EmitAtomicOp()
650 Op = E->getValueType()->isSignedIntegerType() ? llvm::AtomicRMWInst::Max in EmitAtomicOp()
703 E->getValueType()->isSignedIntegerType(), in EmitAtomicOp()
1246 LibCallName = E->getValueType()->isSignedIntegerType() in EmitAtomicExpr()
1259 LibCallName = E->getValueType()->isSignedIntegerType() in EmitAtomicExpr()
1323 E->getValueType()->isSignedIntegerType(), in EmitAtomicExpr()
H A DCodeGenFunction.cpp592 HintQTy->isSignedIntegerType() || in EmitKernelMetadata()
593 (HintEltQTy && HintEltQTy->getElementType()->isSignedIntegerType()); in EmitKernelMetadata()
2280 SEType->isSignedIntegerType() in EmitVariablyModifiedType()
H A DCGException.cpp2069 FilterExpr->getType()->isSignedIntegerType()); in GenerateSEHFilterFunction()
H A DCGBuiltin.cpp695 bool Signed = Type->isSignedIntegerType(); in getIntegerWidthAndSignedness()
3073 bool IsSigned = Ty->isSignedIntegerType(); in EmitBuiltinExpr()
3091 Result = Builder.CreateBinaryIntrinsic(Ty->isSignedIntegerType() in EmitBuiltinExpr()
3107 Result = Builder.CreateBinaryIntrinsic(Ty->isSignedIntegerType() in EmitBuiltinExpr()
3120 if (QT->isSignedIntegerType()) in EmitBuiltinExpr()
3135 if (QT->isSignedIntegerType()) in EmitBuiltinExpr()
/llvm-project-15.0.7/clang/lib/AST/
H A DPrintfFormatString.cpp856 if (QT->isSignedIntegerType()) in fixType()
889 else if (QT->isSignedIntegerType()) { in fixType()
H A DScanfFormatString.cpp516 else if (PT->isSignedIntegerType()) in fixType()
H A DType.cpp2018 bool Type::isSignedIntegerType() const { in isSignedIntegerType() function in Type
2028 return ET->getDecl()->getIntegerType()->isSignedIntegerType(); in isSignedIntegerType()
2047 return ET->getDecl()->getIntegerType()->isSignedIntegerType(); in isSignedIntegerOrEnumerationType()
H A DJSONNodeDumper.cpp1466 /*Radix=*/10, IL->getType()->isSignedIntegerType()); in VisitIntegerLiteral()
H A DTextNodeDumper.cpp1092 bool isSigned = Node->getType()->isSignedIntegerType(); in VisitIntegerLiteral()
H A DItaniumMangle.cpp4974 if (E->getType()->isSignedIntegerType()) in mangleExpression()
4996 if (IE->getSubExpr()->getType()->isSignedIntegerType()) in mangleExpression()
H A DStmtPrinter.cpp1269 bool isSigned = Node->getType()->isSignedIntegerType(); in VisitIntegerLiteral()
H A DASTContext.cpp7029 return FT->isSignedIntegerType() ? IntTy : UnsignedIntTy; in isPromotableBitField()
7068 FromIsSigned == PromoteTypes[Idx]->isSignedIntegerType())) in getPromotedIntegerType()
7076 if (Promotable->isSignedIntegerType()) in getPromotedIntegerType()
12254 getIntWidth(Ty), Ty->isSignedIntegerType()); in getFixedPointSemantics()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DCanonicalType.h309 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isSignedIntegerType)
H A DType.h2422 bool isSignedIntegerType() const;
/llvm-project-15.0.7/lldb/unittests/Symbol/
H A DTestTypeSystemClang.cpp190 EXPECT_TRUE(type_ptr->isSignedIntegerType()); in VerifyEncodingAndBitSize()
/llvm-project-15.0.7/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp1018 if ((MK==NSAPI::NSNumberWithInteger) == OrigTy->isSignedIntegerType() && in rewriteToNumericBoxedExpression()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCast.cpp2027 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || in CheckCompatibleReinterpretCast()
2028 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { in CheckCompatibleReinterpretCast()
H A DSemaChecking.cpp377 if (Ty->isBitIntType() && Ty->isSignedIntegerType() && in SemaBuiltinOverflow()
12502 (!E->getType()->isSignedIntegerType() || in isKnownToHaveUnsignedValue()
12503 !E->IgnoreParenImpCasts()->getType()->isSignedIntegerType()); in isKnownToHaveUnsignedValue()
12979 bool SignedBitfield = BitfieldType->isSignedIntegerType(); in AnalyzeBitFieldAssignment()
13042 TruncatedValue.setIsSigned(BitfieldType->isSignedIntegerType()); in AnalyzeBitFieldAssignment()
13533 else if (E->getType()->isSignedIntegerType()) in DiagnoseIntInBoolContext()
13940 if (Target->isSignedIntegerType()) in CheckImplicitConversion()
13948 Source->isSignedIntegerType()) { in CheckImplicitConversion()
H A DSemaOverload.cpp2078 (FromType->isSignedIntegerType() || in IsIntegralPromotion()
2150 bool FromIsSigned = FromType->isSignedIntegerType(); in IsIntegralPromotion()
2164 FromIsSigned == PromoteTypes[Idx]->isSignedIntegerType())) { in IsIntegralPromotion()
2198 (FromType->isSignedIntegerType() && *BitWidth <= ToSize)) { in IsIntegralPromotion()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h6261 return Node->isSignedIntegerType(); in AST_MATCHER()

12