Skip to content

Commit c7c28c9

Browse files
committed
add more floating point types to the switch statement
1 parent 8c115ad commit c7c28c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang-tools-extra/clang-tidy/portability/AvoidPlatformSpecificFundamentalTypesCheck.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ static std::optional<std::string> getFloatReplacement(const BuiltinType *BT,
108108
return GetReplacementType(Target.getFloatWidth());
109109
case BuiltinType::Double:
110110
return GetReplacementType(Target.getDoubleWidth());
111+
case BuiltinType::LongDouble:
112+
return GetReplacementType(Target.getLongDoubleWidth());
113+
case BuiltinType::Float128:
114+
return "float128_t";
111115
default:
112116
return std::nullopt;
113117
}

0 commit comments

Comments
 (0)