Skip to content

Commit

Permalink
Should be all the includes fixed!
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Dec 26, 2024
1 parent 9c9ef96 commit 286b263
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ CheckOptions:
value: google
- key: readability-braces-around-statements.ShortStatementLines
value: "1"
- key: misc-include-cleaner.IgnoreHeaders
value: "asm-generic/.*;bits/.*"
2 changes: 1 addition & 1 deletion src/nuclear.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
#include "${nuclear_include_base_directory}extension/TraceController.hpp"

// Publicly available utilities
#include "${nuclear_include_base_directory}util/demangle.hpp"
#include "${nuclear_include_base_directory}dsl/operation/ChronoTask.hpp"
#include "${nuclear_include_base_directory}util/demangle.hpp"

// IWYU pragma: end_exports

Expand Down
2 changes: 2 additions & 0 deletions src/util/precise_sleep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include "precise_sleep.hpp"

#include <time.h> // NOLINT(modernize-deprecated-headers) Technically nanosleep lives in time.h not ctime

#include <chrono>
#include <ctime>

Expand Down
5 changes: 3 additions & 2 deletions src/util/usage_clock.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include "usage_clock.hpp"

#include <time.h> // NOLINT(modernize-deprecated-headers) Technically clock_gettime lives in time.h not ctime

#include <chrono>
#include <ctime>

// Windows
#if defined(_WIN32)
Expand Down Expand Up @@ -28,8 +31,6 @@ namespace util {

#else

#include <ctime>

namespace NUClear {
namespace util {

Expand Down

0 comments on commit 286b263

Please sign in to comment.