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

@@ -34,7 +34,6 @@
#include "Common/CommonTypes.h"
#include "Common/FileUtil.h"
#include "Common/IOFile.h"
#include "Common/Unreachable.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/Debugger/BranchWatch.h"
@@ -1217,7 +1216,7 @@ QMenu* BranchWatchDialog::GetTableContextMenu(const QModelIndex& index) const
return m_mnu_table_context_symbol;
}
static_assert(Column::NumberOfColumns == 8);
Common::Unreachable();
std::unreachable();
}
void BranchWatchDialog::RefreshVisibleContextMenuActions(bool core_initialized) const