Skip to content

Commit

Permalink
Add missing include directives
Browse files Browse the repository at this point in the history
  • Loading branch information
k0zmo committed Sep 25, 2020
1 parent 2ed6b93 commit db64ab5
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 6 deletions.
5 changes: 5 additions & 0 deletions include/kl/enum_range.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#pragma once

#include "kl/enum_traits.hpp"
#include "kl/utility.hpp"

#include <boost/iterator/iterator_categories.hpp>
#include <boost/iterator/iterator_facade.hpp>

#include <cstddef>
#include <type_traits>

namespace kl {

template <typename Enum>
Expand Down
3 changes: 2 additions & 1 deletion include/kl/enum_traits.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#pragma once

#include "kl/type_traits.hpp"
#include "kl/utility.hpp"

#include <cstddef>
#include <type_traits>
#include <utility>

namespace kl {
Expand Down
1 change: 0 additions & 1 deletion include/kl/file_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <gsl/span>

#include <cstddef>
#include <memory>

namespace kl {

Expand Down
7 changes: 6 additions & 1 deletion include/kl/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@
#undef GetObject
#endif

#include <rapidjson/allocators.h>
#include <rapidjson/document.h>
#include <rapidjson/error/error.h>
#include <rapidjson/error/en.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>

#include <optional>
#include <cstdint>
#include <exception>
#include <optional>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>

namespace kl::json {

Expand Down
6 changes: 5 additions & 1 deletion include/kl/match.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

#include "kl/type_traits.hpp"

#include <boost/variant.hpp>
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/static_visitor.hpp>

#include <type_traits>
#include <utility>

namespace kl {
namespace detail {
Expand Down
4 changes: 3 additions & 1 deletion include/kl/yaml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

#include <yaml-cpp/yaml.h>

#include <optional>
#include <exception>
#include <optional>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>

namespace kl::yaml {

Expand Down
2 changes: 2 additions & 0 deletions src/base64.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "kl/base64.hpp"
#include "kl/utility.hpp"

#include <cstring>

namespace kl {

std::string base64_encode(gsl::span<const std::byte> s)
Expand Down
4 changes: 3 additions & 1 deletion src/file_view_unix.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#include "kl/file_view.hpp"

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>

#include <system_error>
#include <cassert>
#include <cstddef>
#include <utility>
#include <errno.h>

namespace kl {
namespace {
Expand Down
2 changes: 2 additions & 0 deletions src/json.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "kl/json.hpp"
#include "kl/describe_enum.hpp"

#include <iterator>

namespace rapidjson {

KL_DESCRIBE_ENUM(Type, kNullType, kFalseType, kTrueType, kObjectType,
Expand Down
2 changes: 2 additions & 0 deletions src/yaml.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "kl/yaml.hpp"
#include "kl/describe_enum.hpp"

#include <iterator>

namespace YAML {

KL_DESCRIBE_ENUM(NodeType::value, Undefined, Null, Scalar, Sequence, Map)
Expand Down
2 changes: 2 additions & 0 deletions tests/enum_range_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <catch2/catch.hpp>

#include <vector>

namespace {
namespace ns {
namespace inner {
Expand Down
1 change: 1 addition & 0 deletions tests/enum_reflector_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <boost/optional/optional_io.hpp>

#include <string>
#include <string_view>

namespace {
namespace ns {
Expand Down
2 changes: 2 additions & 0 deletions tests/file_view_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "kl/file_view.hpp"

#include <catch2/catch.hpp>

#include <fstream>
#include <stdexcept>
#include <string>

TEST_CASE("file_view")
Expand Down
2 changes: 2 additions & 0 deletions tests/match_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <catch2/catch.hpp>

#include <boost/variant.hpp>

namespace test {

bool foo(int) { return true; }
Expand Down

0 comments on commit db64ab5

Please sign in to comment.