Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/fast_type_gen/fast_type_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "hpp_gen.h"
#include "inl_gen.h"
#include "cpp_gen.h"
#include "mfast/coder/common/dictionary_builder.h"
#include "mfast/coder/common/template_repo.h"

#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion src/fast_type_gen/indented_ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// See the file license.txt for licensing information.
#pragma once

#include <ostream>
#include <iomanip>
#include <sstream>
struct indent_t {};
Expand Down
1 change: 0 additions & 1 deletion src/mfast/allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include "allocator.h"
#include <new>
#include "allocator_utils.h"
#include <cstring>

Expand Down
1 change: 0 additions & 1 deletion src/mfast/allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#pragma once

#include <cstddef>
#include <algorithm>
#include "mfast/mfast_export.h"
namespace mfast {
/// An abstract interface for allocators.
Expand Down
2 changes: 1 addition & 1 deletion src/mfast/arena_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "arena_allocator.h"
#include "allocator_utils.h"
#include <cstring>
#include <algorithm>
#include <cstdlib>
#include <new>

namespace mfast {

Expand Down
1 change: 0 additions & 1 deletion src/mfast/arena_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// See the file license.txt for licensing information.
#pragma once

#include <new>
#include <stdint.h>
#include <cassert>
#include <cstddef>
Expand Down
1 change: 0 additions & 1 deletion src/mfast/coder/common/codec_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include "../../string_ref.h"
#include "../../exceptions.h"
#include <stdexcept>

namespace mfast {
namespace detail {
Expand Down
2 changes: 1 addition & 1 deletion src/mfast/coder/common/debug_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#pragma once

#include <iostream>
#include "../../output.h"
#ifdef NDEBUG

struct debug_stream {
Expand All @@ -25,6 +24,7 @@ struct debug_stream {
};

#else
#include "../../output.h"

class debug_stream {
private:
Expand Down
3 changes: 0 additions & 3 deletions src/mfast/coder/common/dictionary_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include "exceptions.h"
#include "template_repo.h"
#include <cstring>
#include <iostream>
#include <sstream>
#include <stdexcept>

namespace mfast {

Expand Down
2 changes: 1 addition & 1 deletion src/mfast/coder/common/dictionary_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include "../mfast_coder_export.h"
#include "../../field_instructions.h"
#include "../../arena_allocator.h"
#include "../../instructions/templates_description.h"
#include <vector>
#include <map>
#include <string>
#include <stdexcept>

#ifdef _MSC_VER
#pragma warning(disable : 4251) // non dll-interface class used as a member for
Expand Down
1 change: 0 additions & 1 deletion src/mfast/coder/decoder/decoder_field_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include "../mfast_coder_export.h"
#include "../common/codec_helper.h"
#include "fast_istream.h"
#include "decoder_presence_map.h"
Expand Down
4 changes: 0 additions & 4 deletions src/mfast/coder/decoder/fast_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include <boost/container/map.hpp>
#include "../mfast_coder_export.h"
#include "../fast_decoder.h"
#include "../../field_visitor.h"
#include "../../sequence_ref.h"
#include "../../malloc_allocator.h"
#include "../../output.h"
#include "../../composite_type.h"
#include "../common/exceptions.h"
#include "../common/debug_stream.h"
#include "../common/template_repo.h"
#include "../common/codec_helper.h"
#include "decoder_presence_map.h"
#include "decoder_field_operator.h"
#include "fast_istream.h"
Expand Down
3 changes: 0 additions & 3 deletions src/mfast/coder/decoder/fast_istreambuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
// See the file license.txt for licensing information.
#pragma once

#include <stdexcept>

#include "../../exceptions.h"
#include <iostream>

namespace mfast {
class fast_istream;
Expand Down
6 changes: 1 addition & 5 deletions src/mfast/coder/decoder_v2/fast_decoder_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@

#include "../mfast_coder_export.h"

#include "../../sequence_ref.h"
#include "../../ext_ref.h"
#include "../../nested_message_ref.h"
#include "../../malloc_allocator.h"
#include "../../output.h"
#include "../../composite_type.h"
#include "../common/exceptions.h"
#include "../common/debug_stream.h"
#include "../common/template_repo.h"
#include "../common/codec_helper.h"
#include "../decoder/decoder_presence_map.h"
#include "../common/codec_helper.h"
#include "../decoder/fast_istream.h"
#include "fast_istream_extractor.h"
#include <tuple>
#include <vector>
namespace mfast {
namespace coder {
Expand Down
1 change: 0 additions & 1 deletion src/mfast/coder/encoder/encoder_field_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// See the file license.txt for licensing information.
#include <iterator>
#include <algorithm>
#include "../mfast_coder_export.h"
#include "../common/codec_helper.h"
#include "fast_ostream.h"
#include "encoder_presence_map.h"
Expand Down
3 changes: 0 additions & 3 deletions src/mfast/coder/encoder/fast_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
//
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include "../mfast_coder_export.h"
#include "../../field_visitor.h"
#include "../../sequence_ref.h"
#include "../../malloc_allocator.h"
#include "../fast_encoder.h"
#include "../common/template_repo.h"
#include "../common/exceptions.h"
#include "../../output.h"
#include "encoder_presence_map.h"
#include "encoder_field_operator.h"
#include "fast_ostream.h"
Expand Down
2 changes: 1 addition & 1 deletion src/mfast/coder/encoder/fast_ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// See the file license.txt for licensing information.
#pragma once

#include "../../field_instructions.h"
#include "../common/codec_helper.h"
#include "fast_ostreambuf.h"
#include <limits>

namespace mfast {
class encoder_presence_map;
Expand Down
3 changes: 2 additions & 1 deletion src/mfast/coder/encoder/fast_ostreambuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
//
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include <cstring>
#include <algorithm>
#include <cassert>
#include <cstring>
#include "fast_ostreambuf.h"

namespace mfast {
Expand Down
2 changes: 1 addition & 1 deletion src/mfast/coder/encoder/fast_ostreambuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <stdexcept>
#include "../mfast_coder_export.h"
#include "../../exceptions.h"
#include <boost/exception/all.hpp>

namespace mfast {
class buffer_overflow_error : public virtual boost::exception,
Expand Down
1 change: 1 addition & 0 deletions src/mfast/coder/encoder_v2/fast_encoder_core.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "fast_encoder_core.h"
#include "../common/exceptions.h"

namespace mfast {
namespace coder {
Expand Down
3 changes: 0 additions & 3 deletions src/mfast/coder/encoder_v2/fast_encoder_core.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#pragma once

#include "../mfast_coder_export.h"
#include "../../sequence_ref.h"
#include "../../enum_ref.h"
#include "../../nested_message_ref.h"
#include "../../malloc_allocator.h"
#include "../common/template_repo.h"
#include "../common/exceptions.h"
#include "../encoder/fast_ostream.h"
#include "../encoder/resizable_fast_ostreambuf.h"
#include "../encoder/encoder_presence_map.h"
Expand Down
1 change: 0 additions & 1 deletion src/mfast/coder/encoder_v2/fast_ostream_inserter.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "../../int_ref.h"
#include "../../string_ref.h"
#include "../../decimal_ref.h"
#include "../../ext_ref.h"
Expand Down
1 change: 1 addition & 0 deletions src/mfast/coder/fast_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once

#include "mfast_coder_export.h"
#include "../instructions/templates_description.h"
#include "../message_ref.h"
#include "../malloc_allocator.h"
#include <initializer_list>
Expand Down
1 change: 0 additions & 1 deletion src/mfast/coder/fast_decoder_v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include "decoder_v2/fast_decoder_core.h"
#include <type_traits>
#include <tuple>

template <typename... CONDITIONS> struct all_true;

Expand Down
1 change: 1 addition & 0 deletions src/mfast/coder/fast_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once

#include "mfast_coder_export.h"
#include "../instructions/templates_description.h"
#include "../message_ref.h"
#include "../malloc_allocator.h"

Expand Down
1 change: 0 additions & 1 deletion src/mfast/coder/fast_encoder_v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#pragma once

#include <vector>
#include <tuple>
#include "encoder_v2/fast_encoder_core.h"

namespace mfast {
Expand Down
5 changes: 0 additions & 5 deletions src/mfast/decimal_ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
//
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include <cmath>
#include <cfloat>

#include <iostream>

#include <boost/multiprecision/number.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>

Expand Down
2 changes: 0 additions & 2 deletions src/mfast/decimal_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// See the file license.txt for licensing information.
#pragma once

#include <cmath>
#include <cfloat>
#include <boost/utility/string_ref.hpp>
#include "mfast_export.h"
#include "field_ref.h"
Expand Down
1 change: 0 additions & 1 deletion src/mfast/enum_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// See the file license.txt for licensing information.
#pragma once

#include "mfast/field_instructions.h"
#include "mfast/field_ref.h"
#include "mfast/type_category.h"

Expand Down
1 change: 0 additions & 1 deletion src/mfast/field_comparator.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// This file is part of mFAST.
// See the file license.txt for licensing information.
#pragma once
#include <utility>
#include "field_visitor.h"
namespace mfast {
namespace detail {
Expand Down
4 changes: 1 addition & 3 deletions src/mfast/field_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
#pragma once

#include "field_instructions.h"
#include <new>
#include <iostream>
#include "mfast_export.h"
#include <typeinfo>
#include <type_traits>
#include <boost/config.hpp>
#include <boost/exception/all.hpp>

Expand Down
1 change: 0 additions & 1 deletion src/mfast/field_visitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "string_ref.h"
#include "group_ref.h"
#include "sequence_ref.h"
#include "message_ref.h"
#include "nested_message_ref.h"
#include "set_ref.h"

Expand Down
1 change: 0 additions & 1 deletion src/mfast/group_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// See the file license.txt for licensing information.
#pragma once

#include "field_instructions.h"
#include "field_ref.h"
#include "field_mref.h"
#include "aggregate_ref.h"
Expand Down
2 changes: 1 addition & 1 deletion src/mfast/instructions/decimal_instruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// This file is part of mFAST.
// See the file license.txt for licensing information.

#include "../field_instructions.h"
#include "decimal_instruction.h"

namespace mfast {
void decimal_field_instruction::construct_value(value_storage &storage,
Expand Down
1 change: 0 additions & 1 deletion src/mfast/instructions/field_instruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "mfast/mfast_export.h"
#include "mfast/arena_allocator.h"
#include "mfast/allocator.h"
#include <algorithm>
#include <iostream>

namespace mfast {
Expand Down
1 change: 0 additions & 1 deletion src/mfast/int_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// See the file license.txt for licensing information.
#pragma once

#include "field_instructions.h"
#include "field_ref.h"
#include "type_category.h"

Expand Down
3 changes: 2 additions & 1 deletion src/mfast/json/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#define MFAST_JSON_H

#include "mfast_json_export.h"
#include "../../mfast.h"
#include "../aggregate_ref.h"
#include "../sequence_ref.h"
#include <iostream>

namespace mfast {
Expand Down
4 changes: 4 additions & 0 deletions src/mfast/json/json_decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include "json.h"
#include "../enum_ref.h"
#include "../group_ref.h"
#include "../field_visitor.h"
#include "../nested_message_ref.h"
#include <boost/regex/pending/unicode_iterator.hpp>
namespace mfast {

Expand Down
3 changes: 3 additions & 0 deletions src/mfast/json/json_encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include "json.h"
#include "../enum_ref.h"
#include "../field_visitor.h"
#include "../nested_message_ref.h"
#include <boost/io/ios_state.hpp>
#include <cstdio>
#ifdef _MSC_VER // someday someone at microsoft will read the C++11 standard.
Expand Down
2 changes: 2 additions & 0 deletions src/mfast/malloc_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// This file is part of mFAST.
// See the file license.txt for licensing information.
#include "malloc_allocator.h"
#include <algorithm>
#include <new>

namespace mfast {

Expand Down
Loading