Apply more clang-tidy fixes (#2763)
This commit is contained in:
@@ -50,6 +50,8 @@ inline std::string toString(uint8_t t) {
|
||||
return toString(static_cast<uint32_t>(t));
|
||||
}
|
||||
|
||||
// NOLINTBEGIN(bugprone-incorrect-enable-if)
|
||||
|
||||
template <typename = std::enable_if<!std::is_same_v<uint64_t, unsigned long>>>
|
||||
inline std::string toString(unsigned long t) {
|
||||
return toString(static_cast<uint64_t>(t));
|
||||
@@ -70,6 +72,8 @@ inline std::string toString(long long t) {
|
||||
return toString(static_cast<int64_t>(t));
|
||||
}
|
||||
|
||||
// NOLINTEND(bugprone-incorrect-enable-if)
|
||||
|
||||
inline std::string toString(float t, bool decimal = false) {
|
||||
return toString(static_cast<double>(t), decimal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user