Reformat repo to clang-format 7.0 rules

This commit is contained in:
Techjar
2019-05-06 18:48:04 +00:00
parent d347867f2e
commit ff972e3673
208 changed files with 311 additions and 309 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -31,4 +31,4 @@ void StopAudioDump();
void IncreaseVolume(unsigned short offset);
void DecreaseVolume(unsigned short offset);
void ToggleMuteVolume();
}
} // namespace AudioCommon
+1 -1
View File
@@ -25,4 +25,4 @@ private:
double m_stretch_ratio = 1.0;
};
} // AudioCommon
} // namespace AudioCommon
+1 -1
View File
@@ -33,4 +33,4 @@ private:
FixedSizeQueue<float, 32768> m_decoded_fifo;
};
} // AudioCommon
} // namespace AudioCommon
+1 -1
View File
@@ -4380,4 +4380,4 @@ void ARM64FloatEmitter::MOVI2FDUP(ARM64Reg Rd, float value, ARM64Reg scratch)
DUP(32, Rd, Rd, 0);
}
} // namespace
} // namespace Arm64Gen
+1 -1
View File
@@ -1143,4 +1143,4 @@ private:
}
}
};
}
} // namespace Arm64Gen
+1 -1
View File
@@ -83,4 +83,4 @@ inline T* AtomicExchangeAcquire(T* volatile& loc, U newval)
{
return __atomic_exchange_n(&loc, newval, __ATOMIC_ACQ_REL);
}
}
} // namespace Common
+1 -1
View File
@@ -91,4 +91,4 @@ inline T* AtomicExchangeAcquire(T* volatile& loc, U newval)
{
return (T*)_InterlockedExchangePointer_acq((void* volatile*)&loc, (void*)newval);
}
}
} // namespace Common
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -50,4 +50,4 @@ struct ConfigInfo
ConfigLocation location;
T default_value;
};
}
} // namespace Config
+1 -1
View File
@@ -41,4 +41,4 @@ constexpr std::array<LayerType, 7> SEARCH_ORDER{{
LayerType::GlobalGame,
LayerType::Base,
}};
}
} // namespace Config
+1 -1
View File
@@ -97,4 +97,4 @@ const LayerMap& Layer::GetLayerMap() const
{
return m_map;
}
}
} // namespace Config
+2 -2
View File
@@ -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
+1 -1
View File
@@ -36,4 +36,4 @@ int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event)
}
return 0;
}
}
} // namespace ENetUtil
+1 -1
View File
@@ -10,4 +10,4 @@ namespace ENetUtil
{
void WakeupThread(ENetHost* host);
int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
}
} // namespace ENetUtil
+1 -1
View File
@@ -43,4 +43,4 @@ void SetSIMDMode(int rounding_mode, bool non_ieee_mode);
void SaveSIMDState();
void LoadSIMDState();
void LoadDefaultSIMDState();
}
} // namespace FPURoundMode
+2 -2
View File
@@ -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");
+1 -1
View File
@@ -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