Browse Source

- Added new line to end of every file (#110)

- Fixed warnings when compiling with clang through MSVC
Jorrit Rouwe 3 years ago
parent
commit
bfd74a56c1
100 changed files with 132 additions and 103 deletions
  1. 1 1
      Jolt/AABBTree/AABBTreeBuilder.cpp
  2. 1 1
      Jolt/AABBTree/AABBTreeBuilder.h
  3. 1 1
      Jolt/AABBTree/AABBTreeToBuffer.h
  4. 1 1
      Jolt/AABBTree/NodeCodec/NodeCodecQuadTreeHalfFloat.h
  5. 1 1
      Jolt/AABBTree/TriangleCodec/TriangleCodecIndexed8BitPackSOA4Flags.h
  6. 1 1
      Jolt/Core/AlignedAllocator.h
  7. 1 1
      Jolt/Core/Atomics.h
  8. 1 1
      Jolt/Core/ByteBuffer.h
  9. 1 1
      Jolt/Core/Color.cpp
  10. 1 1
      Jolt/Core/Color.h
  11. 0 1
      Jolt/Core/Core.h
  12. 1 1
      Jolt/Core/Factory.h
  13. 5 0
      Jolt/Core/HashCombine.h
  14. 1 1
      Jolt/Core/IssueReporting.cpp
  15. 1 1
      Jolt/Core/IssueReporting.h
  16. 1 1
      Jolt/Core/JobSystem.inl
  17. 5 5
      Jolt/Core/JobSystemThreadPool.cpp
  18. 1 1
      Jolt/Core/LinearCurve.cpp
  19. 1 1
      Jolt/Core/LinearCurve.h
  20. 1 1
      Jolt/Core/LockFreeHashMap.h
  21. 1 1
      Jolt/Core/Memory.cpp
  22. 1 1
      Jolt/Core/Memory.h
  23. 1 1
      Jolt/Core/Mutex.h
  24. 1 1
      Jolt/Core/NonCopyable.h
  25. 15 0
      Jolt/Core/Profiler.h
  26. 1 1
      Jolt/Core/RTTI.cpp
  27. 1 1
      Jolt/Core/RTTI.h
  28. 5 0
      Jolt/Core/Reference.h
  29. 1 1
      Jolt/Core/Result.h
  30. 5 0
      Jolt/Core/StaticArray.h
  31. 1 1
      Jolt/Core/StreamIn.h
  32. 1 1
      Jolt/Core/StreamOut.h
  33. 1 1
      Jolt/Core/StreamWrapper.h
  34. 1 1
      Jolt/Core/StringTools.cpp
  35. 1 1
      Jolt/Core/StringTools.h
  36. 1 1
      Jolt/Core/TempAllocator.h
  37. 4 4
      Jolt/Core/TickCounter.cpp
  38. 1 1
      Jolt/Math/DVec3.h
  39. 1 1
      Jolt/Math/DVec3.inl
  40. 1 1
      Jolt/Math/EigenValueSymmetric.h
  41. 1 1
      Jolt/Math/FindRoot.h
  42. 1 1
      Jolt/Math/Float2.h
  43. 1 1
      Jolt/Math/Float4.h
  44. 1 1
      Jolt/Math/GaussianElimination.h
  45. 1 1
      Jolt/Math/HalfFloat.h
  46. 1 1
      Jolt/Math/Mat44.inl
  47. 1 1
      Jolt/Math/Matrix.h
  48. 1 1
      Jolt/Math/Swizzle.h
  49. 1 1
      Jolt/Math/UVec4.cpp
  50. 1 1
      Jolt/Math/Vec3.cpp
  51. 1 1
      Jolt/Math/Vec4.h
  52. 1 1
      Jolt/Math/Vec8.h
  53. 1 1
      Jolt/Math/Vec8.inl
  54. 1 1
      Jolt/Math/Vector.h
  55. 1 1
      Jolt/ObjectStream/GetPrimitiveTypeOfType.h
  56. 1 1
      Jolt/ObjectStream/ObjectStream.cpp
  57. 1 1
      Jolt/ObjectStream/ObjectStream.h
  58. 1 1
      Jolt/ObjectStream/ObjectStreamBinaryIn.h
  59. 1 1
      Jolt/ObjectStream/ObjectStreamBinaryOut.cpp
  60. 1 1
      Jolt/ObjectStream/ObjectStreamBinaryOut.h
  61. 1 1
      Jolt/ObjectStream/ObjectStreamIn.cpp
  62. 1 1
      Jolt/ObjectStream/ObjectStreamIn.h
  63. 1 1
      Jolt/ObjectStream/ObjectStreamOut.cpp
  64. 1 1
      Jolt/ObjectStream/ObjectStreamOut.h
  65. 1 1
      Jolt/ObjectStream/ObjectStreamTextIn.cpp
  66. 1 1
      Jolt/ObjectStream/ObjectStreamTextIn.h
  67. 1 1
      Jolt/ObjectStream/ObjectStreamTextOut.cpp
  68. 1 1
      Jolt/ObjectStream/ObjectStreamTextOut.h
  69. 1 1
      Jolt/ObjectStream/ObjectStreamTypes.h
  70. 1 1
      Jolt/ObjectStream/SerializableAttribute.h
  71. 1 1
      Jolt/ObjectStream/SerializableAttributeEnum.h
  72. 1 1
      Jolt/ObjectStream/SerializableAttributeTyped.h
  73. 1 1
      Jolt/ObjectStream/SerializableObject.cpp
  74. 1 1
      Jolt/ObjectStream/SerializableObject.h
  75. 1 1
      Jolt/ObjectStream/TypeDeclarations.cpp
  76. 1 1
      Jolt/Physics/Body/Body.cpp
  77. 1 1
      Jolt/Physics/Body/Body.h
  78. 1 1
      Jolt/Physics/Body/Body.inl
  79. 1 1
      Jolt/Physics/Body/BodyCreationSettings.cpp
  80. 1 1
      Jolt/Physics/Body/BodyCreationSettings.h
  81. 1 1
      Jolt/Physics/Body/BodyFilter.h
  82. 1 1
      Jolt/Physics/Body/BodyID.h
  83. 1 1
      Jolt/Physics/Body/BodyInterface.cpp
  84. 1 1
      Jolt/Physics/Body/BodyInterface.h
  85. 1 1
      Jolt/Physics/Body/BodyLock.h
  86. 1 1
      Jolt/Physics/Body/BodyLockInterface.h
  87. 1 1
      Jolt/Physics/Body/BodyLockMulti.h
  88. 1 1
      Jolt/Physics/Body/BodyManager.cpp
  89. 1 1
      Jolt/Physics/Body/BodyManager.h
  90. 1 1
      Jolt/Physics/Body/BodyPair.h
  91. 1 1
      Jolt/Physics/Body/MassProperties.cpp
  92. 1 1
      Jolt/Physics/Body/MassProperties.h
  93. 1 1
      Jolt/Physics/Body/MotionProperties.cpp
  94. 1 1
      Jolt/Physics/Body/MotionProperties.h
  95. 1 1
      Jolt/Physics/Body/MotionProperties.inl
  96. 1 1
      Jolt/Physics/Body/MotionQuality.h
  97. 1 1
      Jolt/Physics/Body/MotionType.h
  98. 1 1
      Jolt/Physics/Character/Character.cpp
  99. 1 1
      Jolt/Physics/Character/Character.h
  100. 1 1
      Jolt/Physics/Collision/AABoxCast.h

+ 1 - 1
Jolt/AABBTree/AABBTreeBuilder.cpp

@@ -221,4 +221,4 @@ AABBTreeBuilder::Node *AABBTreeBuilder::BuildInternal(const TriangleSplitter::Ra
 	return node;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/AABBTree/AABBTreeBuilder.h

@@ -104,4 +104,4 @@ private:
 	const uint				mMaxTrianglesPerLeaf;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/AABBTree/AABBTreeToBuffer.h

@@ -316,4 +316,4 @@ private:
 	uint							mNodesSize;								///< Size in bytes of the nodes in the buffer
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/AABBTree/NodeCodec/NodeCodecQuadTreeHalfFloat.h

@@ -287,4 +287,4 @@ public:
 	};
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/AABBTree/TriangleCodec/TriangleCodecIndexed8BitPackSOA4Flags.h

@@ -437,4 +437,4 @@ public:
 	};
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/AlignedAllocator.h

@@ -64,4 +64,4 @@ public:
 	};
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/Atomics.h

@@ -31,4 +31,4 @@ bool AtomicMax(atomic<T> &ioAtomic, const T inValue, const memory_order inMemory
 	return false;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/ByteBuffer.h

@@ -70,4 +70,4 @@ public:
 	}
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/Color.cpp

@@ -34,4 +34,4 @@ Color Color::sGetDistinctColor(int inIndex)
 	return sColors[inIndex % (sizeof(sColors) / sizeof(uint32))];
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/Color.h

@@ -73,4 +73,4 @@ public:
 
 static_assert(is_trivial<Color>(), "Is supposed to be a trivial type!");
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 0 - 1
Jolt/Core/Core.h

@@ -115,7 +115,6 @@
 	JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat")												\
 	JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat-pedantic")										\
 	JPH_CLANG_SUPPRESS_WARNING("-Wfloat-equal")													\
-	JPH_CLANG_SUPPRESS_WARNING("-Wnewline-eof")													\
 	JPH_CLANG_SUPPRESS_WARNING("-Wsign-conversion")												\
 	JPH_CLANG_SUPPRESS_WARNING("-Wold-style-cast")												\
 	JPH_CLANG_SUPPRESS_WARNING("-Wgnu-anonymous-struct")										\

+ 1 - 1
Jolt/Core/Factory.h

@@ -45,4 +45,4 @@ private:
 	ClassHashMap				mClassHashMap;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 5 - 0
Jolt/Core/HashCombine.h

@@ -32,6 +32,9 @@ inline void hash_combine(std::size_t &ioSeed, const T &inValue, Rest... inRest)
 
 JPH_NAMESPACE_END
 
+JPH_SUPPRESS_WARNING_PUSH
+JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat-pedantic")
+
 #define JPH_MAKE_HASH_STRUCT(type, name, ...)				\
 	struct [[nodiscard]] name								\
 	{														\
@@ -52,3 +55,5 @@ JPH_NAMESPACE_END
 		JPH_MAKE_HASH_STRUCT(type, hash<type>, __VA_ARGS__)	\
     }														\
 	JPH_SUPPRESS_WARNING_POP
+
+JPH_SUPPRESS_WARNING_POP

+ 1 - 1
Jolt/Core/IssueReporting.cpp

@@ -27,4 +27,4 @@ AssertFailedFunction AssertFailed = DummyAssertFailed;
 
 #endif // JPH_ENABLE_ASSERTS
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/IssueReporting.h

@@ -34,4 +34,4 @@ extern TraceFunction Trace;
 	#define JPH_IF_ENABLE_ASSERTS(...)	
 #endif // JPH_ENABLE_ASSERTS
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/JobSystem.inl

@@ -52,4 +52,4 @@ void JobSystem::JobHandle::sRemoveDependencies(JobHandle *inHandles, uint inNumH
 		job_system->QueueJobs(jobs_to_queue, num_jobs_to_queue);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 5 - 5
Jolt/Core/JobSystemThreadPool.cpp

@@ -12,11 +12,11 @@ JPH_SUPPRESS_WARNINGS_STD_BEGIN
 JPH_SUPPRESS_WARNINGS_STD_END
 
 #ifdef JPH_PLATFORM_WINDOWS
-	#pragma warning (push, 0)
-	#pragma warning (disable : 5039) // winbase.h(13179): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception.
+	JPH_SUPPRESS_WARNING_PUSH
+	JPH_MSVC_SUPPRESS_WARNING(5039) // winbase.h(13179): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception.
 	#define WIN32_LEAN_AND_MEAN
-	#include <windows.h>
-	#pragma warning (pop)
+	#include <Windows.h>
+	JPH_SUPPRESS_WARNING_POP
 #endif
 
 JPH_NAMESPACE_BEGIN
@@ -563,4 +563,4 @@ void JobSystemThreadPool::ThreadMain([[maybe_unused]] const string &inName, int
 	JPH_PROFILE_THREAD_END();
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/LinearCurve.cpp

@@ -47,4 +47,4 @@ void LinearCurve::RestoreBinaryState(StreamIn &inStream)
 	inStream.Read(mPoints);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/LinearCurve.h

@@ -62,4 +62,4 @@ public:
 	Points				mPoints;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/LockFreeHashMap.h

@@ -180,4 +180,4 @@ private:
 
 JPH_NAMESPACE_END
 
-#include "LockFreeHashMap.inl"
+#include "LockFreeHashMap.inl"

+ 1 - 1
Jolt/Core/Memory.cpp

@@ -35,4 +35,4 @@ void AlignedFree(void *inBlock)
 #endif
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/Memory.h

@@ -11,4 +11,4 @@ void *AlignedAlloc(size_t inSize, size_t inAlignment);
 /// Free memory block allocated with AlignedAlloc
 void AlignedFree(void *inBlock);
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/Mutex.h

@@ -211,4 +211,4 @@ using SharedMutex = SharedMutexBase;
 
 #endif
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/NonCopyable.h

@@ -14,4 +14,4 @@ public:
 	void	operator = (const NonCopyable &) = delete;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 15 - 0
Jolt/Core/Profiler.h

@@ -36,6 +36,9 @@ JPH_NAMESPACE_END
 // Macros to do the actual profiling	
 //////////////////////////////////////////////////////////////////////////////////////////
 
+JPH_SUPPRESS_WARNING_PUSH
+JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat-pedantic")
+
 // Dummy implementations
 #define JPH_PROFILE_THREAD_START(name)			
 #define JPH_PROFILE_THREAD_END()				
@@ -60,6 +63,8 @@ JPH_NAMESPACE_END
 // Scope profiling for function
 #define JPH_PROFILE_FUNCTION()		JPH_PROFILE(JPH_FUNCTION_NAME)
 
+JPH_SUPPRESS_WARNING_POP
+
 #elif defined(JPH_PROFILE_ENABLED)
 
 JPH_NAMESPACE_BEGIN
@@ -200,6 +205,9 @@ JPH_NAMESPACE_END
 // Macros to do the actual profiling	
 //////////////////////////////////////////////////////////////////////////////////////////
 
+JPH_SUPPRESS_WARNING_PUSH
+JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat-pedantic")
+
 /// Start instrumenting a thread
 #define JPH_PROFILE_THREAD_START(name)	ProfileThread::sInstance = new ProfileThread(name)
 
@@ -220,12 +228,17 @@ JPH_NAMESPACE_END
 /// Dump profiling info
 #define JPH_PROFILE_DUMP(...)			Profiler::sInstance.Dump(__VA_ARGS__)
 
+JPH_SUPPRESS_WARNING_POP
+
 #else
 
 //////////////////////////////////////////////////////////////////////////////////////////
 // Dummy profiling instructions
 //////////////////////////////////////////////////////////////////////////////////////////
 
+JPH_SUPPRESS_WARNING_PUSH
+JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat-pedantic")
+
 #define JPH_PROFILE_THREAD_START(name)
 #define JPH_PROFILE_THREAD_END()
 #define JPH_PROFILE(...)
@@ -233,4 +246,6 @@ JPH_NAMESPACE_END
 #define JPH_PROFILE_NEXTFRAME()
 #define JPH_PROFILE_DUMP(...)
 
+JPH_SUPPRESS_WARNING_POP
+
 #endif

+ 1 - 1
Jolt/Core/RTTI.cpp

@@ -152,4 +152,4 @@ const RTTIAttribute *RTTI::GetAttribute(const RTTI *inRTTI, const char *inName)
 	return nullptr;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/RTTI.h

@@ -464,4 +464,4 @@ private:
 	const char *				mName;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 5 - 0
Jolt/Core/Reference.h

@@ -190,6 +190,9 @@ private:
 
 JPH_NAMESPACE_END
 
+JPH_SUPPRESS_WARNING_PUSH
+JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat")
+
 namespace std
 {
 	/// Declare std::hash for Ref
@@ -212,3 +215,5 @@ namespace std
 		}
 	};
 }
+
+JPH_SUPPRESS_WARNING_POP

+ 1 - 1
Jolt/Core/Result.h

@@ -172,4 +172,4 @@ private:
 	EState				mState = EState::Invalid;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 5 - 0
Jolt/Core/StaticArray.h

@@ -281,6 +281,9 @@ protected:
 
 JPH_NAMESPACE_END
 
+JPH_SUPPRESS_WARNING_PUSH
+JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat")
+
 namespace std
 {
 	/// Declare std::hash for StaticArray
@@ -302,3 +305,5 @@ namespace std
 		}
 	};
 }
+
+JPH_SUPPRESS_WARNING_POP

+ 1 - 1
Jolt/Core/StreamIn.h

@@ -66,4 +66,4 @@ public:
 	}
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/StreamOut.h

@@ -52,4 +52,4 @@ public:
 	}
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/StreamWrapper.h

@@ -49,4 +49,4 @@ private:
 	istream &			mWrapped;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/StringTools.cpp

@@ -96,4 +96,4 @@ const char *NibbleToBinary(uint32 inNibble)
 	return nibbles[inNibble & 0xf];
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/StringTools.h

@@ -45,4 +45,4 @@ string ToLower(const string &inString);
 /// Converts the lower 4 bits of inNibble to a string that represents the number in binary format
 const char *NibbleToBinary(uint32 inNibble);
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Core/TempAllocator.h

@@ -97,4 +97,4 @@ public:
 	}
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 4 - 4
Jolt/Core/TickCounter.cpp

@@ -6,11 +6,11 @@
 #include <Jolt/Core/TickCounter.h>
 
 #if defined(JPH_PLATFORM_WINDOWS)
-	#pragma warning (push, 0)
-	#pragma warning (disable : 5039) // winbase.h(13179): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception.
+	JPH_SUPPRESS_WARNING_PUSH
+	JPH_MSVC_SUPPRESS_WARNING(5039) // winbase.h(13179): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception.
 	#define WIN32_LEAN_AND_MEAN
-	#include <windows.h>
-	#pragma warning (pop)
+	#include <Windows.h>
+	JPH_SUPPRESS_WARNING_POP
 #elif defined(JPH_PLATFORM_LINUX) || defined(JPH_PLATFORM_ANDROID)
 	#include <fstream>
 #elif defined(JPH_PLATFORM_MACOS) || defined(JPH_PLATFORM_IOS)

+ 1 - 1
Jolt/Math/DVec3.h

@@ -218,4 +218,4 @@ JPH_NAMESPACE_END
 
 #include "DVec3.inl"
 
-#endif // JPH_USE_AVX2
+#endif // JPH_USE_AVX2

+ 1 - 1
Jolt/Math/DVec3.inl

@@ -274,4 +274,4 @@ DVec3 DVec3::GetSign() const
 	return _mm256_or_pd(_mm256_and_pd(mValue, minus_one), one);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/EigenValueSymmetric.h

@@ -170,4 +170,4 @@ bool EigenValueSymmetric(const Matrix &inMatrix, Matrix &outEigVec, Vector &outE
 	return false;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/FindRoot.h

@@ -38,4 +38,4 @@ inline int FindRoot(const T inA, const T inB, const T inC, T &outX1, T &outX2)
 	return 2;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/Float2.h

@@ -29,4 +29,4 @@ public:
 
 static_assert(is_trivial<Float2>(), "Is supposed to be a trivial type!");
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/Float4.h

@@ -27,4 +27,4 @@ public:
 
 static_assert(is_trivial<Float4>(), "Is supposed to be a trivial type!");
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/GaussianElimination.h

@@ -98,4 +98,4 @@ bool GaussianElimination(MatrixA &ioA, MatrixB &ioB, float inTolerance = 1.0e-16
 	return true;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/HalfFloat.h

@@ -208,4 +208,4 @@ JPH_INLINE Vec4 ToFloat(UVec4Arg inValue)
 
 } // HalfFloatConversion
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/Mat44.inl

@@ -1094,4 +1094,4 @@ Mat44 Mat44::Decompose(Vec3 &outScale) const
 	return Mat44(Vec4(x / outScale.GetX(), 0), Vec4(y / outScale.GetY(), 0), Vec4(z / outScale.GetZ(), 0), GetColumn4(3));
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/Matrix.h

@@ -250,4 +250,4 @@ inline bool Matrix<2, 2>::SetInversed(const Matrix<2, 2> &inM)
 	return true;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/Swizzle.h

@@ -15,4 +15,4 @@ enum
 	SWIZZLE_UNUSED = 2,		///< We always use the Z component when we don't specifically want to initialize a value, this is consistent with what is done in Vec3(x, y, z), Vec3(Float3 &) and Vec3::sLoadFloat3Unsafe
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/UVec4.cpp

@@ -15,4 +15,4 @@ const UVec4 UVec4::sFourMinusXShuffle[5] =
 	UVec4(0x03020100, 0x07060504, 0x0b0a0908, 0x0f0e0d0c)
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/Vec3.cpp

@@ -59,4 +59,4 @@ const vector<Vec3> Vec3::sUnitSphere = []() {
 	return vector<Vec3>(verts.begin(), verts.end());
 }();
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/Vec4.h

@@ -250,4 +250,4 @@ static_assert(is_trivial<Vec4>(), "Is supposed to be a trivial type!");
 
 JPH_NAMESPACE_END
 
-#include "Vec4.inl"
+#include "Vec4.inl"

+ 1 - 1
Jolt/Math/Vec8.h

@@ -106,4 +106,4 @@ static_assert(is_trivial<Vec8>(), "Is supposed to be a trivial type!");
 
 JPH_NAMESPACE_END
 
-#include "Vec8.inl"
+#include "Vec8.inl"

+ 1 - 1
Jolt/Math/Vec8.inl

@@ -140,4 +140,4 @@ float Vec8::ReduceMin() const
 	return Vec4::sMin(LowerVec4(), UpperVec4()).ReduceMin();
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Math/Vector.h

@@ -205,4 +205,4 @@ public:
 	float						mF32[Rows];
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/GetPrimitiveTypeOfType.h

@@ -50,4 +50,4 @@ RTTI *GetPrimitiveTypeOfType(T (*)[N])
 	return GetPrimitiveTypeOfType((T *)nullptr);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStream.cpp

@@ -17,4 +17,4 @@ JPH_NAMESPACE_BEGIN
 // This file uses the JPH_DECLARE_PRIMITIVE macro to define all types
 #include <Jolt/ObjectStream/ObjectStreamTypes.h>
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStream.h

@@ -89,4 +89,4 @@ bool OSIsType(RefConst<T> *inNull, int inArrayDepth, ObjectStream::EDataType inD
 	return OSIsType((T *)nullptr, inArrayDepth, inDataType, inClassName);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamBinaryIn.h

@@ -41,4 +41,4 @@ private:
 	uint32						mNextStringID;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamBinaryOut.cpp

@@ -123,4 +123,4 @@ void ObjectStreamBinaryOut::WritePrimitiveData(const Mat44 &inPrimitive)
 	mStream.write((const char *)&inPrimitive, sizeof(inPrimitive));
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamBinaryOut.h

@@ -41,4 +41,4 @@ private:
 	uint32						mNextStringID;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamIn.cpp

@@ -567,4 +567,4 @@ bool ObjectStreamIn::SkipAttributeData(int inArrayDepth, EDataType inDataType, c
 // This file uses the JPH_DECLARE_PRIMITIVE macro to define all types
 #include <Jolt/ObjectStream/ObjectStreamTypes.h>
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamIn.h

@@ -246,4 +246,4 @@ bool OSReadData(ObjectStreamIn &ioStream, RefConst<T> &inRef)
 	return ioStream.ReadPointerData(JPH_RTTI(T), inRef.InternalGetPointer(), T::sInternalGetRefCountOffset());
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamOut.cpp

@@ -181,4 +181,4 @@ void ObjectStreamOut::WritePointerData(const RTTI *inRTTI, const void *inPointer
 // This file uses the JPH_DECLARE_PRIMITIVE macro to define all types
 #include <Jolt/ObjectStream/ObjectStreamTypes.h>
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamOut.h

@@ -224,4 +224,4 @@ void OSWriteData(ObjectStreamOut &ioStream, const RefConst<T> &inRef)
 		ioStream.WritePointerData(nullptr, nullptr);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamTextIn.cpp

@@ -342,4 +342,4 @@ bool ObjectStreamTextIn::ReadWord(string &outWord)
 	return !outWord.empty();
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamTextIn.h

@@ -39,4 +39,4 @@ private:
 	bool						ReadWord(string &outWord);
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamTextOut.cpp

@@ -183,4 +183,4 @@ void ObjectStreamTextOut::WriteWord(const string &inWord)
 	mStream << inWord;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamTextOut.h

@@ -46,4 +46,4 @@ private:
 	int							mIndentation;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/ObjectStreamTypes.h

@@ -15,4 +15,4 @@ JPH_DECLARE_PRIMITIVE(Vec4)
 JPH_DECLARE_PRIMITIVE(Quat)
 JPH_DECLARE_PRIMITIVE(Mat44)
 
-#undef JPH_DECLARE_PRIMITIVE
+#undef JPH_DECLARE_PRIMITIVE

+ 1 - 1
Jolt/ObjectStream/SerializableAttribute.h

@@ -26,4 +26,4 @@ public:
 	virtual void				VisitCompounds(const void *inObject, const CompoundVisitor &inVisitor) const = 0;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/SerializableAttributeEnum.h

@@ -72,4 +72,4 @@ inline void AddSerializableAttributeEnum(RTTI &inRTTI, T Class::*inMember, const
 #define JPH_ADD_ENUM_ATTRIBUTE(class_name, member_name)																\
 								AddSerializableAttributeEnum(inRTTI, &class_name::member_name, #member_name);
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/SerializableAttributeTyped.h

@@ -70,4 +70,4 @@ inline void AddSerializableAttributeTyped(RTTI &inRTTI, T Class::*inMember, cons
 #define JPH_ADD_ATTRIBUTE(class_name, member_name)																	\
 								AddSerializableAttributeTyped(inRTTI, &class_name::member_name, #member_name);
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/SerializableObject.cpp

@@ -27,4 +27,4 @@ void OSVisitCompounds(const void *inObject, const RTTI *inRTTI, const CompoundVi
 	inVisitor(inObject, inRTTI);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/SerializableObject.h

@@ -218,4 +218,4 @@ public:
 	virtual void				OnLoaded()																			{ }
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/ObjectStream/TypeDeclarations.cpp

@@ -47,4 +47,4 @@ JPH_IMPLEMENT_SERIALIZABLE_OUTSIDE_CLASS(IndexedTriangle)
 	JPH_ADD_ATTRIBUTE(IndexedTriangle, mMaterialIndex)
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/Body.cpp

@@ -326,4 +326,4 @@ BodyCreationSettings Body::GetBodyCreationSettings() const
 	return result;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/Body.h

@@ -324,4 +324,4 @@ private:
 
 JPH_NAMESPACE_END
 
-#include "Body.inl"
+#include "Body.inl"

+ 1 - 1
Jolt/Physics/Body/Body.inl

@@ -184,4 +184,4 @@ void Body::ResetSleepTestSpheres()
 	mMotionProperties->ResetSleepTestSpheres(points);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyCreationSettings.cpp

@@ -245,4 +245,4 @@ BodyCreationSettings::BCSResult BodyCreationSettings::sRestoreWithChildren(Strea
 	return result;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyCreationSettings.h

@@ -112,4 +112,4 @@ private:
 	RefConst<Shape>			mShapePtr;														///< Actual shape, cannot be serialized. Mutually exclusive with mShape
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyFilter.h

@@ -82,4 +82,4 @@ private:
 	vector<BodyID>			mBodyIDs;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyID.h

@@ -89,4 +89,4 @@ private:
 	uint32					mID;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyInterface.cpp

@@ -818,4 +818,4 @@ void BodyInterface::InvalidateContactCache(const BodyID &inBodyID)
 		mBodyManager->InvalidateContactCacheForBody(lock.GetBody());
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyInterface.h

@@ -195,4 +195,4 @@ private:
 	BroadPhase *				mBroadPhase = nullptr;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyLock.h

@@ -107,4 +107,4 @@ class BodyLockWrite : public BodyLockBase<true, Body>
 	using BodyLockBase::BodyLockBase;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyLockInterface.h

@@ -130,4 +130,4 @@ public:
 	}
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyLockMulti.h

@@ -100,4 +100,4 @@ class BodyLockMultiWrite : public BodyLockMultiBase<true, Body>
 	using BodyLockMultiBase::BodyLockMultiBase;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyManager.cpp

@@ -771,4 +771,4 @@ void BodyManager::ValidateActiveBodyBounds()
 }
 #endif // _DEBUG
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyManager.h

@@ -283,4 +283,4 @@ private:
 #endif
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/BodyPair.h

@@ -27,4 +27,4 @@ struct BodyPair
 
 JPH_MAKE_HASH_STRUCT(BodyPair, BodyPairHash, t.mBodyA.GetIndex(), t.mBodyB.GetIndex())
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/MassProperties.cpp

@@ -180,4 +180,4 @@ void MassProperties::RestoreBinaryState(StreamIn &inStream)
 	inStream.Read(mInertia);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/MassProperties.h

@@ -54,4 +54,4 @@ public:
 	Mat44					mInertia = Mat44::sZero();
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/MotionProperties.cpp

@@ -43,4 +43,4 @@ void MotionProperties::RestoreState(StateRecorder &inStream)
 	inStream.Read(mAllowSleeping);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/MotionProperties.h

@@ -176,4 +176,4 @@ private:
 
 JPH_NAMESPACE_END
 
-#include "MotionProperties.inl"
+#include "MotionProperties.inl"

+ 1 - 1
Jolt/Physics/Body/MotionProperties.inl

@@ -124,4 +124,4 @@ void MotionProperties::ResetSleepTestSpheres(const Vec3 *inPoints)
 	mSleepTestTimer = 0.0f;
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/MotionQuality.h

@@ -27,4 +27,4 @@ enum class EMotionQuality : uint8
 	LinearCast,
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Body/MotionType.h

@@ -13,4 +13,4 @@ enum class EMotionType : uint8
 	Dynamic,					///< Responds to forces as a normal physics object
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Character/Character.cpp

@@ -268,4 +268,4 @@ Vec3 Character::GetGroundVelocity(bool inLockBodies) const
 	return sGetBodyInterface(mSystem, inLockBodies).GetPointVelocity(mGroundBodyID, mGroundPosition);
 }
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Character/Character.h

@@ -179,4 +179,4 @@ private:
 	RefConst<PhysicsMaterial>			mGroundMaterial;
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

+ 1 - 1
Jolt/Physics/Collision/AABoxCast.h

@@ -14,4 +14,4 @@ struct AABoxCast
 	Vec3						mDirection;					///< Direction and length of the cast (anything beyond this length will not be reported as a hit)
 };
 
-JPH_NAMESPACE_END
+JPH_NAMESPACE_END

Some files were not shown because too many files changed in this diff