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:
parent
7734146060
commit
25b2f1780a
217 changed files with 572 additions and 415 deletions
|
|
@ -60,6 +60,9 @@ SOFTWARE.
|
|||
|
||||
#include "hostfxr_resolver.h"
|
||||
|
||||
#include "../utils/path_utils.h"
|
||||
#include "semver.h"
|
||||
|
||||
#include "core/config/engine.h"
|
||||
#include "core/io/dir_access.h"
|
||||
#include "core/io/file_access.h"
|
||||
|
|
@ -70,9 +73,6 @@ SOFTWARE.
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "../utils/path_utils.h"
|
||||
#include "semver.h"
|
||||
|
||||
// We don't use libnethost as it gives us issues with some compilers.
|
||||
// This file tries to mimic libnethost's hostfxr_resolver search logic. We try to use the
|
||||
// same function names for easier comparing in case we need to update this in the future.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue