Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a370594
Run clang-tidy with all checks.
deanberris Oct 28, 2015
44bd36b
Manual changes to update style and fix breakages
deanberris Oct 28, 2015
5f6e9ee
Changes to make things build
deanberris Oct 31, 2015
7b88a41
Reintroduce missing code for parsing query maps
deanberris Oct 31, 2015
6349c11
clang-tidy modernize-.* all the things
deanberris Nov 2, 2015
6d8879c
Upgrade travis config
deanberris Nov 2, 2015
65a0e6e
Fix typo in URL
deanberris Nov 2, 2015
feec209
Fix another typo on the URL.
deanberris Nov 2, 2015
4847865
Make travis wait for a Boost build to finish
deanberris Nov 2, 2015
e19af74
Change level of travis_wait call; chmod +x .sh files
deanberris Nov 2, 2015
abe68b4
Only support Boost 1.59 for now.
deanberris Nov 2, 2015
b10dfbb
Only produce shared+multithreaded debug & release boost libs
deanberris Nov 2, 2015
8cb4c16
Looks like we need static libs too
deanberris Nov 2, 2015
198dd07
Integrate travis; Use Boost 1.57 at least; Always use shared libs fro…
deanberris Nov 2, 2015
f6c7ee6
Use the dynamic version of Boost.Test always.
deanberris Nov 2, 2015
de7c710
Use v4 again instead of just address
deanberris Nov 4, 2015
39a2705
v4() for real this time
deanberris Nov 4, 2015
2e3340f
Change test to fetch different targets
deanberris Nov 12, 2015
7e0f93e
Simplify http test
deanberris Nov 12, 2015
552401b
Use ninja-build
deanberris Nov 12, 2015
19beafb
Update cmake
deanberris Nov 12, 2015
99f6168
Use updated cmake to support ninja-build
deanberris Nov 12, 2015
937d589
Travis cannot handle ninja builds yet, probably to lack of resources …
deanberris Nov 12, 2015
d5ec24e
j4 is too much. :(
deanberris Nov 12, 2015
d661fcc
Check with the sanitizers
deanberris Nov 12, 2015
5751338
Honor the CMAKE_CXX_FLAGS environment variable
deanberris Nov 12, 2015
511dd04
Print latest log properly
deanberris Nov 12, 2015
9fbc300
Fix some issues with the (deprecated) synchronous client implementati…
deanberris Nov 16, 2015
2f2239c
Only use libc++ if in OS X
deanberris Nov 16, 2015
4be4eae
Issue identified with memory sanitizer
deanberris Nov 16, 2015
600daff
Fix unsafe usage of boost::as_literal, caught by memory sanitiser
deanberris Nov 16, 2015
03870ca
Force use of size_t in distance calculation
deanberris Nov 16, 2015
9bad07c
Removing noexcept from defaulted move constructor
deanberris Nov 18, 2015
2f2c021
Track origins for memsan runs
deanberris Nov 18, 2015
7f70dac
Exclude msan builds from g++
deanberris Nov 18, 2015
8a8279a
Do not use msan yet; Boost seems to be not msan-clean
deanberris Nov 18, 2015
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
Prev Previous commit
Next Next commit
Manual changes to update style and fix breakages
  • Loading branch information
deanberris committed Oct 28, 2015
commit 44bd36b4243494c99ed98f09c93faf772a42ca77
2 changes: 1 addition & 1 deletion .ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'-Wall',
'-Wextra',
'-Werror',
'-std=c++03',
'-std=c++11',
'-isystem',
'.',
'-isystem',
Expand Down
11 changes: 7 additions & 4 deletions boost/network/detail/directive_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#ifndef __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
#define __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__

#include <boost/network/message_fwd.hpp>

/** Defines the base type from which all directives inherit
* to allow friend access to message and other types' internals.
*/
Expand All @@ -17,12 +19,13 @@ namespace detail {
template <class Tag>
struct directive_base {
typedef Tag tag;
// explicit directive_base(basic_message<tag> & message_)
// : _message(message_)
explicit directive_base(basic_message<tag> & message)
: message_(message) {}

protected:
~directive_base() = default;default;; // can only be extended
~directive_base() = default; // can only be extended

// mutable basic_message<tag> & _message;
basic_message<tag> & message_;
};

} // namespace detail
Expand Down
6 changes: 2 additions & 4 deletions boost/network/detail/wrapper_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ struct wrapper_base {
explicit wrapper_base(Message& message_) : _message(message_) {};

protected:
~wrapper_base() = default;default;; // for extending only

~wrapper_base() = default; // for extending only
Message& _message;
};

Expand All @@ -27,8 +26,7 @@ struct wrapper_base_const {
explicit wrapper_base_const(Message const& message_) : _message(message_) {}

protected:
~wrapper_base_const() = default;default;; // for extending only

~wrapper_base_const() = default; // for extending only
Message const& _message;
};

Expand Down
2 changes: 1 addition & 1 deletion boost/network/message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <boost/network/message_fwd.hpp>
#include <boost/network/traits/string.hpp>
#include <boost/utility/enable_if.hpp>boost/network/traits/headers_container.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/network/detail/directive_base.hpp>
#include <boost/network/detail/wrapper_base.hpp>
#include <boost/network/message/directives.hpp>
Expand Down
18 changes: 9 additions & 9 deletions boost/network/message/directives/detail/string_directive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#include <boost/mpl/if.hpp>
#include <boost/mpl/or.hpp>
#include <boost/network/support/is_pod.hpp>
#include <boost/network/traits/string.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/static_visitor.hpp>
#include <boost/variant/variant.hpp>
#include <boost/network/support/is_pod.hpp>>
#include <boost/variant/apply_visitor.hpp>#include <boost/variant/static_visitor.hpp>
#include <boost/mpl/if.hpp<boost/mpl/or.hpp>
#include <boost/utility/enable_if.hpp>ble_if.hpp>

/**
*
Expand All @@ -32,7 +34,7 @@
#define BOOST_NETWORK_STRING_DIRECTIVE(name, value, body, pod_body) \
template <class ValueType> \
struct name##_directive { \
ValueType const& ((value)); \
ValueType const&((value)); \
explicit name##_directive(ValueType const& value_) : value(value_) {} \
name##_directive(name##_directive const& other) : value(other.value) {} \
template <class Tag, template <class> class Message> \
Expand All @@ -51,7 +53,5 @@
inline name##_directive<T> name(T const& input) { \
return name##_directive<T>(input); \
}
#endif /* BOOST_NETWORK_STRING_DIRECTIVE */

#endif /* BOOST_NETWORK_MESSAGE_DIRECTIVES_DETAIL_STRING_DIRECTIVE_HPP_20100915 \
*/
#endif // BOOST_NETWORK_STRING_DIRECTIVE
#endif // BOOST_NETWORK_MESSAGE_DIRECTIVES_DETAIL_STRING_DIRECTIVE_HPP_20100915
20 changes: 12 additions & 8 deletions boost/network/message/directives/header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef __NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
#define __NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
#ifndef BOOST_NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
#define BOOST_NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__

#include <boost/network/support/is_async.hpp>pp>
#include <boost/network/traits/string.hpp>nclude <boost/utility/enable_if.hpp>ude <boost/thread/future.hpp>
#include <boost/network/support/is_async.hpp>
#include <boost/network/traits/string.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/thread/future.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/or.hpp>
#include <boost/variant/apply_visitor.hpp>r.hpp>
#include <boost/variant/static_visitor.hpp>>
#include <boost/variant/variant.hpp>pace boost {
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/static_visitor.hpp>
#include <boost/variant/variant.hpp>

namespace boost {
namespace network {

namespace impl {
Expand Down Expand Up @@ -69,4 +73,4 @@ inline impl::header_directive<T1, T2> header(T1 const& header_name,
} // namespace network
} // namespace boost

#endif // __NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
#endif // BOOST_NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
6 changes: 4 additions & 2 deletions boost/network/message/directives/remove_header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NETWORK_MESSAGE_DIRECTIVES_REMOVE_HEADER_HPP

#include <boost/network/traits/string.hpp>
#include <string>

namespace boost {
namespace network {
Expand All @@ -34,14 +35,15 @@ struct remove_header_directive {
} // namespace impl

inline impl::remove_header_directive<std::string> remove_header(
std::string /*header_name*/ame*/) {
const std::string& header_name) {
return impl::remove_header_directive<std::string>(header_name);
}

inline impl::remove_header_directive<std::wstring> remove_header(
std::wstring header_name) {
const std::wstring& header_name) {
return impl::remove_header_directive<std::wstring>(header_name);
}

} // namespace network
} // namespace boost

Expand Down
6 changes: 5 additions & 1 deletion boost/network/message/message_concept.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
#include <boost/network/message/traits/source.hpp>
#include <boost/network/message/traits/destination.hpp>
#include <boost/network/message/traits/headers.hpp>
#include <boost/network/tags.hp<boost/network/traits/string.hpp>de <boost/thread/future.hpp>oost {
#include <boost/network/tags.hpp>
#include <boost/network/traits/string.hpp>
#include <boost/thread/future.hpp>

namespace boost {
namespace network {

template <class M>
Expand Down
10 changes: 6 additions & 4 deletions boost/network/message/modifiers/add_header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#include <boost/mpl/a<boost/mpl/not<boost/network/support/is_async.hpp>nc.hpp>
#include <boost/network/support/is_pod.hpp>ort/is_pod.hpp>
#include <boost/utility/enable_if.hpp>le_if.hpp>
#include <boost/mpl/and.hpp>
#include <boost/mpl/not.hpp>
#include <boost/network/support/is_async.hpp>
#include <boost/network/support/is_pod.hpp>
#include <boost/utility/enable_if.hpp>

namespace boost {
namespace network {
Expand All @@ -36,7 +38,7 @@ inline typename enable_if<is_pod<Tag>, void>::type add_header(
typename Message::header_type header = {key, value};
message.headers.insert(message.headers.end(), header);
}
} // namespace impl // namespace impl
} // namespace impl

template <class Tag, template <class> class Message, class KeyType,
class ValueType>
Expand Down
10 changes: 6 additions & 4 deletions boost/network/message/modifiers/clear_headers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#include <boost/mpl/a<boost/mpl/not<boost/network/support/is_async.hpp>_async.hpp>
#include <boost/network/support/is_pod.hpp>.hpp>
#include <boost/thread/future.hpp>e.hpp>
#include <boost/utility/enable_if.hpp>le_if.hpp>
#include <boost/mpl/and.hpp>
#include <boost/mpl/not.hpp>
#include <boost/network/support/is_async.hpp>
#include <boost/network/support/is_pod.hpp>
#include <boost/thread/future.hpp>
#include <boost/utility/enable_if.hpp>

namespace boost {
namespace network {
Expand Down
9 changes: 5 additions & 4 deletions boost/network/message/modifiers/remove_header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#include <boost/mpl/not.hpp>
#include <boost/network/support/is_async.hpp>
#include <boost/network/support/is_pod.hpp>
#include <boost/range/algorithm/remove_if.hpp>_if.hpp>
#include <boost/utility/enable_if.hpp>e <boost/algorithm/string/predicate.hpp>
#include <boost/mpl/not.hpp>
#include <boost/range/algorithm/remove_if.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/algorithm/string/predicate.hpp>

namespace boost {
namespace network {
Expand All @@ -38,7 +39,7 @@ struct iequals_pred {
iequals_pred(KeyType const& key) : key(key) {}
template <class Header>
bool operator()(Header& other) const {
return boost::iequals(key, name(other));
return boost::algorithm::iequals(key, name(other));
}
};

Expand Down
16 changes: 6 additions & 10 deletions boost/network/message/traits/body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#include <boost/mpl<boost/mpl/<boost/network/support/is_async.hpp>.hpp>
#include <boost/network/support/is_sync.hpp>_sync.hpp>
#include <boost/thread/future.hpp>re.hpp>
#include <boost/type_traits/is_same.hpp>/is_same.hpp>
#include <boost/mpl/if.hpp>
#include <boost/network/traits/string.hpp>
#include <boost/network/support/is_async.hpp>
#include <boost/network/support/is_sync.hpp>
#include <boost/thread/future.hpp>
#include <boost/type_traits/is_same.hpp>

namespace boost {
namespace network {
Expand All @@ -33,13 +35,7 @@ struct body
unsupported_tag<typename Message::tag> >::type> {};

} // namespace traits

} // namespace network
// namespace network
/* network */

} // namespace boost
// namespace boost
/* boost */

#endif // BOOST_NETWORK_MESSAGE_TRAITS_BODY_HPP_20100903
16 changes: 6 additions & 10 deletions boost/network/message/traits/destination.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#include <boost/mpl<boost/network/support/is_async.hpp>>
#include <boost/network/support/is_sync.hpp>hpp>
#include <boost/mpl/if.hpp>
#include <boost/network/support/is_async.hpp>
#include <boost/network/support/is_sync.hpp>
#include <boost/network/traits/string.hpp>
#include <boost/thread/future.hpp>
#include <boost/type_traits/is_same.hpp>/is_same.hpp>
#include <boost/type_traits/is_same.hpp>

namespace boost {
namespace network {
Expand All @@ -33,13 +35,7 @@ struct destination
unsupported_tag<typename Message::tag> >::type> {};

} // namespace traits

} // namespace network
// namespace network
/* network */

} // namespace network
} // namespace boost
// namespace boost
/* boost */

#endif // BOOST_NETWORK_MESSAGE_TRAITS_DESTINATION_HPP_20100903
20 changes: 8 additions & 12 deletions boost/network/message/traits/headers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#include <boost/mpl/if.hpp>ude <boost/mpl/or<boost/network/message/directives.hpp>p>
#include <boost/network/message/transformers.hpp>.hpp>
#include <boost/network/message/wrappers.hpp>appers.hpp>
#include <boost/network/support/is_async.hpp>port/is_async.hpp>
#include <boost/network/support/is_sync.hpp>port/is_sync.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/or.hpp>
#include <boost/network/message/directives.hpp>
#include <boost/network/message/transformers.hpp>
#include <boost/network/message/wrappers.hpp>
#include <boost/network/support/is_async.hpp>
#include <boost/network/support/is_sync.hpp>

namespace boost {
namespace network {
Expand Down Expand Up @@ -46,13 +48,7 @@ struct header_value
unsupported_tag<typename Message::tag> >::type> {};

} // namespace traits

} // namespace network
// namespace network
/* network */

} // namespace network
} // namespace boost
// namespace boost
/* boost */

#endif // BOOST_NETWORK_MESSAGE_TRAITS_HEADERS_HPP_20100903
17 changes: 6 additions & 11 deletions boost/network/message/traits/source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#include <boost/mpl<boost/network/support/is_async.hpp>>
#include <boost/network/support/is_sync.hpp>hpp>
#include <boost/mpl/if.hpp>
#include <boost/network/support/is_async.hpp>
#include <boost/network/support/is_sync.hpp>
#include <boost/network/traits/string.hpp>
#include <boost/thread/future.hpp>
#include <boost/type_traits/is_same.hpp>/is_same.hpp>
#include <boost/type_traits/is_same.hpp>

namespace boost {
namespace network {

namespace traits {

template <class Tag>
Expand All @@ -32,13 +33,7 @@ struct source
unsupported_tag<typename Message::tag> >::type> {};

} // namespace traits

} // namespace network
// namespace network
/* network */

} // namespace boost
// namespace boost
/* boost */
} // namespace boost

#endif // BOOST_NETWORK_MESSAGE_TRAITS_SOURCE_HPP_20100903
Loading