clang-tidy

This commit is contained in:
Markus F.X.J. Oberhumer
2023-07-31 14:49:48 +02:00
parent 41e9f7985f
commit 70287d3c49
20 changed files with 176 additions and 51 deletions
+2 -2
View File
@@ -141,7 +141,7 @@ void upx_stable_sort(void *array, size_t n, size_t element_size,
// this works
#define OwningPointer(T) T *
#elif 1
#elif !(DEBUG)
// this also works
template <class T>
@@ -150,7 +150,7 @@ using OwningPointer = T *;
#else
// also works: a simple class with just a number of no-ops
// also works: a trivial class with just a number of no-ops
template <class T>
struct OwningPointer final {
static_assert(std::is_class_v<T>); // UPX convention