c++23: Replace Common::Unreachable with std::unreachable

Requires at least GCC 12, Clang 15, MSVC 19.32, or AppleClang 14.0.3.
This commit is contained in:
Joshua Vandaële
2026-01-08 22:51:39 +01:00
parent b556bd99d7
commit e822cc3715
10 changed files with 19 additions and 43 deletions

View File

@@ -6,12 +6,12 @@
#include <algorithm>
#include <array>
#include <cstddef>
#include <utility>
#include <QBrush>
#include "Common/Assert.h"
#include "Common/GekkoDisassembler.h"
#include "Common/Unreachable.h"
#include "Core/Debugger/BranchWatch.h"
#include "Core/PowerPC/PPCSymbolDB.h"
@@ -352,7 +352,7 @@ QVariant BranchWatchTableModel::DisplayRoleData(const QModelIndex& index) const
return QString::number(kv->second.total_hits);
}
static_assert(Column::NumberOfColumns == 8);
Common::Unreachable();
std::unreachable();
}
QVariant BranchWatchTableModel::FontRoleData(const QModelIndex& index) const
@@ -402,7 +402,7 @@ QVariant BranchWatchTableModel::TextAlignmentRoleData(const QModelIndex& index)
return QVariant::fromValue(Qt::AlignLeft | Qt::AlignVCenter);
}
static_assert(Column::NumberOfColumns == 8);
Common::Unreachable();
std::unreachable();
}
QVariant BranchWatchTableModel::ForegroundRoleData(const QModelIndex& index) const
@@ -495,5 +495,5 @@ QVariant BranchWatchTableModel::SortRoleData(const QModelIndex& index) const
return qulonglong{kv->second.total_hits};
}
static_assert(Column::NumberOfColumns == 8);
Common::Unreachable();
std::unreachable();
}