build: use more explicit headers

This commit is contained in:
Danny Robson 2021-01-20 14:18:25 +10:00
parent 2a16ac4163
commit dd1e9bbbd7
8 changed files with 14 additions and 8 deletions

View File

@ -11,9 +11,11 @@
#include "annotation.hpp"
#include "debug/assert.hpp"
#include <array>
#include <cstdint>
#include <stdexcept>
namespace cruft::ascii {
///////////////////////////////////////////////////////////////////////////
/// Returns true if the supplied character is an ASCII digit.

View File

@ -10,7 +10,9 @@
#include "debug/assert.hpp"
#include <tuple>
#include <type_traits>
#include <cstdint>

View File

@ -18,6 +18,7 @@
#include <limits>
#include <cstring>
#include <cmath>
namespace cruft::cast {

View File

@ -8,9 +8,10 @@
#pragma once
#include "./panic.hpp"
#include "../platform.hpp"
#include "../maths.hpp"
//#include "maths.hpp" // XXX: See notes at the end of file for maths.hpp inclusion
#include "debugger.hpp"
#include <utility>
@ -422,10 +423,3 @@ warn_return (
warn (message);
return std::forward<ValueT> (value);
}
///////////////////////////////////////////////////////////////////////////////
// XXX: maths needs to be included so that CHECK_EQ/NEQ can call almost_equal,
// but maths.hpp might be using CHECK_ macros so we must include maths.hpp
// after we define the CHECK_ macros so the preprocessor can resolve them.
#include "../maths.hpp"

View File

@ -7,6 +7,9 @@
*/
#pragma once
#include "./assert.hpp"
///////////////////////////////////////////////////////////////////////////////
namespace cruft::debug {
///////////////////////////////////////////////////////////////////////////

View File

@ -13,6 +13,7 @@
#include "../view.hpp"
#include "../introspection/name.hpp"
#include "../log.hpp"
#include "../typeidx.hpp"
#include <map>

View File

@ -9,6 +9,7 @@
#include "description.hpp"
#include "../debug/assert.hpp"
#include "../maths.hpp"
///////////////////////////////////////////////////////////////////////////////

View File

@ -978,6 +978,8 @@ namespace cruft {
}
#include "debug/validate.hpp"
namespace cruft::debug {
///////////////////////////////////////////////////////////////////////////
template <typename IteratorT, typename ...ArgsT>