Sort include files

This commit is contained in:
Nomango 2020-01-21 11:05:28 +08:00
parent 1669e0d94e
commit 227bdb4ed1
25 changed files with 38 additions and 40 deletions

View File

@ -71,7 +71,7 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: false
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
ReflowComments: true
SortIncludes: true
SortIncludes: false
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false

View File

@ -1,13 +1,14 @@
// Copyright (C) 2019 Nomango
#include <kiwano-imgui/ImGuiModule.h>
#include <kiwano-imgui/imgui_impl.h>
#include <kiwano/core/Common.h>
#include <kiwano/core/event/KeyEvent.h>
#include <kiwano/core/event/MouseEvent.h>
#include <kiwano/platform/Input.h>
#include <kiwano/platform/Window.h>
#include <kiwano/render/Renderer.h>
#include <kiwano-imgui/ImGuiModule.h>
#include <kiwano-imgui/imgui_impl.h>
namespace kiwano
{

View File

@ -3,8 +3,8 @@
#include <kiwano-imgui/imgui_impl_dx10.h>
// DirectX
#include <d3d10.h>
#include <d3d10_1.h>
#include <d3d10.h>
#include <d3dcompiler.h>
#include <stdio.h>

View File

@ -18,14 +18,14 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#include <3rd-party/curl/curl.h> // CURL
#include <codecvt>
#include <kiwano-network/HttpClient.h>
#include <kiwano-network/HttpRequest.h>
#include <kiwano-network/HttpResponse.hpp>
#include <thread>
#include <kiwano/core/Logger.h>
#include <kiwano/platform/Application.h>
#include <thread>
#include <kiwano-network/HttpRequest.h>
#include <kiwano-network/HttpResponse.hpp>
#include <kiwano-network/HttpClient.h>
#include <3rd-party/curl/curl.h> // CURL
namespace
{

View File

@ -19,7 +19,6 @@
// THE SOFTWARE.
#pragma once
#include <kiwano/core/Keys.h>
#include <kiwano/core/SmartPtr.hpp>
#include <kiwano/core/event/EventType.h>
#include <kiwano/math/math.h>

View File

@ -151,8 +151,7 @@ public:
static inline RectT Infinite()
{
return RectT{ -math::constants::FLOAT_MAX, -math::constants::FLOAT_MAX, math::constants::FLOAT_MAX,
math::constants::FLOAT_MAX };
return RectT{ -math::FLOAT_MAX, -math::FLOAT_MAX, math::FLOAT_MAX, math::FLOAT_MAX };
}
};
} // namespace math

View File

@ -21,6 +21,7 @@
#pragma once
#include <kiwano/core/Common.h>
#include <kiwano/core/Component.h>
#include <kiwano/core/Keys.h>
#include <kiwano/core/event/Event.h>
#include <kiwano/macros.h>
#include <kiwano/math/math.h>

View File

@ -20,7 +20,7 @@
#pragma once
#include <kiwano/core/ObjectBase.h>
#include <kiwano/render/dx/D2DDeviceResources.h>
#include <kiwano/render/DirectX/D2DDeviceResources.h>
namespace kiwano
{

View File

@ -18,8 +18,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#include <kiwano/render/DirectX/D2DDeviceResources.h>
#include <kiwano/core/Logger.h>
#include <kiwano/render/dx/D2DDeviceResources.h>
#pragma comment(lib, "d2d1.lib")
#pragma comment(lib, "dwrite.lib")

View File

@ -19,11 +19,11 @@
// THE SOFTWARE.
#pragma once
#include <kiwano/core/Resource.h>
#include <kiwano/render/DirectX/helper.h>
#include <d2d1.h>
#include <d2d1_1.h>
#include <dwrite.h>
#include <kiwano/core/Resource.h>
#include <kiwano/render/dx/helper.h>
namespace kiwano
{

View File

@ -19,7 +19,7 @@
// THE SOFTWARE.
#include <kiwano/core/Logger.h>
#include <kiwano/render/dx/D3D10DeviceResources.h>
#include <kiwano/render/DirectX/D3D10DeviceResources.h>
#pragma comment(lib, "d3d10_1.lib")

View File

@ -19,11 +19,10 @@
// THE SOFTWARE.
#pragma once
#include <d3d10_1.h>
#include <kiwano/macros.h>
#include <kiwano/render/dx/D3DDeviceResourcesBase.h>
#include <kiwano/render/dx/helper.h>
#include <kiwano/render/DirectX/helper.h>
#include <kiwano/render/DirectX/D3DDeviceResourcesBase.h>
#include <d3d10_1.h>
namespace kiwano
{

View File

@ -19,7 +19,7 @@
// THE SOFTWARE.
#include <kiwano/core/Logger.h>
#include <kiwano/render/dx/D3D11DeviceResources.h>
#include <kiwano/render/DirectX/D3D11DeviceResources.h>
#pragma warning(push)
#pragma warning(disable : 4800)

View File

@ -19,11 +19,10 @@
// THE SOFTWARE.
#pragma once
#include <d3d11.h>
#include <kiwano/macros.h>
#include <kiwano/render/dx/D3DDeviceResourcesBase.h>
#include <kiwano/render/dx/helper.h>
#include <kiwano/render/DirectX/helper.h>
#include <kiwano/render/DirectX/D3DDeviceResourcesBase.h>
#include <d3d11.h>
namespace kiwano
{

View File

@ -18,7 +18,7 @@
// _Out_ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#include <kiwano/render/dx/FontCollectionLoader.h>
#include <kiwano/render/DirectX/FontCollectionLoader.h>
namespace kiwano
{

View File

@ -19,7 +19,7 @@
// THE SOFTWARE.
#pragma once
#include <kiwano/render/dx/D2DDeviceResources.h>
#include <kiwano/render/DirectX/D2DDeviceResources.h>
namespace kiwano
{

View File

@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#include <kiwano/render/dx/TextRenderer.h>
#include <kiwano/render/DirectX/TextRenderer.h>
namespace kiwano
{

View File

@ -19,7 +19,7 @@
// THE SOFTWARE.
#pragma once
#include <kiwano/render/dx/D2DDeviceResources.h>
#include <kiwano/render/DirectX/D2DDeviceResources.h>
namespace kiwano
{

View File

@ -19,11 +19,11 @@
// THE SOFTWARE.
#pragma once
#include <d2d1.h>
#include <kiwano/math/math.h>
#include <kiwano/render/Color.h>
#include <kiwano/platform/win32/ComPtr.hpp>
#include <kiwano/platform/win32/helper.h>
#include <kiwano/render/Color.h>
#include <d2d1.h>
namespace kiwano
{

View File

@ -19,10 +19,10 @@
// THE SOFTWARE.
#pragma once
#include <dwrite.h>
#include <kiwano/core/ObjectBase.h>
#include <kiwano/core/Resource.h>
#include <kiwano/platform/win32/ComPtr.hpp>
#include <dwrite.h>
namespace kiwano
{

View File

@ -19,7 +19,7 @@
// THE SOFTWARE.
#pragma once
#include <kiwano/render/dx/D2DDeviceResources.h>
#include <kiwano/render/DirectX/D2DDeviceResources.h>
namespace kiwano
{

View File

@ -26,7 +26,7 @@
#include <kiwano/render/LayerArea.h>
#include <kiwano/render/TextLayout.h>
#include <kiwano/render/Texture.h>
#include <kiwano/render/dx/TextRenderer.h>
#include <kiwano/render/DirectX/TextRenderer.h>
namespace kiwano
{

View File

@ -25,12 +25,12 @@
#include <kiwano/render/GifImage.h>
#include <kiwano/render/RenderContext.h>
#include <kiwano/render/TextStyle.hpp>
#include <kiwano/render/dx/FontCollectionLoader.h>
#include <kiwano/render/DirectX/FontCollectionLoader.h>
#if defined(KGE_USE_DIRECTX10)
#include <kiwano/render/dx/D3D10DeviceResources.h>
#include <kiwano/render/DirectX/D3D10DeviceResources.h>
#else
#include <kiwano/render/dx/D3D11DeviceResources.h>
#include <kiwano/render/DirectX/D3D11DeviceResources.h>
#endif
namespace kiwano

View File

@ -19,7 +19,7 @@
// THE SOFTWARE.
#pragma once
#include <kiwano/render/dx/D2DDeviceResources.h>
#include <kiwano/render/DirectX/D2DDeviceResources.h>
namespace kiwano
{

View File

@ -20,7 +20,7 @@
#pragma once
#include <kiwano/core/ObjectBase.h>
#include <kiwano/render/dx/D2DDeviceResources.h>
#include <kiwano/render/DirectX/D2DDeviceResources.h>
namespace kiwano
{