rsx: Apply Clang-Tidy fix "modernize-use-using"

This commit is contained in:
scribam 2019-06-08 09:54:38 +02:00 committed by kd-11
parent f1e939936a
commit 0b97d12a7b
3 changed files with 18 additions and 19 deletions

View file

@ -4,24 +4,23 @@
#include "Emu/RSX/GL/GLVertexProgram.h" #include "Emu/RSX/GL/GLVertexProgram.h"
#include "Emu/RSX/GL/GLFragmentProgram.h" #include "Emu/RSX/GL/GLFragmentProgram.h"
typedef be_t<u32> CGprofile; using CGprofile = be_t<u32>;
typedef be_t<s32> CGbool; using CGbool = be_t<s32>;
typedef be_t<u32> CGresource; using CGresource = be_t<u32>;
typedef be_t<u32> CGenum; using CGenum = be_t<u32>;
typedef be_t<u32> CGtype; using CGtype = be_t<u32>;
typedef be_t<u32> CgBinaryOffset; using CgBinaryOffset = be_t<u32>;
typedef CgBinaryOffset CgBinaryEmbeddedConstantOffset; using CgBinaryEmbeddedConstantOffset = CgBinaryOffset;
typedef CgBinaryOffset CgBinaryFloatOffset; using CgBinaryFloatOffset = CgBinaryOffset;
typedef CgBinaryOffset CgBinaryStringOffset; using CgBinaryStringOffset = CgBinaryOffset;
typedef CgBinaryOffset CgBinaryParameterOffset; using CgBinaryParameterOffset = CgBinaryOffset;
// a few typedefs using CgBinaryParameter = struct CgBinaryParameter;
typedef struct CgBinaryParameter CgBinaryParameter; using CgBinaryEmbeddedConstant = struct CgBinaryEmbeddedConstant;
typedef struct CgBinaryEmbeddedConstant CgBinaryEmbeddedConstant; using CgBinaryVertexProgram = struct CgBinaryVertexProgram;
typedef struct CgBinaryVertexProgram CgBinaryVertexProgram; using CgBinaryFragmentProgram = struct CgBinaryFragmentProgram;
typedef struct CgBinaryFragmentProgram CgBinaryFragmentProgram; using CgBinaryProgram = struct CgBinaryProgram;
typedef struct CgBinaryProgram CgBinaryProgram;
// fragment programs have their constants embedded in the microcode // fragment programs have their constants embedded in the microcode
struct CgBinaryEmbeddedConstant struct CgBinaryEmbeddedConstant

View file

@ -24,7 +24,7 @@ struct CellGcmConfig
struct CellGcmContextData; struct CellGcmContextData;
typedef s32(CellGcmContextCallback)(vm::ptr<CellGcmContextData>, u32); using CellGcmContextCallback = s32 (vm::ptr<CellGcmContextData>, u32);
struct CellGcmContextData struct CellGcmContextData
{ {

View file

@ -10,8 +10,8 @@
#else #else
// Cannot include Xlib.h before Qt5 // Cannot include Xlib.h before Qt5
// and we don't need all of Xlib anyway // and we don't need all of Xlib anyway
typedef struct _XDisplay Display; using Display = struct _XDisplay;
typedef unsigned long Window; using Window = unsigned long;
#endif #endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR #ifdef VK_USE_PLATFORM_WAYLAND_KHR