mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 07:36:34 +00:00
Reformat repo to clang-format 7.0 rules
This commit is contained in:
parent
d347867f2e
commit
ff972e3673
208 changed files with 311 additions and 309 deletions
|
@ -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)
|
||||
|
|
|
@ -26,4 +26,4 @@ void LoadSIMDState()
|
|||
void LoadDefaultSIMDState()
|
||||
{
|
||||
}
|
||||
}
|
||||
} // namespace FPURoundMode
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -46,4 +46,4 @@ private:
|
|||
|
||||
mutable std::variant<T, std::function<T()>> m_value;
|
||||
};
|
||||
}
|
||||
} // namespace Common
|
||||
|
|
|
@ -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, ...)
|
||||
|
|
|
@ -49,4 +49,4 @@ std::string MD5Sum(const std::string& file_path, std::function<bool(int)> report
|
|||
|
||||
return output_string;
|
||||
}
|
||||
}
|
||||
} // namespace MD5
|
||||
|
|
|
@ -161,4 +161,4 @@ std::string Profiler::Read()
|
|||
|
||||
return buffer.str();
|
||||
}
|
||||
}
|
||||
} // namespace Common
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -107,4 +107,4 @@ private:
|
|||
ElementPtr* m_read_ptr;
|
||||
std::atomic<u32> m_size;
|
||||
};
|
||||
}
|
||||
} // namespace Common
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -12,6 +12,6 @@ namespace UPnP
|
|||
{
|
||||
void TryPortmapping(u16 port);
|
||||
void StopPortmapping();
|
||||
}
|
||||
} // namespace UPnP
|
||||
|
||||
#endif
|
||||
|
|
|
@ -3389,4 +3389,4 @@ void XEmitter::RDTSC()
|
|||
Write8(0x0F);
|
||||
Write8(0x31);
|
||||
}
|
||||
}
|
||||
} // namespace Gen
|
||||
|
|
|
@ -1177,4 +1177,4 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace Gen
|
||||
|
|
|
@ -61,4 +61,4 @@ void LoadDefaultSIMDState()
|
|||
{
|
||||
_mm_setcsr(default_sse_state);
|
||||
}
|
||||
}
|
||||
} // namespace FPURoundMode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue