Skip to content

Commit 49cf81d

Browse files
committed
Picked lint
1 parent 76fb905 commit 49cf81d

File tree

7 files changed

+59
-59
lines changed

7 files changed

+59
-59
lines changed

Extensions/DirectXMathFMA4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace DirectX
3131
// Should return true for AMD Bulldozer processors
3232
// with OS support for AVX (Windows 7 Service Pack 1, Windows Server 2008 R2 Service Pack 1, Windows 8, Windows Server 2012)
3333

34-
// See http://msdn.microsoft.com/en-us/library/hskdteyh.aspx
34+
// See http://msdn.microsoft.com/en-us/library/hskdteyh.aspx
3535
int CPUInfo[4] = { -1 };
3636
#if (defined(__clang__) || defined(__GNUC__)) && defined(__cpuid)
3737
__cpuid(0, CPUInfo[0], CPUInfo[1], CPUInfo[2], CPUInfo[3]);

Inc/DirectXCollision.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ namespace DirectX
336336
#ifdef _MSC_VER
337337
#pragma warning(push)
338338
#pragma warning(disable : 4068 4365 4616 6001)
339-
// C4068/4616: ignore unknown pragmas
340-
// C4365: Off by default noise
341-
// C6001: False positives
339+
// C4068/4616: ignore unknown pragmas
340+
// C4365: Off by default noise
341+
// C6001: False positives
342342
#endif
343343

344344
#ifdef _PREFAST_

Inc/DirectXCollision.inl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,9 @@ namespace MathInternal
520520
*
521521
****************************************************************************/
522522

523-
//-----------------------------------------------------------------------------
524-
// Transform a sphere by an angle preserving transform.
525-
//-----------------------------------------------------------------------------
523+
//-----------------------------------------------------------------------------
524+
// Transform a sphere by an angle preserving transform.
525+
//-----------------------------------------------------------------------------
526526
_Use_decl_annotations_
527527
inline void XM_CALLCONV BoundingSphere::Transform(BoundingSphere& Out, FXMMATRIX M) const noexcept
528528
{
@@ -1187,9 +1187,9 @@ inline void BoundingSphere::CreateFromFrustum(BoundingSphere& Out, const Boundin
11871187
*
11881188
****************************************************************************/
11891189

1190-
//-----------------------------------------------------------------------------
1191-
// Transform an axis aligned box by an angle preserving transform.
1192-
//-----------------------------------------------------------------------------
1190+
//-----------------------------------------------------------------------------
1191+
// Transform an axis aligned box by an angle preserving transform.
1192+
//-----------------------------------------------------------------------------
11931193
_Use_decl_annotations_
11941194
inline void XM_CALLCONV BoundingBox::Transform(BoundingBox& Out, FXMMATRIX M) const noexcept
11951195
{
@@ -1943,9 +1943,9 @@ inline void BoundingBox::CreateFromPoints(BoundingBox& Out, size_t Count, const
19431943
*
19441944
****************************************************************************/
19451945

1946-
//-----------------------------------------------------------------------------
1947-
// Transform an oriented box by an angle preserving transform.
1948-
//-----------------------------------------------------------------------------
1946+
//-----------------------------------------------------------------------------
1947+
// Transform an oriented box by an angle preserving transform.
1948+
//-----------------------------------------------------------------------------
19491949
_Use_decl_annotations_
19501950
inline void XM_CALLCONV BoundingOrientedBox::Transform(BoundingOrientedBox& Out, FXMMATRIX M) const noexcept
19511951
{

Inc/DirectXMath.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ namespace DirectX
343343
#ifdef _MSC_VER
344344
#pragma warning(push)
345345
#pragma warning(disable:4068 4201 4365 4324 4820)
346-
// C4068: ignore unknown pragmas
347-
// C4201: nonstandard extension used : nameless struct/union
348-
// C4365: Off by default noise
349-
// C4324/4820: padding warnings
346+
// C4068: ignore unknown pragmas
347+
// C4201: nonstandard extension used : nameless struct/union
348+
// C4365: Off by default noise
349+
// C4324/4820: padding warnings
350350
#endif
351351

352352
#ifdef _PREFAST_
@@ -1997,13 +1997,13 @@ namespace DirectX
19971997
*
19981998
****************************************************************************/
19991999

2000-
// The purpose of the following global constants is to prevent redundant
2001-
// reloading of the constants when they are referenced by more than one
2002-
// separate inline math routine called within the same function. Declaring
2003-
// a constant locally within a routine is sufficient to prevent redundant
2004-
// reloads of that constant when that single routine is called multiple
2005-
// times in a function, but if the constant is used (and declared) in a
2006-
// separate math routine it would be reloaded.
2000+
// The purpose of the following global constants is to prevent redundant
2001+
// reloading of the constants when they are referenced by more than one
2002+
// separate inline math routine called within the same function. Declaring
2003+
// a constant locally within a routine is sufficient to prevent redundant
2004+
// reloads of that constant when that single routine is called multiple
2005+
// times in a function, but if the constant is used (and declared) in a
2006+
// separate math routine it would be reloaded.
20072007

20082008
#ifndef XMGLOBALCONST
20092009
#if defined(__GNUC__) && !defined(__MINGW32__)
@@ -2165,10 +2165,10 @@ namespace DirectX
21652165
#ifdef _MSC_VER
21662166
#pragma warning(push)
21672167
#pragma warning(disable:4068 4214 4204 4365 4616 4640 6001 6101)
2168-
// C4068/4616: ignore unknown pragmas
2169-
// C4214/4204: nonstandard extension used
2170-
// C4365/4640: Off by default noise
2171-
// C6001/6101: False positives
2168+
// C4068/4616: ignore unknown pragmas
2169+
// C4214/4204: nonstandard extension used
2170+
// C4365/4640: Off by default noise
2171+
// C6001/6101: False positives
21722172
#endif
21732173

21742174
#ifdef _PREFAST_

Inc/DirectXMathConvert.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
****************************************************************************/
1717

18-
//------------------------------------------------------------------------------
18+
//------------------------------------------------------------------------------
1919

2020
#ifdef _MSC_VER
2121
#pragma warning(push)
@@ -240,7 +240,7 @@ inline XMVECTOR XM_CALLCONV XMConvertVectorFloatToUInt
240240
*
241241
****************************************************************************/
242242

243-
//------------------------------------------------------------------------------
243+
//------------------------------------------------------------------------------
244244
_Use_decl_annotations_
245245
inline XMVECTOR XM_CALLCONV XMLoadInt(const uint32_t* pSource) noexcept
246246
{

Inc/DirectXPackedVector.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,10 +1224,10 @@ namespace DirectX
12241224
#ifdef _MSC_VER
12251225
#pragma warning(push)
12261226
#pragma warning(disable:4068 4214 4204 4365 4616 6001 6101)
1227-
// C4068/4616: ignore unknown pragmas
1228-
// C4214/4204: nonstandard extension used
1229-
// C4365: Off by default noise
1230-
// C6001/6101: False positives
1227+
// C4068/4616: ignore unknown pragmas
1228+
// C4214/4204: nonstandard extension used
1229+
// C4365: Off by default noise
1230+
// C6001/6101: False positives
12311231
#endif
12321232

12331233
#ifdef _PREFAST_

Inc/DirectXPackedVector.inl

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
****************************************************************************/
1717

18-
//------------------------------------------------------------------------------
18+
//------------------------------------------------------------------------------
1919

2020
inline float XMConvertHalfToFloat(HALF Value) noexcept
2121
{
@@ -3746,7 +3746,7 @@ inline XMCOLOR::XMCOLOR(const float* pArray) noexcept
37463746
*
37473747
****************************************************************************/
37483748

3749-
//------------------------------------------------------------------------------
3749+
//------------------------------------------------------------------------------
37503750

37513751
inline XMHALF2::XMHALF2
37523752
(
@@ -3773,7 +3773,7 @@ inline XMHALF2::XMHALF2(const float* pArray) noexcept
37733773
*
37743774
****************************************************************************/
37753775

3776-
//------------------------------------------------------------------------------
3776+
//------------------------------------------------------------------------------
37773777

37783778
inline XMSHORTN2::XMSHORTN2
37793779
(
@@ -3797,7 +3797,7 @@ inline XMSHORTN2::XMSHORTN2(const float* pArray) noexcept
37973797
*
37983798
****************************************************************************/
37993799

3800-
//------------------------------------------------------------------------------
3800+
//------------------------------------------------------------------------------
38013801

38023802
inline XMSHORT2::XMSHORT2
38033803
(
@@ -3821,7 +3821,7 @@ inline XMSHORT2::XMSHORT2(const float* pArray) noexcept
38213821
*
38223822
****************************************************************************/
38233823

3824-
//------------------------------------------------------------------------------
3824+
//------------------------------------------------------------------------------
38253825

38263826
inline XMUSHORTN2::XMUSHORTN2
38273827
(
@@ -3845,7 +3845,7 @@ inline XMUSHORTN2::XMUSHORTN2(const float* pArray) noexcept
38453845
*
38463846
****************************************************************************/
38473847

3848-
//------------------------------------------------------------------------------
3848+
//------------------------------------------------------------------------------
38493849

38503850
inline XMUSHORT2::XMUSHORT2
38513851
(
@@ -3869,7 +3869,7 @@ inline XMUSHORT2::XMUSHORT2(const float* pArray) noexcept
38693869
*
38703870
****************************************************************************/
38713871

3872-
//------------------------------------------------------------------------------
3872+
//------------------------------------------------------------------------------
38733873

38743874
inline XMBYTEN2::XMBYTEN2
38753875
(
@@ -3893,7 +3893,7 @@ inline XMBYTEN2::XMBYTEN2(const float* pArray) noexcept
38933893
*
38943894
****************************************************************************/
38953895

3896-
//------------------------------------------------------------------------------
3896+
//------------------------------------------------------------------------------
38973897

38983898
inline XMBYTE2::XMBYTE2
38993899
(
@@ -3941,7 +3941,7 @@ inline XMUBYTEN2::XMUBYTEN2(const float* pArray) noexcept
39413941
*
39423942
****************************************************************************/
39433943

3944-
//------------------------------------------------------------------------------
3944+
//------------------------------------------------------------------------------
39453945

39463946
inline XMUBYTE2::XMUBYTE2
39473947
(
@@ -4031,7 +4031,7 @@ inline XMFLOAT3SE::XMFLOAT3SE(const float* pArray) noexcept
40314031
*
40324032
****************************************************************************/
40334033

4034-
//------------------------------------------------------------------------------
4034+
//------------------------------------------------------------------------------
40354035

40364036
inline XMHALF4::XMHALF4
40374037
(
@@ -4061,7 +4061,7 @@ inline XMHALF4::XMHALF4(const float* pArray) noexcept
40614061
*
40624062
****************************************************************************/
40634063

4064-
//------------------------------------------------------------------------------
4064+
//------------------------------------------------------------------------------
40654065

40664066
inline XMSHORTN4::XMSHORTN4
40674067
(
@@ -4087,7 +4087,7 @@ inline XMSHORTN4::XMSHORTN4(const float* pArray) noexcept
40874087
*
40884088
****************************************************************************/
40894089

4090-
//------------------------------------------------------------------------------
4090+
//------------------------------------------------------------------------------
40914091

40924092
inline XMSHORT4::XMSHORT4
40934093
(
@@ -4113,7 +4113,7 @@ inline XMSHORT4::XMSHORT4(const float* pArray) noexcept
41134113
*
41144114
****************************************************************************/
41154115

4116-
//------------------------------------------------------------------------------
4116+
//------------------------------------------------------------------------------
41174117

41184118
inline XMUSHORTN4::XMUSHORTN4
41194119
(
@@ -4139,7 +4139,7 @@ inline XMUSHORTN4::XMUSHORTN4(const float* pArray) noexcept
41394139
*
41404140
****************************************************************************/
41414141

4142-
//------------------------------------------------------------------------------
4142+
//------------------------------------------------------------------------------
41434143

41444144
inline XMUSHORT4::XMUSHORT4
41454145
(
@@ -4165,7 +4165,7 @@ inline XMUSHORT4::XMUSHORT4(const float* pArray) noexcept
41654165
*
41664166
****************************************************************************/
41674167

4168-
//------------------------------------------------------------------------------
4168+
//------------------------------------------------------------------------------
41694169

41704170
inline XMXDECN4::XMXDECN4
41714171
(
@@ -4206,7 +4206,7 @@ inline XMXDECN4::XMXDECN4(const float* pArray) noexcept
42064206
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
42074207
#endif
42084208

4209-
//------------------------------------------------------------------------------
4209+
//------------------------------------------------------------------------------
42104210

42114211
inline XMXDEC4::XMXDEC4
42124212
(
@@ -4232,7 +4232,7 @@ inline XMXDEC4::XMXDEC4(const float* pArray) noexcept
42324232
*
42334233
****************************************************************************/
42344234

4235-
//------------------------------------------------------------------------------
4235+
//------------------------------------------------------------------------------
42364236

42374237
inline XMDECN4::XMDECN4
42384238
(
@@ -4294,7 +4294,7 @@ inline XMDEC4::XMDEC4(const float* pArray) noexcept
42944294
*
42954295
****************************************************************************/
42964296

4297-
//------------------------------------------------------------------------------
4297+
//------------------------------------------------------------------------------
42984298

42994299
inline XMUDECN4::XMUDECN4
43004300
(
@@ -4320,7 +4320,7 @@ inline XMUDECN4::XMUDECN4(const float* pArray) noexcept
43204320
*
43214321
****************************************************************************/
43224322

4323-
//------------------------------------------------------------------------------
4323+
//------------------------------------------------------------------------------
43244324

43254325
inline XMUDEC4::XMUDEC4
43264326
(
@@ -4346,7 +4346,7 @@ inline XMUDEC4::XMUDEC4(const float* pArray) noexcept
43464346
*
43474347
****************************************************************************/
43484348

4349-
//------------------------------------------------------------------------------
4349+
//------------------------------------------------------------------------------
43504350

43514351
inline XMBYTEN4::XMBYTEN4
43524352
(
@@ -4372,7 +4372,7 @@ inline XMBYTEN4::XMBYTEN4(const float* pArray) noexcept
43724372
*
43734373
****************************************************************************/
43744374

4375-
//------------------------------------------------------------------------------
4375+
//------------------------------------------------------------------------------
43764376

43774377
inline XMBYTE4::XMBYTE4
43784378
(
@@ -4398,7 +4398,7 @@ inline XMBYTE4::XMBYTE4(const float* pArray) noexcept
43984398
*
43994399
****************************************************************************/
44004400

4401-
//------------------------------------------------------------------------------
4401+
//------------------------------------------------------------------------------
44024402

44034403
inline XMUBYTEN4::XMUBYTEN4
44044404
(
@@ -4424,7 +4424,7 @@ inline XMUBYTEN4::XMUBYTEN4(const float* pArray) noexcept
44244424
*
44254425
****************************************************************************/
44264426

4427-
//------------------------------------------------------------------------------
4427+
//------------------------------------------------------------------------------
44284428

44294429
inline XMUBYTE4::XMUBYTE4
44304430
(
@@ -4450,7 +4450,7 @@ inline XMUBYTE4::XMUBYTE4(const float* pArray) noexcept
44504450
*
44514451
****************************************************************************/
44524452

4453-
//------------------------------------------------------------------------------
4453+
//------------------------------------------------------------------------------
44544454

44554455
inline XMUNIBBLE4::XMUNIBBLE4
44564456
(
@@ -4476,7 +4476,7 @@ inline XMUNIBBLE4::XMUNIBBLE4(const float* pArray) noexcept
44764476
*
44774477
****************************************************************************/
44784478

4479-
//------------------------------------------------------------------------------
4479+
//------------------------------------------------------------------------------
44804480

44814481
inline XMU555::XMU555
44824482
(

0 commit comments

Comments
 (0)