Header cleanup using include-what-you-use

This commit is contained in:
Danny Robson 2020-07-01 17:02:44 +10:00
parent 457effabf5
commit 837b948435
19 changed files with 14 additions and 34 deletions

View File

@ -6,9 +6,9 @@
* Copyright 2015-2019 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2019 Danny Robson <danny@nerdcruft.net>
*/ */
#include <array>
#include <cstddef> #include <cstddef>
#include <iterator> #include <iterator>
#include <tuple>
namespace cruft::adapter { namespace cruft::adapter {

View File

@ -6,7 +6,6 @@
* Copyright 2013-2016 Danny Robson <danny@nerdcruft.net> * Copyright 2013-2016 Danny Robson <danny@nerdcruft.net>
*/ */
#ifndef CRUFT_UTIL_CMDLINE_HPP #ifndef CRUFT_UTIL_CMDLINE_HPP
#define CRUFT_UTIL_CMDLINE_HPP #define CRUFT_UTIL_CMDLINE_HPP
@ -17,7 +16,6 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <string> #include <string>
#include <tuple>
#include <vector> #include <vector>
#include <map> #include <map>
#include <sstream> #include <sstream>

View File

@ -10,9 +10,7 @@
#define __UTIL_COLOUR_HPP #define __UTIL_COLOUR_HPP
#include "coord.hpp" #include "coord.hpp"
#include "introspection.hpp"
#include <ostream>
#include <type_traits> #include <type_traits>

View File

@ -11,7 +11,6 @@
#include "cpp.hpp" #include "cpp.hpp"
#include "io.hpp" #include "io.hpp"
#include "cast.hpp"
using cruft::cpp::include; using cruft::cpp::include;
using cruft::cpp::passthrough; using cruft::cpp::passthrough;

View File

@ -12,7 +12,6 @@
#include "../view.hpp" #include "../view.hpp"
#include <cstdint> #include <cstdint>
#include <array>
namespace cruft::encode { namespace cruft::encode {

View File

@ -10,14 +10,13 @@
#include "std.hpp" #include "std.hpp"
#include "types/bits.hpp" #include "types/bits.hpp"
#include "cast.hpp"
#include <compare>
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
#include <iosfwd> #include <iosfwd>
#include <type_traits> #include <type_traits>
namespace cruft { namespace cruft {
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// CXX: Update using "if constexpr" when available. It doesn't seem to be // CXX: Update using "if constexpr" when available. It doesn't seem to be

View File

@ -11,7 +11,6 @@
#include "types/bits.hpp" #include "types/bits.hpp"
#include "maths.hpp" #include "maths.hpp"
#include "endian.hpp"
#include <iosfwd> #include <iosfwd>

View File

@ -12,8 +12,6 @@
#include "../extent.hpp" #include "../extent.hpp"
#include "../point.hpp" #include "../point.hpp"
#include <cstdint>
namespace cruft::geom { namespace cruft::geom {
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////

View File

@ -10,7 +10,7 @@
#include "../point.hpp" #include "../point.hpp"
#include "../vector.hpp" #include "../vector.hpp"
#include "../matrix.hpp"
namespace cruft::geom { namespace cruft::geom {
/// represents an S dimensional plane in parametric form: ax + by + cz + d = 0 /// represents an S dimensional plane in parametric form: ax + by + cz + d = 0

View File

@ -6,13 +6,13 @@
* Copyright 2015-2018 Danny Robson <danny@nerdcruft.net> * Copyright 2015-2018 Danny Robson <danny@nerdcruft.net>
*/ */
#ifndef __UTIL_GEOM_RAY_HPP #pragma once
#define __UTIL_GEOM_RAY_HPP
#include "aabb.hpp" #include "aabb.hpp"
#include "plane.hpp" #include "plane.hpp"
#include "../vector.hpp" #include "../vector.hpp"
#include "../point.hpp" #include "../point.hpp"
#include "../matrix.hpp"
#include <iosfwd> #include <iosfwd>
@ -134,5 +134,3 @@ namespace cruft::geom {
std::ostream& std::ostream&
operator<< (std::ostream&, ray<S,T>); operator<< (std::ostream&, ray<S,T>);
} }
#endif

View File

@ -9,7 +9,6 @@
#pragma once #pragma once
#include "std.hpp" #include "std.hpp"
#include "variadic.hpp"
#include "algo/search.hpp" #include "algo/search.hpp"
#include <cruft/util/preprocessor.hpp> #include <cruft/util/preprocessor.hpp>
@ -18,7 +17,6 @@
#include <array> #include <array>
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
#include <filesystem>
#include <ostream> #include <ostream>
#include <string> #include <string>
#include <string_view> #include <string_view>

View File

@ -19,15 +19,12 @@
#include "../parallel/queue.hpp" #include "../parallel/queue.hpp"
#include <array>
#include <deque>
#include <vector>
#include <new>
#include <cstddef>
#include <functional>
#include <atomic> #include <atomic>
#include <mutex> #include <cstddef>
#include <condition_variable> #include <deque>
#include <functional>
#include <new>
#include <vector>
namespace cruft::job { namespace cruft::job {

View File

@ -12,7 +12,6 @@
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <filesystem>
namespace cruft::log::sink { namespace cruft::log::sink {

View File

@ -10,7 +10,6 @@
#include "../debug/assert.hpp" #include "../debug/assert.hpp"
#include <array>
#include <utility> #include <utility>
#include <stdexcept> #include <stdexcept>
#include <functional> #include <functional>

View File

@ -14,9 +14,9 @@
#include "maths.hpp" #include "maths.hpp"
#include "view.hpp" #include "view.hpp"
#include <algorithm>
#include <type_traits> #include <type_traits>
namespace cruft { namespace cruft {
/// An n-dimensional position in space. /// An n-dimensional position in space.
/// ///

View File

@ -11,10 +11,10 @@
#include "types/traits.hpp" #include "types/traits.hpp"
#include "debug/assert.hpp" #include "debug/assert.hpp"
#include <algorithm>
#include <functional> #include <functional>
#include <list> #include <list>
namespace cruft { namespace cruft {
namespace reduce { namespace reduce {
/// Returns the short-circuited logical-and of the results of all /// Returns the short-circuited logical-and of the results of all

View File

@ -10,8 +10,9 @@
#define __UTIL_STREAM_HPP #define __UTIL_STREAM_HPP
#include <iosfwd> #include <iosfwd>
#include <iomanip>
#include <cstdint> #include <cstdint>
#include <ostream>
namespace cruft::stream { namespace cruft::stream {
namespace scoped { namespace scoped {

View File

@ -11,7 +11,6 @@
#include "cast.hpp" #include "cast.hpp"
#include "types/traits.hpp" #include "types/traits.hpp"
#include <limits>
#include <type_traits> #include <type_traits>
#include <iosfwd> #include <iosfwd>

View File

@ -10,7 +10,6 @@
#include <atomic> #include <atomic>
#include <cstdint>
namespace cruft { namespace cruft {
namespace detail { namespace detail {