Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: source files have no header guards #824

Merged
merged 1 commit into from
Mar 4, 2024
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
3 changes: 0 additions & 3 deletions src/authority_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_AUTHORITY_VIEW_IPP
#define BOOST_URL_IMPL_AUTHORITY_VIEW_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/authority_view.hpp>
Expand Down Expand Up @@ -405,4 +403,3 @@ compare(const authority_view& other) const noexcept
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/decode_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_DECODE_VIEW_IPP
#define BOOST_URL_IMPL_DECODE_VIEW_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/decode_view.hpp>
Expand Down Expand Up @@ -232,4 +230,3 @@ rfind( char ch ) const noexcept
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/any_params_iter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_ANY_PARAMS_ITER_IPP
#define BOOST_URL_DETAIL_IMPL_ANY_PARAMS_ITER_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/detail/any_params_iter.hpp>
Expand Down Expand Up @@ -506,4 +504,3 @@ copy(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/any_segments_iter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_ANY_SEGMENTS_ITER_IPP
#define BOOST_URL_DETAIL_IMPL_ANY_SEGMENTS_ITER_IPP

#include <boost/url/detail/config.hpp>
#include "../rfc/detail/charsets.hpp"
Expand Down Expand Up @@ -229,4 +227,3 @@ copy_impl(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_DECODE_IPP
#define BOOST_URL_DETAIL_IMPL_DECODE_IPP

#include <boost/url/detail/config.hpp>
#include "decode.hpp"
Expand Down Expand Up @@ -138,4 +136,3 @@ decode_unsafe(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/except.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_EXCEPT_IPP
#define BOOST_URL_DETAIL_IMPL_EXCEPT_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/detail/except.hpp>
Expand Down Expand Up @@ -56,4 +54,3 @@ throw_length_error(
} // url
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/format_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_FORMAT_ARGS_IPP
#define BOOST_URL_DETAIL_IMPL_FORMAT_ARGS_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/encode.hpp>
Expand Down Expand Up @@ -648,4 +646,3 @@ grammar::lut_chars const& cs) const
} // urls
} // boost

#endif
4 changes: 1 addition & 3 deletions src/detail/normalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_NORMALIZE_IPP
#define BOOST_URL_DETAIL_IMPL_NORMALIZE_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/decode_view.hpp>
Expand Down Expand Up @@ -906,4 +904,4 @@ segments_compare(
} // urls
} // boost

#endif

3 changes: 0 additions & 3 deletions src/detail/params_iter_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_PARAMS_ITER_IMPL_IPP
#define BOOST_URL_DETAIL_IMPL_PARAMS_ITER_IMPL_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/detail/params_iter_impl.hpp>
Expand Down Expand Up @@ -243,4 +241,3 @@ key() const noexcept
} // url
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_PATTERN_IPP
#define BOOST_URL_DETAIL_IMPL_PATTERN_IPP

#include <boost/url/detail/config.hpp>
#include "pattern.hpp"
Expand Down Expand Up @@ -947,4 +945,3 @@ parse_pattern(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/pct_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_PCT_FORMAT_IPP
#define BOOST_URL_DETAIL_IMPL_PCT_FORMAT_IPP

#include <boost/url/detail/config.hpp>
#include "pct_format.hpp"
Expand Down Expand Up @@ -215,4 +213,3 @@ pct_vformat(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/replacement_field_rule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_REPLACEMENT_FIELD_RULE_IPP
#define BOOST_URL_DETAIL_IMPL_REPLACEMENT_FIELD_RULE_IPP

#include <boost/url/detail/config.hpp>
#include "boost/url/detail/replacement_field_rule.hpp"
Expand Down Expand Up @@ -135,4 +133,3 @@ parse(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/segments_iter_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_SEGMENTS_ITER_IMPL_IPP
#define BOOST_URL_DETAIL_IMPL_SEGMENTS_ITER_IMPL_IPP

#include <boost/url/detail/config.hpp>
#include "path.hpp"
Expand Down Expand Up @@ -172,4 +170,3 @@ decrement() noexcept
} // url
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/url_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_IMPL_URL_IMPL_IPP
#define BOOST_URL_DETAIL_IMPL_URL_IMPL_IPP

#include <boost/url/detail/config.hpp>
#include "path.hpp"
Expand Down Expand Up @@ -530,4 +528,3 @@ nparam() const noexcept
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/detail/vformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_DETAIL_VFORMAT_IPP
#define BOOST_URL_DETAIL_VFORMAT_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/detail/vformat.hpp>
Expand All @@ -33,4 +31,3 @@ vformat_to(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/encoding_opts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_ENCONDING_OPTS_IPP
#define BOOST_URL_IMPL_ENCONDING_OPTS_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/encoding_opts.hpp>
Expand All @@ -29,4 +27,3 @@ encoding_opts(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_ERROR_IPP
#define BOOST_URL_IMPL_ERROR_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/error.hpp>
Expand Down Expand Up @@ -94,4 +92,3 @@ error_cat_type error_cat;
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/grammar/ci_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_GRAMMAR_IMPL_CI_STRING_IPP
#define BOOST_URL_GRAMMAR_IMPL_CI_STRING_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/grammar/ci_string.hpp>
Expand Down Expand Up @@ -152,4 +150,3 @@ ci_digest(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/grammar/dec_octet_rule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_GRAMMAR_DEC_OCTET_RULE_IPP
#define BOOST_URL_IMPL_GRAMMAR_DEC_OCTET_RULE_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/grammar/charset.hpp>
Expand Down Expand Up @@ -91,4 +89,3 @@ parse(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/grammar/delim_rule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_GRAMMAR_IMPL_DELIM_RULE_IPP
#define BOOST_URL_GRAMMAR_IMPL_DELIM_RULE_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/detail/config.hpp>
Expand Down Expand Up @@ -45,4 +43,3 @@ parse(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/grammar/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_GRAMMAR_IMPL_ERROR_IPP
#define BOOST_URL_GRAMMAR_IMPL_ERROR_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/grammar/error.hpp>
Expand Down Expand Up @@ -119,4 +117,3 @@ condition_cat_type condition_cat;
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/grammar/literal_rule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_GRAMMAR_IMPL_LITERAL_RULE_IPP
#define BOOST_URL_GRAMMAR_IMPL_LITERAL_RULE_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/grammar/error.hpp>
Expand Down Expand Up @@ -68,4 +66,3 @@ parse(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/grammar/string_view_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_STRING_VIEW_BASE_IPP
#define BOOST_URL_IMPL_STRING_VIEW_BASE_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/grammar/string_view_base.hpp>
Expand All @@ -30,5 +28,4 @@ operator<<(
} // urls
} // boost

#endif

3 changes: 0 additions & 3 deletions src/ipv4_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_IPV4_ADDRESS_IPP
#define BOOST_URL_IMPL_IPV4_ADDRESS_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/ipv4_address.hpp>
Expand Down Expand Up @@ -166,4 +164,3 @@ parse_ipv4_address(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/ipv6_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_IPV6_ADDRESS_IPP
#define BOOST_URL_IMPL_IPV6_ADDRESS_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/ipv6_address.hpp>
Expand Down Expand Up @@ -251,4 +249,3 @@ parse_ipv6_address(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/params_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_PARAMS_BASE_IPP
#define BOOST_URL_IMPL_PARAMS_BASE_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/decode_view.hpp>
Expand Down Expand Up @@ -285,4 +283,3 @@ operator<<(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/params_encoded_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_PARAMS_ENCODED_BASE_IPP
#define BOOST_URL_IMPL_PARAMS_ENCODED_BASE_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/decode_view.hpp>
Expand Down Expand Up @@ -192,4 +190,3 @@ operator<<(
} // urls
} // boost

#endif
3 changes: 0 additions & 3 deletions src/params_encoded_ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_PARAMS_ENCODED_REF_IPP
#define BOOST_URL_IMPL_PARAMS_ENCODED_REF_IPP

#include <boost/url/detail/config.hpp>
#include <boost/url/decode_view.hpp>
Expand Down Expand Up @@ -314,4 +312,3 @@ find_last_impl(
} // urls
} // boost

#endif
Loading
Loading