Style: Harmonize header includes in modules

This applies our existing style guide, and adds a new rule to that style
guide for modular components such as platform ports and modules:

Includes from the platform port or module ("local" includes) should be listed
first in their own block using relative paths, before Godot's "core" includes
which use "absolute" (project folder relative) paths, and finally thirdparty
includes.

Includes in `#ifdef`s come after their relevant section, i.e. the overall
structure is:

- Local includes
  * Conditional local includes
- Core includes
  * Conditional core includes
- Thirdparty includes
  * Conditional thirdparty includes
This commit is contained in:
Rémi Verschelde
2023-06-13 16:56:21 +02:00
parent 7734146060
commit 25b2f1780a
217 changed files with 572 additions and 415 deletions
+2 -2
View File
@@ -31,9 +31,9 @@
#ifndef TEST_FASTNOISE_LITE_H
#define TEST_FASTNOISE_LITE_H
#include "tests/test_macros.h"
#include "../fastnoise_lite.h"
#include "modules/noise/fastnoise_lite.h"
#include "tests/test_macros.h"
namespace TestFastNoiseLite {
+2 -2
View File
@@ -31,9 +31,9 @@
#ifndef TEST_NOISE_TEXTURE_2D_H
#define TEST_NOISE_TEXTURE_2D_H
#include "tests/test_macros.h"
#include "../noise_texture_2d.h"
#include "modules/noise/noise_texture_2d.h"
#include "tests/test_macros.h"
namespace TestNoiseTexture2D {
+2 -2
View File
@@ -31,9 +31,9 @@
#ifndef TEST_NOISE_TEXTURE_3D_H
#define TEST_NOISE_TEXTURE_3D_H
#include "tests/test_macros.h"
#include "../noise_texture_3d.h"
#include "modules/noise/noise_texture_3d.h"
#include "tests/test_macros.h"
namespace TestNoiseTexture3D {