diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-13 16:56:21 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-15 14:35:45 +0200 |
commit | 25b2f1780a9c7d7ae5579cc87c89b0c7e2baa14d (patch) | |
tree | 40d2d50d34c175da3b7c5123e8918cc5816bd32b /modules/noise/tests | |
parent | 773414606079fa745d1c37fce49324ab6a09e972 (diff) | |
download | redot-engine-25b2f1780a9c7d7ae5579cc87c89b0c7e2baa14d.tar.gz |
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
Diffstat (limited to 'modules/noise/tests')
-rw-r--r-- | modules/noise/tests/test_fastnoise_lite.h | 4 | ||||
-rw-r--r-- | modules/noise/tests/test_noise_texture_2d.h | 4 | ||||
-rw-r--r-- | modules/noise/tests/test_noise_texture_3d.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/modules/noise/tests/test_fastnoise_lite.h b/modules/noise/tests/test_fastnoise_lite.h index 0a435c6a5c..6e2e263e03 100644 --- a/modules/noise/tests/test_fastnoise_lite.h +++ b/modules/noise/tests/test_fastnoise_lite.h @@ -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 { diff --git a/modules/noise/tests/test_noise_texture_2d.h b/modules/noise/tests/test_noise_texture_2d.h index 9e280b5d97..e2ec39ef48 100644 --- a/modules/noise/tests/test_noise_texture_2d.h +++ b/modules/noise/tests/test_noise_texture_2d.h @@ -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 { diff --git a/modules/noise/tests/test_noise_texture_3d.h b/modules/noise/tests/test_noise_texture_3d.h index b46d386296..a612f2920a 100644 --- a/modules/noise/tests/test_noise_texture_3d.h +++ b/modules/noise/tests/test_noise_texture_3d.h @@ -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 { |