Skip to content

Commit 86f55eb

Browse files
committed
Fix clang tidy
1 parent d0ce55f commit 86f55eb

7 files changed

Lines changed: 11 additions & 1 deletion

File tree

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Checks: >
4444
cppcoreguidelines-slicing,
4545
cppcoreguidelines-virtual-class-destructor,
4646
misc-*,
47+
-misc-include-cleaner,
4748
-misc-const-correctness,
4849
-misc-no-recursion,
4950
-misc-non-private-member-variables-in-classes,

.clangd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Style:
2+
AngledHeaders: ["twbl/.*", "bots/.*"]

src/bots/base.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include <cstdio>
22

33
#include <bots/base.h>
4+
#include <twbl/teeworlds/base/vmath.h>
5+
#include <twbl/teeworlds/character.h>
46
#include <twbl/teeworlds/protocol.h>
57
#include <twbl/types.h>
68

src/bots/engine_sample/engine_sample.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#include <twbl/state.h>
2+
#include <twbl/teeworlds/base/system.h>
3+
14
#include "engine_sample.h"
25

36
#include <bots/def_macros.h>

src/bots/follow/follow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <bots/base.h>
66

77
#include <twbl/state.h>
8+
#include <twbl/teeworlds/base/system.h>
89
#include <twbl/teeworlds/character.h>
910
#include <twbl/teeworlds/player.h>
1011
#include <twbl/types.h>

src/engines/base_engine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <bots/base.h>
22
#include <twbl/teeworlds/collision.h>
3+
#include <twbl/teeworlds/player.h>
34

45
#include "base_engine.h"
56

src/tools/twbl_probe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// TODO: windows https://github.com/dlfcn-win32/dlfcn-win32
22

33
#include <twbl/teeworlds/base/detect.h>
4+
#include <twbl/teeworlds/collision.h>
45

56
#ifdef CONF_FAMILY_WINDOWS
67

@@ -12,7 +13,6 @@ int main() { return 0; }
1213
#include <cstdlib>
1314
#include <cstring>
1415
#include <dlfcn.h>
15-
#include <sys/stat.h>
1616

1717
#include <twbl/types.h>
1818

0 commit comments

Comments
 (0)