Core: Use nested namespace specifiers where applicable

Same thing, less visual noise.
This commit is contained in:
Lioncash
2019-06-17 16:21:31 -04:00
parent b3525ad774
commit 32bacfa4bd
52 changed files with 107 additions and 280 deletions

View File

@ -13,9 +13,7 @@
#include "Core/DSP/DSPMemoryMap.h"
#include "Core/HW/DSPLLE/DSPSymbols.h"
namespace DSP
{
namespace LLE
namespace DSP::LLE
{
void DSPPatches::Patch(std::size_t index)
{
@ -312,5 +310,4 @@ void DSPDebugInterface::Clear()
ClearPatches();
ClearWatches();
}
} // namespace LLE
} // namespace DSP
} // namespace DSP::LLE

View File

@ -10,9 +10,7 @@
#include "Common/CommonTypes.h"
#include "Common/DebugInterface.h"
namespace DSP
{
namespace LLE
namespace DSP::LLE
{
class DSPPatches : public Common::Debug::MemoryPatches
{
@ -79,5 +77,4 @@ private:
Common::Debug::Watches m_watches;
DSPPatches m_patches;
};
} // namespace LLE
} // namespace DSP
} // namespace DSP::LLE

View File

@ -24,9 +24,7 @@
// core isn't used, for example in an asm/disasm tool, then most of these
// can be stubbed out.
namespace DSP
{
namespace Host
namespace DSP::Host
{
u8 ReadHostMemory(u32 addr)
{
@ -84,5 +82,4 @@ void UpdateDebugger()
{
Host_RefreshDSPDebuggerWindow();
}
} // namespace Host
} // namespace DSP
} // namespace DSP::Host

View File

@ -30,9 +30,7 @@
#include "Core/HW/Memmap.h"
#include "Core/Host.h"
namespace DSP
{
namespace LLE
namespace DSP::LLE
{
static Common::Event s_dsp_event;
static Common::Event s_ppc_event;
@ -340,5 +338,4 @@ void DSPLLE::PauseAndLock(bool do_lock, bool unpause_on_unlock)
else
m_dsp_thread_mutex.unlock();
}
} // namespace LLE
} // namespace DSP
} // namespace DSP::LLE

View File

@ -14,9 +14,7 @@
class PointerWrap;
namespace DSP
{
namespace LLE
namespace DSP::LLE
{
class DSPLLE : public DSPEmulator
{
@ -49,5 +47,4 @@ private:
Common::Flag m_is_running;
std::atomic<u32> m_cycle_count{};
};
} // namespace LLE
} // namespace DSP
} // namespace DSP::LLE

View File

@ -14,9 +14,7 @@
#include "Core/DSP/DSPCore.h"
#include "Core/DSP/DSPDisassembler.h"
namespace DSP
{
namespace Symbols
namespace DSP::Symbols
{
DSPSymbolDB g_dsp_symbol_db;
@ -106,6 +104,4 @@ void Clear()
lines.clear();
line_counter = 0;
}
} // namespace Symbols
} // namespace DSP
} // namespace DSP::Symbols

View File

@ -9,9 +9,7 @@
#include "Common/CommonTypes.h"
#include "Common/SymbolDB.h"
namespace DSP
{
namespace Symbols
namespace DSP::Symbols
{
class DSPSymbolDB : public Common::SymbolDB
{
@ -31,6 +29,4 @@ int Addr2Line(u16 address);
int Line2Addr(int line); // -1 for not found
const char* GetLineText(int line);
} // namespace Symbols
} // namespace DSP
} // namespace DSP::Symbols