1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 07:45:56 +00:00

Activate some clang-tidy checks (#1884)

This commit is contained in:
Otto Winter
2021-06-10 13:04:40 +02:00
committed by GitHub
parent eb9bd69405
commit 360effcb72
109 changed files with 458 additions and 422 deletions

View File

@@ -201,27 +201,27 @@ std::string to_string(int val) {
sprintf(buf, "%d", val);
return buf;
}
std::string to_string(long val) {
std::string to_string(long val) { // NOLINT
char buf[64];
sprintf(buf, "%ld", val);
return buf;
}
std::string to_string(long long val) {
std::string to_string(long long val) { // NOLINT
char buf[64];
sprintf(buf, "%lld", val);
return buf;
}
std::string to_string(unsigned val) {
std::string to_string(unsigned val) { // NOLINT
char buf[64];
sprintf(buf, "%u", val);
return buf;
}
std::string to_string(unsigned long val) {
std::string to_string(unsigned long val) { // NOLINT
char buf[64];
sprintf(buf, "%lu", val);
return buf;
}
std::string to_string(unsigned long long val) {
std::string to_string(unsigned long long val) { // NOLINT
char buf[64];
sprintf(buf, "%llu", val);
return buf;