mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
specify custom brace style to fix unions
BreakBeforeBraces: Allman apparently includes all styles, except for AfterUnion (which is false) when using clang-format -dump-config
This commit is contained in:
parent
41101be545
commit
23d99f2f2c
47 changed files with 375 additions and 182 deletions
|
@ -104,7 +104,8 @@ const int frsqrte_expected_dec[] = {
|
|||
|
||||
double ApproximateReciprocalSquareRoot(double val)
|
||||
{
|
||||
union {
|
||||
union
|
||||
{
|
||||
double valf;
|
||||
s64 vali;
|
||||
};
|
||||
|
@ -178,7 +179,8 @@ double ApproximateReciprocal(double val)
|
|||
// The workaround for this is to just use namespace std within this function's scope
|
||||
// That way on real toolchains it will use the std:: variant like normal.
|
||||
using namespace std;
|
||||
union {
|
||||
union
|
||||
{
|
||||
double valf;
|
||||
s64 vali;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue