diff --git a/.clang-tidy b/.clang-tidy index 2049fa2d..15aa6d02 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -71,3 +71,5 @@ CheckOptions: value: google - key: readability-braces-around-statements.ShortStatementLines value: "1" + - key: misc-include-cleaner.IgnoreHeaders + value: "asm-generic/.*;bits/.*" diff --git a/src/nuclear.in b/src/nuclear.in index c6df5860..eb630cb7 100644 --- a/src/nuclear.in +++ b/src/nuclear.in @@ -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 diff --git a/src/util/precise_sleep.cpp b/src/util/precise_sleep.cpp index e803ca4c..83d9957a 100644 --- a/src/util/precise_sleep.cpp +++ b/src/util/precise_sleep.cpp @@ -22,6 +22,8 @@ #include "precise_sleep.hpp" +#include // NOLINT(modernize-deprecated-headers) Technically nanosleep lives in time.h not ctime + #include #include diff --git a/src/util/usage_clock.cpp b/src/util/usage_clock.cpp index 825365f3..32b36551 100644 --- a/src/util/usage_clock.cpp +++ b/src/util/usage_clock.cpp @@ -1,6 +1,9 @@ #include "usage_clock.hpp" +#include // NOLINT(modernize-deprecated-headers) Technically clock_gettime lives in time.h not ctime + #include +#include // Windows #if defined(_WIN32) @@ -28,8 +31,6 @@ namespace util { #else - #include - namespace NUClear { namespace util {