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>
*/
#include <array>
#include <cstddef>
#include <iterator>
#include <tuple>
namespace cruft::adapter {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,7 @@
#include "../point.hpp"
#include "../vector.hpp"
#include "../matrix.hpp"
namespace cruft::geom {
/// 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>
*/
#ifndef __UTIL_GEOM_RAY_HPP
#define __UTIL_GEOM_RAY_HPP
#pragma once
#include "aabb.hpp"
#include "plane.hpp"
#include "../vector.hpp"
#include "../point.hpp"
#include "../matrix.hpp"
#include <iosfwd>
@ -134,5 +134,3 @@ namespace cruft::geom {
std::ostream&
operator<< (std::ostream&, ray<S,T>);
}
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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