Skip to content

Commit

Permalink
tidy includes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Jan 7, 2025
1 parent 2b12b37 commit ab10bca
Show file tree
Hide file tree
Showing 33 changed files with 57 additions and 36 deletions.
1 change: 1 addition & 0 deletions include/jsoncons/byte_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <memory> // std::allocator
#include <ostream>
#include <sstream>
#include <type_traits>
#include <utility> // std::move
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions include/jsoncons/conv_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <cstddef>
#include <string>
#include <system_error>
#include <type_traits>

#include <jsoncons/config/jsoncons_config.hpp>
#include <jsoncons/json_exception.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/jsoncons/detail/write_number.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <stdexcept>
#include <stdio.h> // snprintf
#include <string>
#include <type_traits>

#include <jsoncons/config/jsoncons_config.hpp>
#include <jsoncons/detail/grisu3.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/jsoncons/json_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <string>
#include <system_error>
#include <type_traits>

#include <jsoncons/config/jsoncons_config.hpp>

Expand Down
6 changes: 3 additions & 3 deletions include/jsoncons/json_exception.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSON_EXCEPTION_HPP
#define JSON_EXCEPTION_HPP
#ifndef JSONCONS_JSON_EXCEPTION_HPP
#define JSONCONS_JSON_EXCEPTION_HPP

#include <cstddef>
#include <exception>
Expand Down Expand Up @@ -220,4 +220,4 @@ namespace jsoncons {

} // namespace jsoncons

#endif // JSON_EXCEPTION_HPP
#endif // JSONCONS_JSON_EXCEPTION_HPP
1 change: 1 addition & 0 deletions include/jsoncons/json_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <string>
#include <system_error>

#include <jsoncons/config/compiler_support.hpp>
#include <jsoncons/json_error.hpp>
#include <jsoncons/ser_context.hpp>

Expand Down
1 change: 1 addition & 0 deletions include/jsoncons/json_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <unordered_map>
#include <vector>

#include <jsoncons/config/compiler_support.hpp>
#include <jsoncons/chunk_reader.hpp>
#include <jsoncons/detail/parse_number.hpp>
#include <jsoncons/json_error.hpp>
Expand Down
2 changes: 2 additions & 0 deletions include/jsoncons/json_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
#define JSONCONS_JSON_READER_HPP

#include <cstddef>
#include <functional>
#include <ios>
#include <memory> // std::allocator
#include <string>
#include <system_error>
#include <utility> // std::move

#include <jsoncons/config/compiler_support.hpp>
#include <jsoncons/json_exception.hpp>
#include <jsoncons/json_parser.hpp>
#include <jsoncons/json_visitor.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/jsoncons/utility/unicode_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <type_traits>

#include <jsoncons/config/compiler_support.hpp>
#include <jsoncons/config/jsoncons_config.hpp>
#include <jsoncons/utility/extension_traits.hpp>

namespace jsoncons { namespace unicode_traits {
Expand Down
1 change: 1 addition & 0 deletions include/jsoncons/utility/uri.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <iostream>
#include <string> // std::string
#include <system_error>
#include <type_traits>
#include <utility>

#include <jsoncons/config/jsoncons_config.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/jsoncons_ext/bson/bson_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <string>
#include <system_error>
#include <type_traits>

#include <jsoncons/config/jsoncons_config.hpp>

Expand Down
2 changes: 2 additions & 0 deletions include/jsoncons_ext/cbor/cbor_encoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

#include <cstddef>
#include <cstdint>
#include <cstring>
#include <limits> // std::numeric_limits
#include <memory>
#include <string>
#include <system_error>
#include <type_traits>
#include <utility> // std::move
#include <vector>

Expand Down
6 changes: 3 additions & 3 deletions include/jsoncons_ext/cbor/cbor_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_CBOR_CBOR_READER_HPP
#define JSONCONS_EXT_CBOR_CBOR_READER_HPP
#ifndef JSONCONS_EXT_CBOR_CBOR_EVENT_READER_HPP
#define JSONCONS_EXT_CBOR_CBOR_EVENT_READER_HPP

#include <cstddef>
#include <memory>
Expand Down Expand Up @@ -111,4 +111,4 @@ using cbor_bytes_reader = basic_cbor_reader<jsoncons::bytes_source>;
} // namespace cbor_reader
} // namespace jsoncons

#endif
#endif // JSONCONS_EXT_CBOR_CBOR_EVENT_READER_HPP
1 change: 1 addition & 0 deletions include/jsoncons_ext/csv/csv_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <string>
#include <system_error>
#include <type_traits>

namespace jsoncons { namespace csv {

Expand Down
2 changes: 2 additions & 0 deletions include/jsoncons_ext/csv/csv_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <system_error>
#include <vector>

#include <jsoncons/config/compiler_support.hpp>
#include <jsoncons/config/jsoncons_config.hpp>
#include <jsoncons/chunk_reader.hpp>
#include <jsoncons/detail/parse_number.hpp>
#include <jsoncons/json_exception.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/jsoncons_ext/jmespath/jmespath_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <cstddef>
#include <string>
#include <system_error>
#include <type_traits>

#include <jsoncons/json_exception.hpp>

Expand Down
1 change: 1 addition & 0 deletions include/jsoncons_ext/jsonpatch/jsonpatch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <cstddef>
#include <string>
#include <system_error>
#include <type_traits>
#include <utility> // std::move
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions include/jsoncons_ext/jsonpath/expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <set> // std::set
#include <string> // std::basic_string
#include <system_error>
#include <type_traits>
#include <unordered_map> // std::unordered_map
#include <unordered_set> // std::unordered_set
#include <utility> // std::move
Expand Down
2 changes: 1 addition & 1 deletion include/jsoncons_ext/jsonpath/flatten.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <cstddef>
#include <memory>

#include <jsoncons/json_exception.hpp>
#include <jsoncons/config/compiler_support.hpp>
#include <jsoncons/json_type.hpp>
#include <jsoncons/jsoncons_config.hpp>
#include <jsoncons_ext/jsonpath/jsonpath_error.hpp>
Expand Down
1 change: 0 additions & 1 deletion include/jsoncons_ext/jsonpath/json_location.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <vector>

#include <jsoncons/config/jsoncons_config.hpp>
#include <jsoncons/json_exception.hpp>
#include <jsoncons/utility/extension_traits.hpp>

#include <jsoncons_ext/jsonpath/jsonpath_error.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/jsoncons_ext/jsonpath/jsonpath_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <cstddef>
#include <string>
#include <system_error>
#include <type_traits>

#include <jsoncons/json_exception.hpp>

Expand Down
6 changes: 3 additions & 3 deletions include/jsoncons_ext/jsonpath/jsonpath_expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONPATH_JSONPATH_EXPR_HPP
#define JSONCONS_EXT_JSONPATH_JSONPATH_EXPR_HPP
#ifndef JSONCONS_EXT_JSONPATH_JSONPATH_EXPRESSION_HPP
#define JSONCONS_EXT_JSONPATH_JSONPATH_EXPRESSION_HPP

#include <algorithm> // std::reverse
#include <cstddef>
Expand Down Expand Up @@ -257,4 +257,4 @@ namespace jsonpath {
} // namespace jsonpath
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONPATH_JSONPATH_EXPR_HPP
#endif // JSONCONS_EXT_JSONPATH_JSONPATH_EXPRESSION_HPP
7 changes: 3 additions & 4 deletions include/jsoncons_ext/jsonpath/jsonpath_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONPATH_JSONPATH_EXPRESSION_HPP
#define JSONCONS_EXT_JSONPATH_JSONPATH_EXPRESSION_HPP
#ifndef JSONCONS_EXT_JSONPATH_JSONPATH_PARSER_HPP
#define JSONCONS_EXT_JSONPATH_JSONPATH_PARSER_HPP

#include <algorithm> // std::reverse
#include <cstddef>
Expand All @@ -20,7 +20,6 @@
#include <jsoncons/json_parser.hpp>
#include <jsoncons/tag_type.hpp>

#include <jsoncons/json_exception.hpp>
#include <jsoncons_ext/jsonpath/expression.hpp>
#include <jsoncons_ext/jsonpath/jsonpath_error.hpp>
#include <jsoncons_ext/jsonpath/jsonpath_selector.hpp>
Expand Down Expand Up @@ -2490,4 +2489,4 @@ namespace detail {
} // namespace jsonpath
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONPATH_JSONPATH_EXPRESSION_HPP
#endif // JSONCONS_EXT_JSONPATH_JSONPATH_PARSER_HPP
6 changes: 3 additions & 3 deletions include/jsoncons_ext/jsonpath/jsonpath_utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONPATH_UTILITIES_HPP
#define JSONCONS_EXT_JSONPATH_UTILITIES_HPP
#ifndef JSONCONS_EXT_JSONPATH_JSONPATH_UTILITIES_HPP
#define JSONCONS_EXT_JSONPATH_JSONPATH_UTILITIES_HPP

#include <cstddef>

Expand Down Expand Up @@ -69,4 +69,4 @@ namespace jsoncons { namespace jsonpath {
} // namespace jsonpath
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONPATH_UTILITIES_HPP
#endif // JSONCONS_EXT_JSONPATH_JSONPATH_UTILITIES_HPP
1 change: 1 addition & 0 deletions include/jsoncons_ext/jsonpointer/jsonpointer_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <string>
#include <system_error>
#include <type_traits>

#include <jsoncons/json_exception.hpp>

Expand Down
6 changes: 3 additions & 3 deletions include/jsoncons_ext/jsonschema/common/uri_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONSCHEMA_COMMON_SCHEMA_IDENTIFIER_HPP
#define JSONCONS_EXT_JSONSCHEMA_COMMON_SCHEMA_IDENTIFIER_HPP
#ifndef JSONCONS_EXT_JSONSCHEMA_COMMON_URI_WRAPPER_HPP
#define JSONCONS_EXT_JSONSCHEMA_COMMON_URI_WRAPPER_HPP

#include <cstddef>
#include <memory>
Expand Down Expand Up @@ -176,4 +176,4 @@ namespace jsonschema {
} // namespace jsonschema
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONSCHEMA_SCHEMA_LOCATION_HPP
#endif // JSONCONS_EXT_JSONSCHEMA_COMMON_URI_WRAPPER_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT201909_HPP
#define JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT201909_HPP
#ifndef JSONCONS_EXT_JSONSCHEMA_DRAFT201909_SCHEMA_DRAFT201909_HPP
#define JSONCONS_EXT_JSONSCHEMA_DRAFT201909_SCHEMA_DRAFT201909_HPP

namespace jsoncons {
namespace jsonschema {
Expand Down Expand Up @@ -331,4 +331,4 @@ namespace draft201909 {
} // namespace jsonschema
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT7_HPP
#endif // JSONCONS_EXT_JSONSCHEMA_DRAFT201909_SCHEMA_DRAFT201909_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONSCHEMA_SCHEMA_202012_HPP
#define JSONCONS_EXT_JSONSCHEMA_SCHEMA_202012_HPP
#ifndef JSONCONS_EXT_JSONSCHEMA_DRAFT202012_SCHEMA_DRAFT202012_HPP
#define JSONCONS_EXT_JSONSCHEMA_DRAFT202012_SCHEMA_DRAFT202012_HPP

namespace jsoncons {
namespace jsonschema {
Expand Down Expand Up @@ -359,4 +359,4 @@ namespace draft202012 {
} // namespace jsonschema
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT7_HPP
#endif // JSONCONS_EXT_JSONSCHEMA_DRAFT202012_SCHEMA_DRAFT202012_HPP
6 changes: 3 additions & 3 deletions include/jsoncons_ext/jsonschema/draft4/schema_draft4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT4_HPP
#define JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT4_HPP
#ifndef JSONCONS_EXT_JSONSCHEMA_DRAFT4_SCHEMA_DRAFT4_HPP
#define JSONCONS_EXT_JSONSCHEMA_DRAFT4_SCHEMA_DRAFT4_HPP


namespace jsoncons {
Expand Down Expand Up @@ -177,4 +177,4 @@ namespace draft4 {
} // namespace jsonschema
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT4_HPP
#endif // JSONCONS_EXT_JSONSCHEMA_DRAFT4_SCHEMA_DRAFT4_HPP
6 changes: 3 additions & 3 deletions include/jsoncons_ext/jsonschema/draft6/schema_draft6.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT6_HPP
#define JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT6_HPP
#ifndef JSONCONS_EXT_JSONSCHEMA_DRAFT6_SCHEMA_DRAFT6_HPP
#define JSONCONS_EXT_JSONSCHEMA_DRAFT6_SCHEMA_DRAFT6_HPP

namespace jsoncons {
namespace jsonschema {
Expand Down Expand Up @@ -180,4 +180,4 @@ namespace draft6 {
} // namespace jsonschema
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT7_HPP
#endif // JSONCONS_EXT_JSONSCHEMA_DRAFT6_SCHEMA_DRAFT6_HPP
6 changes: 3 additions & 3 deletions include/jsoncons_ext/jsonschema/draft7/schema_draft7.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

// See https://github.com/danielaparker/jsoncons for latest version

#ifndef JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT7_HPP
#define JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT7_HPP
#ifndef JSONCONS_EXT_JSONSCHEMA_DRAFT7_SCHEMA_DRAFT7_HPP
#define JSONCONS_EXT_JSONSCHEMA_DRAFT7_SCHEMA_DRAFT7_HPP

namespace jsoncons {
namespace jsonschema {
Expand Down Expand Up @@ -195,4 +195,4 @@ namespace draft7 {
} // namespace jsonschema
} // namespace jsoncons

#endif // JSONCONS_EXT_JSONSCHEMA_SCHEMA_DRAFT7_HPP
#endif // JSONCONS_EXT_JSONSCHEMA_DRAFT7_SCHEMA_DRAFT7_HPP
1 change: 1 addition & 0 deletions include/jsoncons_ext/msgpack/msgpack_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <string>
#include <system_error>
#include <type_traits>

#include <jsoncons/config/jsoncons_config.hpp>

Expand Down
1 change: 1 addition & 0 deletions include/jsoncons_ext/ubjson/ubjson_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <string>
#include <system_error>
#include <type_traits>

#include <jsoncons/config/jsoncons_config.hpp>

Expand Down

0 comments on commit ab10bca

Please sign in to comment.