Fixed a bunch of clang-tidy warnings.

This commit is contained in:
2024-08-18 13:07:38 +02:00
parent d73fa25ed8
commit 9f011952c2
8 changed files with 46 additions and 39 deletions

View File

@@ -53,7 +53,7 @@ int backtraceFullCallback(void* data, std::uintptr_t programCounter, const char*
{
BacktraceData& btData = *static_cast<BacktraceData*>(data);
btData.stackframes.push_back({
.address = reinterpret_cast<void*>(programCounter),
.address = reinterpret_cast<void*>(programCounter), // NOLINT(performance-no-int-to-ptr)
.filename = filename ? filename : "<unknown>",
.function = function ? function : "<unknown>",
.lineNumber = lineno
@@ -121,7 +121,7 @@ using cxa_rethrow_type = void (*)();
cxa_throw_type orig_cxa_throw = nullptr; // Address of the original __cxa_throw
// cxa_rethrow_type orig_cxa_rethrow = nullptr; // Address of the original __cxa_rethrow
extern "C" void __cxa_throw(void* thrown_exception, std::type_info* tinfo, void (*dest)(void*))
extern "C" void __cxa_throw(void* thrown_exception, std::type_info* tinfo, void (*dest)(void*)) // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
{
if (!orig_cxa_throw) {
orig_cxa_throw = reinterpret_cast<cxa_throw_type>(dlsym(RTLD_NEXT, "__cxa_throw"));