Skip to content

Commit

Permalink
Organize include order of headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightkingale committed Apr 30, 2024
1 parent 48536d7 commit f6ff2c5
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 23 deletions.
1 change: 0 additions & 1 deletion source/cfg.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT

#include "cfg.hpp"

#include "utc.hpp"
#include "wupsxx/storage.hpp"

Expand Down
10 changes: 4 additions & 6 deletions source/config_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

#include <memory> // make_unique()

#include "wupsxx/bool_item.hpp"
#include "wupsxx/int_item.hpp"
#include "wupsxx/text_item.hpp"

#include "config_screen.hpp"

#include "cfg.hpp"
#include "config_screen.hpp"
#include "http_client.hpp"
#include "nintendo_glyphs.hpp"
#include "utils.hpp"
#include "wupsxx/bool_item.hpp"
#include "wupsxx/int_item.hpp"
#include "wupsxx/text_item.hpp"


using wups::bool_item;
Expand Down
7 changes: 2 additions & 5 deletions source/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,15 @@
#include <thread>
#include <vector>

// WUT/WUPS headers
// WUT/WUPS and unix headers
#include <coreinit/time.h>
#include <nn/ccr.h> // CCRSysSetSystemTime()
#include <nn/pdm.h> // __OSSetAbsoluteSystemTime()

// unix headers
#include <sys/select.h> // select()
#include <sys/socket.h> // connect(), send(), recv()

#include "core.hpp"

#include "cfg.hpp"
#include "core.hpp"
#include "limited_async.hpp"
#include "log.hpp"
#include "ntp.hpp"
Expand Down
1 change: 0 additions & 1 deletion source/http_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <sys/socket.h> // connect()

#include "http_client.hpp"

#include "utils.hpp"


Expand Down
3 changes: 1 addition & 2 deletions source/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

#include <notifications/notifications.h>

#include "log.hpp"

#include "cfg.hpp"
#include "log.hpp"


void
Expand Down
4 changes: 2 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

// WUT/WUPS headers
#include <notifications/notifications.h>
#include <wups.h>
#include <whb/log_udp.h>
#include <wups.h>

// local headers
#include "cfg.hpp"
#include "config_screen.hpp"
#include "preview_screen.hpp"
#include "core.hpp"
#include "preview_screen.hpp"
#include "wupsxx/config.hpp"


Expand Down
3 changes: 1 addition & 2 deletions source/preview_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
#include <memory>
#include <vector>

#include "preview_screen.hpp"

#include "cfg.hpp"
#include "core.hpp"
#include "log.hpp"
#include "nintendo_glyphs.hpp"
#include "preview_screen.hpp"
#include "utils.hpp"


Expand Down
3 changes: 1 addition & 2 deletions source/wupsxx/bool_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
#include <stdexcept>

#include "bool_item.hpp"
#include "storage.hpp"

#include "nintendo_glyphs.hpp"
#include "storage.hpp"


namespace wups {
Expand Down
3 changes: 1 addition & 2 deletions source/wupsxx/int_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
#include <cstdio>
#include <stdexcept>

#include "nintendo_glyphs.hpp"
#include "wupsxx/int_item.hpp"
#include "wupsxx/storage.hpp"

#include "nintendo_glyphs.hpp"


namespace wups {

Expand Down

0 comments on commit f6ff2c5

Please sign in to comment.