General: Convert multiple namespace specifiers to nested namespace specifiers where applicable

Makes namespacing a little less noisy
This commit is contained in:
Lioncash
2018-01-26 08:51:48 -05:00
committed by MerryMage
parent 7abd673a49
commit 67443efb62
130 changed files with 264 additions and 532 deletions

View File

@@ -19,8 +19,7 @@
#include "frontend/decoder/decoder_detail.h"
#include "frontend/decoder/matcher.h"
namespace Dynarmic {
namespace A32 {
namespace Dynarmic::A32 {
template <typename Visitor>
using ArmMatcher = Decoder::Matcher<Visitor, u32>;
@@ -330,5 +329,4 @@ boost::optional<const ArmMatcher<V>&> DecodeArm(u32 instruction) {
return iter != table.end() ? boost::optional<const ArmMatcher<V>&>(*iter) : boost::none;
}
} // namespace A32
} // namespace Dynarmic
} // namespace Dynarmic::A32

View File

@@ -14,8 +14,7 @@
#include "frontend/decoder/decoder_detail.h"
#include "frontend/decoder/matcher.h"
namespace Dynarmic {
namespace A32 {
namespace Dynarmic::A32 {
template <typename Visitor>
using Thumb16Matcher = Decoder::Matcher<Visitor, u16>;
@@ -123,5 +122,4 @@ boost::optional<const Thumb16Matcher<V>&> DecodeThumb16(u16 instruction) {
return iter != table.end() ? boost::optional<const Thumb16Matcher<V>&>(*iter) : boost::none;
}
} // namespace A32
} // namespace Dynarmic
} // namespace Dynarmic::A32

View File

@@ -14,8 +14,7 @@
#include "frontend/decoder/decoder_detail.h"
#include "frontend/decoder/matcher.h"
namespace Dynarmic {
namespace A32 {
namespace Dynarmic::A32 {
template <typename Visitor>
using Thumb32Matcher = Decoder::Matcher<Visitor, u32>;
@@ -43,5 +42,4 @@ boost::optional<const Thumb32Matcher<V>&> DecodeThumb32(u32 instruction) {
return iter != table.end() ? boost::optional<const Thumb32Matcher<V>&>(*iter) : boost::none;
}
} // namespace A32
} // namespace Dynarmic
} // namespace Dynarmic::A32

View File

@@ -14,8 +14,7 @@
#include "frontend/decoder/decoder_detail.h"
#include "frontend/decoder/matcher.h"
namespace Dynarmic {
namespace A32 {
namespace Dynarmic::A32 {
template <typename Visitor>
using VFP2Matcher = Decoder::Matcher<Visitor, u32>;
@@ -88,5 +87,4 @@ boost::optional<const VFP2Matcher<V>&> DecodeVFP2(u32 instruction) {
return iter != table.end() ? boost::optional<const VFP2Matcher<V>&>(*iter) : boost::none;
}
} // namespace A32
} // namespace Dynarmic
} // namespace Dynarmic::A32