Skip to content

Commit c5ac990

Browse files
authored
Merge pull request #88 from sourcehold/project/add-include-formatting
[PROJECT] Update clang-format include formatting
2 parents 70b6f36 + 6fcdd2e commit c5ac990

18 files changed

Lines changed: 42 additions & 25 deletions

.clang-format

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,24 @@ SpaceInEmptyBraces: Never
99
PointerAlignment: Left
1010
QualifierAlignment: Custom
1111
QualifierOrder: [inline, static, type, const, volatile]
12+
IncludeBlocks: Regroup
13+
IncludeCategories:
14+
- Regex: ^"\.\./.*\.hpp"$
15+
Priority: 0
16+
SortPriority: 0
17+
- Regex: ^"OpenSHC/.*func\.hpp"$
18+
Priority: 1
19+
SortPriority: 1
20+
- Regex: ^"OpenSHC/Globals/.*"$
21+
Priority: 2
22+
SortPriority: 3
23+
- Regex: ^"OpenSHC/.*"$
24+
Priority: 1
25+
SortPriority: 2
26+
- Regex: ^".*"$
27+
Priority: 3
28+
SortPriority: 4
29+
- Regex: .*
30+
Priority: 3
31+
SortPriority: 5
1232
...

src/OpenSHC/AI/AICState/setFoodBuyPlan.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#include "OpenSHC/AI/AICState.hpp"
1+
#include "../AICState.func.hpp"
2+
23
#include "OpenSHC/AI/AITypeA.hpp"
34
#include "OpenSHC/Game/Resources/ResourceType.hpp"
5+
46
#include "OpenSHC/Globals/DAT_AICState.hpp"
57
#include "OpenSHC/Globals/DAT_GameState.hpp"
68

src/OpenSHC/AI/AIVState/setupAIVMetadata.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
#include "../AIVState.func.hpp"
2+
13
#include "OpenSHC/AI/AICState.func.hpp"
2-
#include "OpenSHC/AI/AIVState.hpp"
4+
35
#include "OpenSHC/Globals/DAT_AICState.hpp"
46
#include "OpenSHC/Globals/DAT_GameState.hpp"
57

src/OpenSHC/Audio/mss/SoundSystem/deactivateSoundFromMenuFuncUnk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
1+
#include "../SoundSystem.func.hpp"
22

33
namespace OpenSHC {
44
namespace Audio {

src/OpenSHC/Audio/mss/SoundSystem/endSoundStreamsUnk.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#include "OpenSHC/Audio/MSS/SoundSystem.hpp"
2-
3-
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
1+
#include "../SoundSystem.func.hpp"
42

53
#include "OpenSHC/Audio/MSS/enums/SHC_SoundStream.hpp"
64

src/OpenSHC/Audio/mss/SoundSystem/getAndUpdateSampleStatus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
1+
#include "../SoundSystem.func.hpp"
22

33
namespace OpenSHC {
44
namespace Audio {

src/OpenSHC/Audio/mss/SoundSystem/isSampleOrStreamPlaying.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "OpenSHC/Audio/MSS/SoundSystem.hpp"
1+
#include "../SoundSystem.func.hpp"
22

33
namespace OpenSHC {
44
namespace Audio {

src/OpenSHC/Audio/mss/SoundSystem/meth_0x424700.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#include "OpenSHC/Audio/MSS/SoundSystem.hpp"
2-
3-
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
1+
#include "../SoundSystem.func.hpp"
42

53
#include "OpenSHC/Audio/MSS/enums/SHC_SoundStream.hpp"
64

src/OpenSHC/Audio/mss/SoundSystem/setStreamAndSampleVolumeUnk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "OpenSHC/Audio/mss/SoundSystem.func.hpp"
1+
#include "../SoundSystem.func.hpp"
22

33
namespace OpenSHC {
44
namespace Audio {

src/OpenSHC/Audio/mss/SoundSystem/setVolumeUnk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
1+
#include "../SoundSystem.func.hpp"
22

33
namespace OpenSHC {
44
namespace Audio {

0 commit comments

Comments
 (0)