eclipse-uprotocol / up-cpp

uProtocol Language Specific Library for C++
Apache License 2.0
18 stars 25 forks source link

clang-tidy: UuidValidatorTest - signedness changes around use of std::chrono #271

Open billpittman opened 2 months ago

billpittman commented 2 months ago

/data/ultifi/up-cpp/test/coverage/datamodel/UuidValidatorTest.cpp:101:11: error: implicit conversion changes signedness: 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-sign-conversion] /data/ultifi/up-cpp/test/coverage/datamodel/UuidValidatorTest.cpp:117:11: error: implicit conversion changes signedness: 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-sign-conversion] /data/ultifi/up-cpp/test/coverage/datamodel/UuidValidatorTest.cpp:132:11: error: implicit conversion changes signedness: 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-sign-conversion] /data/ultifi/up-cpp/test/coverage/datamodel/UuidValidatorTest.cpp:156:54: error: implicit conversion changes signedness: 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-sign-conversion] /data/ultifi/up-cpp/test/coverage/datamodel/UuidValidatorTest.cpp:170:28: error: implicit conversion changes signedness: 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-sign-conversion] /data/ultifi/up-cpp/test/coverage/datamodel/UuidValidatorTest.cpp:192:28: error: implicit conversion changes signedness: 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-sign-conversion] /data/ultifi/up-cpp/test/coverage/datamodel/UuidValidatorTest.cpp:216:11: error: implicit conversion changes signedness: 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-sign-conversion] /data/ultifi/up-cpp/test/coverage/datamodel/UuidValidatorTest.cpp:229:11: error: implicit conversion changes signedness: 'std::chrono::duration<long, std::ratio<1, 1000>>::rep' (aka 'long') to 'uint64_t' (aka 'unsigned long') [clang-diagnostic-sign-conversion] s