mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-04 13:44:31 +01:00
Standardize location of storage-class specifiers: Place at beginning of declarations
Justification: C99 specifies that doing otherwise is an obsolescent feature.
This commit is contained in:
parent
b992e5f8ec
commit
29471be317
7 changed files with 7 additions and 7 deletions
|
|
@ -322,7 +322,7 @@ std::vector<ArmMatcher<V>> GetArmDecodeTable() {
|
|||
|
||||
template<typename V>
|
||||
boost::optional<const ArmMatcher<V>&> DecodeArm(u32 instruction) {
|
||||
const static auto table = GetArmDecodeTable<V>();
|
||||
static const auto table = GetArmDecodeTable<V>();
|
||||
|
||||
const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ using Thumb16Matcher = Matcher<Visitor, u16>;
|
|||
|
||||
template<typename V>
|
||||
boost::optional<const Thumb16Matcher<V>&> DecodeThumb16(u16 instruction) {
|
||||
const static std::vector<Thumb16Matcher<V>> table = {
|
||||
static const std::vector<Thumb16Matcher<V>> table = {
|
||||
|
||||
#define INST(fn, name, bitstring) detail::detail<Thumb16Matcher<V>>::GetMatcher(fn, name, bitstring)
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ using Thumb32Matcher = Matcher<Visitor, u32>;
|
|||
|
||||
template<typename V>
|
||||
boost::optional<const Thumb32Matcher<V>&> DecodeThumb32(u32 instruction) {
|
||||
const static std::vector<Thumb32Matcher<V>> table = {
|
||||
static const std::vector<Thumb32Matcher<V>> table = {
|
||||
|
||||
#define INST(fn, name, bitstring) detail::detail<Thumb32Matcher<V>>::GetMatcher(fn, name, bitstring)
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ using VFP2Matcher = Matcher<Visitor, u32>;
|
|||
|
||||
template<typename V>
|
||||
boost::optional<const VFP2Matcher<V>&> DecodeVFP2(u32 instruction) {
|
||||
const static std::vector<VFP2Matcher<V>> table = {
|
||||
static const std::vector<VFP2Matcher<V>> table = {
|
||||
|
||||
#define INST(fn, name, bitstring) detail::detail<VFP2Matcher<V>>::GetMatcher(fn, name, bitstring)
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ const char* GetNameOf(Opcode op) {
|
|||
}
|
||||
|
||||
const char* GetNameOf(Type type) {
|
||||
const static std::array<const char*, 12> names = {
|
||||
static const std::array<const char*, 12> names = {
|
||||
"Void", "RegRef", "ExtRegRef", "Opaque", "U1", "U8", "U16", "U32", "U64", "F32", "F64", "CoprocInfo"
|
||||
};
|
||||
return names.at(static_cast<size_t>(type));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue