Reformat repo to clang-format 7.0 rules

This commit is contained in:
Techjar 2019-05-05 23:48:12 +00:00
commit ff972e3673
208 changed files with 311 additions and 309 deletions

View file

@ -4380,4 +4380,4 @@ void ARM64FloatEmitter::MOVI2FDUP(ARM64Reg Rd, float value, ARM64Reg scratch)
DUP(32, Rd, Rd, 0);
}
} // namespace
} // namespace Arm64Gen

View file

@ -1143,4 +1143,4 @@ private:
}
}
};
}
} // namespace Arm64Gen

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

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

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

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

View file

@ -50,4 +50,4 @@ struct ConfigInfo
ConfigLocation location;
T default_value;
};
}
} // namespace Config

View file

@ -41,4 +41,4 @@ constexpr std::array<LayerType, 7> SEARCH_ORDER{{
LayerType::GlobalGame,
LayerType::Base,
}};
}
} // namespace Config

View file

@ -97,4 +97,4 @@ const LayerMap& Layer::GetLayerMap() const
{
return m_map;
}
}
} // namespace Config

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

View file

@ -36,4 +36,4 @@ int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event)
}
return 0;
}
}
} // namespace ENetUtil

View file

@ -10,4 +10,4 @@ namespace ENetUtil
{
void WakeupThread(ENetHost* host);
int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
}
} // namespace ENetUtil

View file

@ -43,4 +43,4 @@ void SetSIMDMode(int rounding_mode, bool non_ieee_mode);
void SaveSIMDState();
void LoadSIMDState();
void LoadDefaultSIMDState();
}
} // namespace FPURoundMode

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");

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)

View file

@ -26,4 +26,4 @@ void LoadSIMDState()
void LoadDefaultSIMDState()
{
}
}
} // namespace FPURoundMode

View file

@ -110,4 +110,4 @@ void RegisterV(const void* base_address, u32 code_size, const char* format, va_l
s_perf_map_file.WriteBytes(entry.data(), entry.size());
}
}
}
} // namespace JitRegister

View file

@ -30,4 +30,4 @@ inline void Register(const void* start, const void* end, const char* format, ...
RegisterV(start, code_size, format, args);
va_end(args);
}
}
} // namespace JitRegister

View file

@ -46,4 +46,4 @@ private:
mutable std::variant<T, std::function<T()>> m_value;
};
}
} // namespace Common

View file

@ -72,7 +72,7 @@ enum LOG_LEVELS
static const char LOG_LEVEL_TO_CHAR[7] = "-NEWID";
} // namespace
} // namespace LogTypes
void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char* file, int line,
const char* fmt, ...)

View file

@ -49,4 +49,4 @@ std::string MD5Sum(const std::string& file_path, std::function<bool(int)> report
return output_string;
}
}
} // namespace MD5

View file

@ -161,4 +161,4 @@ std::string Profiler::Read()
return buffer.str();
}
}
} // namespace Common

View file

@ -55,7 +55,7 @@ public:
private:
Profiler* m_p;
};
};
}; // namespace Common
// Warning: This profiler isn't thread safe. Only profile functions which doesn't run simultaneously
#define PROFILE(name) \

View file

@ -107,4 +107,4 @@ private:
ElementPtr* m_read_ptr;
std::atomic<u32> m_size;
};
}
} // namespace Common

View file

@ -112,7 +112,7 @@ struct hash<TraversalHostId>
return p[0] ^ ((p[1] << 13) | (p[1] >> 19));
}
};
}
} // namespace std
static int sock;
static std::unordered_map<TraversalRequestId, OutgoingPacketInfo> outgoingPackets;

View file

@ -12,6 +12,6 @@ namespace UPnP
{
void TryPortmapping(u16 port);
void StopPortmapping();
}
} // namespace UPnP
#endif

View file

@ -3389,4 +3389,4 @@ void XEmitter::RDTSC()
Write8(0x0F);
Write8(0x31);
}
}
} // namespace Gen

View file

@ -1177,4 +1177,4 @@ private:
}
};
} // namespace
} // namespace Gen

View file

@ -61,4 +61,4 @@ void LoadDefaultSIMDState()
{
_mm_setcsr(default_sse_state);
}
}
} // namespace FPURoundMode