mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Merge pull request #8083 from Techjar/clang-7-format
Reformat repo to clang-format 7.0 rules
This commit is contained in:
@@ -730,4 +730,4 @@ float InputDevice::AxisValue(int padID, ButtonType axis)
|
||||
else
|
||||
return _buttons[binding->second->_buttontype] == BUTTON_PRESSED ? 1.0f : 0.0f;
|
||||
}
|
||||
}
|
||||
} // namespace ButtonManager
|
||||
|
||||
@@ -256,4 +256,4 @@ float GetAxisValue(int padID, ButtonType axis);
|
||||
bool GamepadEvent(const std::string& dev, int button, int action);
|
||||
void GamepadAxisEvent(const std::string& dev, int axis, float value);
|
||||
void Shutdown();
|
||||
}
|
||||
} // namespace ButtonManager
|
||||
|
||||
@@ -31,4 +31,4 @@ void StopAudioDump();
|
||||
void IncreaseVolume(unsigned short offset);
|
||||
void DecreaseVolume(unsigned short offset);
|
||||
void ToggleMuteVolume();
|
||||
}
|
||||
} // namespace AudioCommon
|
||||
|
||||
@@ -25,4 +25,4 @@ private:
|
||||
double m_stretch_ratio = 1.0;
|
||||
};
|
||||
|
||||
} // AudioCommon
|
||||
} // namespace AudioCommon
|
||||
|
||||
@@ -33,4 +33,4 @@ private:
|
||||
FixedSizeQueue<float, 32768> m_decoded_fifo;
|
||||
};
|
||||
|
||||
} // AudioCommon
|
||||
} // namespace AudioCommon
|
||||
|
||||
@@ -4380,4 +4380,4 @@ void ARM64FloatEmitter::MOVI2FDUP(ARM64Reg Rd, float value, ARM64Reg scratch)
|
||||
DUP(32, Rd, Rd, 0);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace Arm64Gen
|
||||
|
||||
@@ -1143,4 +1143,4 @@ private:
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace Arm64Gen
|
||||
|
||||
@@ -83,4 +83,4 @@ inline T* AtomicExchangeAcquire(T* volatile& loc, U newval)
|
||||
{
|
||||
return __atomic_exchange_n(&loc, newval, __ATOMIC_ACQ_REL);
|
||||
}
|
||||
}
|
||||
} // namespace Common
|
||||
|
||||
@@ -91,4 +91,4 @@ inline T* AtomicExchangeAcquire(T* volatile& loc, U newval)
|
||||
{
|
||||
return (T*)_InterlockedExchangePointer_acq((void* volatile*)&loc, (void*)newval);
|
||||
}
|
||||
}
|
||||
} // namespace Common
|
||||
|
||||
@@ -253,4 +253,4 @@ private:
|
||||
Flag m_may_sleep; // If this is set, we fall back from the busy loop to an event based
|
||||
// synchronization.
|
||||
};
|
||||
}
|
||||
} // namespace Common
|
||||
|
||||
@@ -32,4 +32,4 @@ bool ConfigLocation::operator<(const ConfigLocation& other) const
|
||||
const int key_compare = strcasecmp(key.c_str(), other.key.c_str());
|
||||
return key_compare < 0;
|
||||
}
|
||||
}
|
||||
} // namespace Config
|
||||
|
||||
@@ -50,4 +50,4 @@ struct ConfigInfo
|
||||
ConfigLocation location;
|
||||
T default_value;
|
||||
};
|
||||
}
|
||||
} // namespace Config
|
||||
|
||||
@@ -41,4 +41,4 @@ constexpr std::array<LayerType, 7> SEARCH_ORDER{{
|
||||
LayerType::GlobalGame,
|
||||
LayerType::Base,
|
||||
}};
|
||||
}
|
||||
} // namespace Config
|
||||
|
||||
@@ -97,4 +97,4 @@ const LayerMap& Layer::GetLayerMap() const
|
||||
{
|
||||
return m_map;
|
||||
}
|
||||
}
|
||||
} // namespace Config
|
||||
|
||||
@@ -42,7 +42,7 @@ inline std::optional<std::string> TryParse(const std::string& str_value)
|
||||
{
|
||||
return str_value;
|
||||
}
|
||||
}
|
||||
} // namespace detail
|
||||
|
||||
template <typename T>
|
||||
struct ConfigInfo;
|
||||
@@ -154,4 +154,4 @@ protected:
|
||||
const LayerType m_layer;
|
||||
std::unique_ptr<ConfigLayerLoader> m_loader;
|
||||
};
|
||||
}
|
||||
} // namespace Config
|
||||
|
||||
@@ -36,4 +36,4 @@ int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
} // namespace ENetUtil
|
||||
|
||||
@@ -10,4 +10,4 @@ namespace ENetUtil
|
||||
{
|
||||
void WakeupThread(ENetHost* host);
|
||||
int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
|
||||
}
|
||||
} // namespace ENetUtil
|
||||
|
||||
@@ -43,4 +43,4 @@ void SetSIMDMode(int rounding_mode, bool non_ieee_mode);
|
||||
void SaveSIMDState();
|
||||
void LoadSIMDState();
|
||||
void LoadDefaultSIMDState();
|
||||
}
|
||||
} // namespace FPURoundMode
|
||||
|
||||
@@ -106,8 +106,8 @@ bool GLContextAGL::Initialize(void* display_handle, void* window_handle, bool st
|
||||
|
||||
std::unique_ptr<GLContext> GLContextAGL::CreateSharedContext()
|
||||
{
|
||||
NSOpenGLContext* new_agl_context =
|
||||
[[NSOpenGLContext alloc] initWithFormat:m_pixel_format shareContext:m_context];
|
||||
NSOpenGLContext* new_agl_context = [[NSOpenGLContext alloc] initWithFormat:m_pixel_format
|
||||
shareContext:m_context];
|
||||
if (new_agl_context == nil)
|
||||
{
|
||||
ERROR_LOG(VIDEO, "failed to create shared context");
|
||||
|
||||
@@ -969,7 +969,7 @@ void GekkoDisassembler::mtfsb(u32 in, int n)
|
||||
}
|
||||
}
|
||||
|
||||
// Paired instructions
|
||||
// Paired instructions
|
||||
|
||||
#define RA ((inst >> 16) & 0x1f)
|
||||
#define RB ((inst >> 11) & 0x1f)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user