Skip to content

Commit e079530

Browse files
committed
Ran clang-format
1 parent a04bb93 commit e079530

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

include/vsg/maths/common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,4 @@ namespace vsg
7272
/// return the number of bits supported by the long double implementation - VisualStudio by default 64 bits, stored as 8 bytes, & Linux x86_64 defaults to 80 bits stored as 16bytes, some CPU achitectures support full 128 bits/16 bytes.
7373
extern VSG_DECLSPEC uint32_t native_long_double_bits();
7474

75-
7675
} // namespace vsg

src/vsg/core/Version.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ extern "C"
4343
return 0;
4444
#endif
4545
}
46-
4746
}

src/vsg/io/BinaryInput.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ void BinaryInput::read(size_t num, Path* value)
8888
}
8989
}
9090

91-
9291
struct double_64
9392
{
9493
uint8_t sign : 1;
@@ -107,7 +106,6 @@ struct double_128
107106
};
108107
};
109108

110-
111109
void BinaryInput::read(size_t num, long double* value)
112110
{
113111
uint32_t native_type = native_long_double_bits();
@@ -129,7 +127,7 @@ void BinaryInput::read(size_t num, long double* value)
129127
std::vector<double> data(num);
130128
_read(num, data.data());
131129

132-
for(auto& v : data)
130+
for (auto& v : data)
133131
{
134132
*(value++) = v;
135133
}
@@ -143,7 +141,7 @@ void BinaryInput::read(size_t num, long double* value)
143141
if (native_type == 64)
144142
{
145143
double_64* dest = reinterpret_cast<double_64*>(value);
146-
for(auto& v : data)
144+
for (auto& v : data)
147145
{
148146
auto& d = *(dest++);
149147
d.sign = v.sign;
@@ -154,29 +152,29 @@ void BinaryInput::read(size_t num, long double* value)
154152
else if (native_type == 80)
155153
{
156154
double_128* dest = reinterpret_cast<double_128*>(value);
157-
for(auto& v : data)
155+
for (auto& v : data)
158156
{
159157
auto& d = *(dest++);
160158
d.sign = v.sign;
161159
d.exponent = v.exponent;
162160

163161
// copy fraction and fill in zeros at end
164-
for(int i=0; i<8; ++i) d.mantissa[i] = v.mantissa[i];
162+
for (int i = 0; i < 8; ++i) d.mantissa[i] = v.mantissa[i];
165163
}
166164
}
167165
else if (native_type == 128)
168166
{
169167
double_128* dest = reinterpret_cast<double_128*>(value);
170-
for(auto& v : data)
168+
for (auto& v : data)
171169
{
172170
auto& d = *(dest++);
173171
d.sign = v.sign;
174172
d.exponent = v.exponent;
175173

176174
// copy fraction and fill in zeros at end
177-
int i=0;
178-
for(; i<8; ++i) d.mantissa[i] = v.mantissa[i];
179-
for(; i<14; ++i) d.mantissa[i] = 0;
175+
int i = 0;
176+
for (; i < 8; ++i) d.mantissa[i] = v.mantissa[i];
177+
for (; i < 14; ++i) d.mantissa[i] = 0;
180178
}
181179
}
182180
}

src/vsg/maths/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1111
1212
</editor-fold> */
1313

14-
#include <vsg/maths/common.h>
1514
#include <vsg/io/Options.h>
15+
#include <vsg/maths/common.h>
1616

1717
#include <float.h>
1818

src/vsg/nodes/CoordinateFrame.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void CoordinateFrame::read(Input& input)
4848
input.read("name", name);
4949
input.read("origin", origin);
5050
input.read("rotation", rotation);
51-
input.read("temp_ldvec3" , temp_ldvec3);
51+
input.read("temp_ldvec3", temp_ldvec3);
5252
input.read("subgraphRequiresLocalFrustum", subgraphRequiresLocalFrustum);
5353
input.readObjects("children", children);
5454
}
@@ -59,7 +59,7 @@ void CoordinateFrame::write(Output& output) const
5959
output.write("name", name);
6060
output.write("origin", origin);
6161
output.write("rotation", rotation);
62-
output.write("temp_ldvec3" , temp_ldvec3);
62+
output.write("temp_ldvec3", temp_ldvec3);
6363
output.write("subgraphRequiresLocalFrustum", subgraphRequiresLocalFrustum);
6464
output.writeObjects("children", children);
6565
}

0 commit comments

Comments
 (0)