Skip to content

Commit c301e29

Browse files
committed
rename NSAT to OBT
These used to make sense when this feature set was called "NoSanitizeAttributedType". They are now called OverflowBehaviorTypes. Signed-off-by: Justin Stitt <[email protected]>
1 parent 11b1dfd commit c301e29

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

clang/lib/AST/Type.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,8 +2254,8 @@ bool Type::isSignedIntegerType() const {
22542254
if (const auto *IT = dyn_cast<DependentBitIntType>(CanonicalType))
22552255
return IT->isSigned();
22562256

2257-
if (const auto *NSAT = dyn_cast<OverflowBehaviorType>(CanonicalType))
2258-
return NSAT->getUnderlyingType()->isSignedIntegerType();
2257+
if (const auto *OBT = dyn_cast<OverflowBehaviorType>(CanonicalType))
2258+
return OBT->getUnderlyingType()->isSignedIntegerType();
22592259

22602260
return false;
22612261
}
@@ -2273,8 +2273,8 @@ bool Type::isSignedIntegerOrEnumerationType() const {
22732273
if (const auto *IT = dyn_cast<DependentBitIntType>(CanonicalType))
22742274
return IT->isSigned();
22752275

2276-
if (const auto *NSAT = dyn_cast<OverflowBehaviorType>(CanonicalType))
2277-
return NSAT->getUnderlyingType()->isSignedIntegerOrEnumerationType();
2276+
if (const auto *OBT = dyn_cast<OverflowBehaviorType>(CanonicalType))
2277+
return OBT->getUnderlyingType()->isSignedIntegerOrEnumerationType();
22782278

22792279
return false;
22802280
}
@@ -2305,8 +2305,8 @@ bool Type::isUnsignedIntegerType() const {
23052305
if (const auto *IT = dyn_cast<DependentBitIntType>(CanonicalType))
23062306
return IT->isUnsigned();
23072307

2308-
if (const auto *NSAT = dyn_cast<OverflowBehaviorType>(CanonicalType))
2309-
return NSAT->getUnderlyingType()->isUnsignedIntegerType();
2308+
if (const auto *OBT = dyn_cast<OverflowBehaviorType>(CanonicalType))
2309+
return OBT->getUnderlyingType()->isUnsignedIntegerType();
23102310

23112311
return false;
23122312
}
@@ -2324,8 +2324,8 @@ bool Type::isUnsignedIntegerOrEnumerationType() const {
23242324
if (const auto *IT = dyn_cast<DependentBitIntType>(CanonicalType))
23252325
return IT->isUnsigned();
23262326

2327-
if (const auto *NSAT = dyn_cast<OverflowBehaviorType>(CanonicalType))
2328-
return NSAT->getUnderlyingType()->isUnsignedIntegerOrEnumerationType();
2327+
if (const auto *OBT = dyn_cast<OverflowBehaviorType>(CanonicalType))
2328+
return OBT->getUnderlyingType()->isUnsignedIntegerOrEnumerationType();
23292329

23302330
return false;
23312331
}
@@ -3096,8 +3096,8 @@ bool Type::isLiteralType(const ASTContext &Ctx) const {
30963096
if (const auto *AT = BaseTy->getAs<AtomicType>())
30973097
return AT->getValueType()->isLiteralType(Ctx);
30983098

3099-
if (const auto *NSAT = BaseTy->getAs<OverflowBehaviorType>())
3100-
return NSAT->getUnderlyingType()->isLiteralType(Ctx);
3099+
if (const auto *OBT = BaseTy->getAs<OverflowBehaviorType>())
3100+
return OBT->getUnderlyingType()->isLiteralType(Ctx);
31013101

31023102
// If this type hasn't been deduced yet, then conservatively assume that
31033103
// it'll work out to be a literal type.

0 commit comments

Comments
 (0)