Skip to content

Commit 008d96d

Browse files
committed
clang-format -i find . -name "*.*pp"
1 parent b46340e commit 008d96d

File tree

225 files changed

+17334
-17831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+17334
-17831
lines changed

boost/mime.hpp

Lines changed: 715 additions & 740 deletions
Large diffs are not rendered by default.

boost/network/constants.hpp

Lines changed: 121 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -11,128 +11,127 @@
1111
#include <boost/mpl/if.hpp>
1212

1313
namespace boost {
14-
namespace network {
15-
16-
namespace impl {
17-
template <class Tag> struct constants_narrow {
18-
19-
static char const* crlf() {
20-
static char crlf_[] = {'\r', '\n', 0};
21-
return crlf_;
22-
}
23-
24-
static char const* dot() {
25-
static char dot_[] = {'.', 0};
26-
return dot_;
27-
}
28-
29-
static char dot_char() { return '.'; }
30-
31-
static char const* http_slash() {
32-
static char http_slash_[] = {'H', 'T', 'T', 'P', '/', 0};
33-
return http_slash_;
34-
}
35-
36-
static char const* space() {
37-
static char space_[] = {' ', 0};
38-
return space_;
39-
}
40-
41-
static char space_char() { return ' '; }
42-
43-
static char const* slash() {
44-
static char slash_[] = {'/', 0};
45-
return slash_;
46-
}
47-
48-
static char slash_char() { return '/'; }
49-
50-
static char const* host() {
51-
static char host_[] = {'H', 'o', 's', 't', 0};
52-
return host_;
53-
}
54-
55-
static char const* colon() {
56-
static char colon_[] = {':', 0};
57-
return colon_;
58-
}
59-
60-
static char colon_char() { return ':'; }
61-
62-
static char const* accept() {
63-
static char accept_[] = {'A', 'c', 'c', 'e', 'p', 't', 0};
64-
return accept_;
65-
}
66-
67-
static char const* default_accept_mime() {
68-
static char mime_[] = {'*', '/', '*', 0};
69-
return mime_;
70-
}
71-
72-
static char const* accept_encoding() {
73-
static char accept_encoding_[] = {'A', 'c', 'c', 'e', 'p', 't',
74-
'-', 'E', 'n', 'c', 'o', 'd',
75-
'i', 'n', 'g', 0};
76-
return accept_encoding_;
77-
}
78-
79-
static char const* default_accept_encoding() {
80-
static char default_accept_encoding_[] = {
81-
'i', 'd', 'e', 'n', 't', 'i', 't', 'y', ';', 'q', '=',
82-
'1', '.', '0', ',', ' ', '*', ';', 'q', '=', '0', 0};
83-
return default_accept_encoding_;
84-
}
85-
86-
static char const* user_agent() {
87-
static char user_agent_[] = {'U', 's', 'e', 'r', '-', 'A',
88-
'g', 'e', 'n', 't', 0};
89-
return user_agent_;
90-
}
91-
92-
static char const* cpp_netlib_slash() {
93-
static char cpp_netlib_slash_[] = {'c', 'p', 'p', '-', 'n', 'e',
94-
't', 'l', 'i', 'b', '/', 0};
95-
return cpp_netlib_slash_;
96-
}
97-
98-
static char question_mark_char() { return '?'; }
99-
100-
static char hash_char() { return '#'; }
101-
102-
static char const* connection() {
103-
static char connection_[] = {'C', 'o', 'n', 'n', 'e', 'c',
104-
't', 'i', 'o', 'n', 0};
105-
return connection_;
106-
}
107-
108-
static char const* close() {
109-
static char close_[] = {'C', 'l', 'o', 's', 'e', 0};
110-
return close_;
111-
}
112-
113-
static char const* https() {
114-
static char https_[] = "https";
115-
return https_;
116-
}
117-
};
118-
119-
template <class Tag> struct constants_wide {
120-
121-
static wchar_t const* https() {
122-
static wchar_t https_[] = L"https";
123-
return https_;
124-
}
125-
};
126-
}
127-
128-
template <class Tag>
129-
struct constants
130-
: mpl::if_<is_default_string<Tag>, impl::constants_narrow<Tag>,
131-
typename mpl::if_<is_default_wstring<Tag>,
132-
impl::constants_wide<Tag>,
133-
unsupported_tag<Tag> >::type>::type {};
134-
135-
} // namespace network
14+
namespace network {
15+
16+
namespace impl {
17+
template <class Tag> struct constants_narrow {
18+
19+
static char const* crlf() {
20+
static char crlf_[] = {'\r', '\n', 0};
21+
return crlf_;
22+
}
23+
24+
static char const* dot() {
25+
static char dot_[] = {'.', 0};
26+
return dot_;
27+
}
28+
29+
static char dot_char() { return '.'; }
30+
31+
static char const* http_slash() {
32+
static char http_slash_[] = {'H', 'T', 'T', 'P', '/', 0};
33+
return http_slash_;
34+
}
35+
36+
static char const* space() {
37+
static char space_[] = {' ', 0};
38+
return space_;
39+
}
40+
41+
static char space_char() { return ' '; }
42+
43+
static char const* slash() {
44+
static char slash_[] = {'/', 0};
45+
return slash_;
46+
}
47+
48+
static char slash_char() { return '/'; }
49+
50+
static char const* host() {
51+
static char host_[] = {'H', 'o', 's', 't', 0};
52+
return host_;
53+
}
54+
55+
static char const* colon() {
56+
static char colon_[] = {':', 0};
57+
return colon_;
58+
}
59+
60+
static char colon_char() { return ':'; }
61+
62+
static char const* accept() {
63+
static char accept_[] = {'A', 'c', 'c', 'e', 'p', 't', 0};
64+
return accept_;
65+
}
66+
67+
static char const* default_accept_mime() {
68+
static char mime_[] = {'*', '/', '*', 0};
69+
return mime_;
70+
}
71+
72+
static char const* accept_encoding() {
73+
static char accept_encoding_[] = {'A', 'c', 'c', 'e', 'p', 't', '-', 'E',
74+
'n', 'c', 'o', 'd', 'i', 'n', 'g', 0};
75+
return accept_encoding_;
76+
}
77+
78+
static char const* default_accept_encoding() {
79+
static char default_accept_encoding_[] = {
80+
'i', 'd', 'e', 'n', 't', 'i', 't', 'y', ';', 'q', '=',
81+
'1', '.', '0', ',', ' ', '*', ';', 'q', '=', '0', 0};
82+
return default_accept_encoding_;
83+
}
84+
85+
static char const* user_agent() {
86+
static char user_agent_[] = {'U', 's', 'e', 'r', '-', 'A',
87+
'g', 'e', 'n', 't', 0};
88+
return user_agent_;
89+
}
90+
91+
static char const* cpp_netlib_slash() {
92+
static char cpp_netlib_slash_[] = {'c', 'p', 'p', '-', 'n', 'e',
93+
't', 'l', 'i', 'b', '/', 0};
94+
return cpp_netlib_slash_;
95+
}
96+
97+
static char question_mark_char() { return '?'; }
98+
99+
static char hash_char() { return '#'; }
100+
101+
static char const* connection() {
102+
static char connection_[] = {'C', 'o', 'n', 'n', 'e', 'c',
103+
't', 'i', 'o', 'n', 0};
104+
return connection_;
105+
}
106+
107+
static char const* close() {
108+
static char close_[] = {'C', 'l', 'o', 's', 'e', 0};
109+
return close_;
110+
}
111+
112+
static char const* https() {
113+
static char https_[] = "https";
114+
return https_;
115+
}
116+
};
117+
118+
template <class Tag> struct constants_wide {
119+
120+
static wchar_t const* https() {
121+
static wchar_t https_[] = L"https";
122+
return https_;
123+
}
124+
};
125+
}
126+
127+
template <class Tag>
128+
struct constants
129+
: mpl::if_<
130+
is_default_string<Tag>, impl::constants_narrow<Tag>,
131+
typename mpl::if_<is_default_wstring<Tag>, impl::constants_wide<Tag>,
132+
unsupported_tag<Tag> >::type>::type {};
133+
134+
} // namespace network
136135

137136
} // namespace boost
138137

boost/network/detail/directive_base.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
* to allow friend access to message and other types' internals.
1212
*/
1313
namespace boost {
14-
namespace network {
15-
namespace detail {
14+
namespace network {
15+
namespace detail {
1616

17-
template <class Tag> struct directive_base {
18-
typedef Tag tag;
19-
// explicit directive_base(basic_message<tag> & message_)
20-
// : _message(message_)
21-
protected:
22-
~directive_base() {}; // can only be extended
17+
template <class Tag> struct directive_base {
18+
typedef Tag tag;
19+
// explicit directive_base(basic_message<tag> & message_)
20+
// : _message(message_)
21+
protected:
22+
~directive_base() {}; // can only be extended
2323

24-
// mutable basic_message<tag> & _message;
25-
};
24+
// mutable basic_message<tag> & _message;
25+
};
2626

27-
} // namespace detail
27+
} // namespace detail
2828

29-
} // namespace network
29+
} // namespace network
3030

3131
} // namespace boost
3232

boost/network/detail/wrapper_base.hpp

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,31 @@
88
#define __NETWORK_DETAIL_WRAPPER_BASE_HPP__
99

1010
namespace boost {
11-
namespace network {
11+
namespace network {
1212

13-
namespace detail {
13+
namespace detail {
1414

15-
template <class Tag, class Message> struct wrapper_base {
16-
explicit wrapper_base(Message& message_) : _message(message_) {};
15+
template <class Tag, class Message> struct wrapper_base {
16+
explicit wrapper_base(Message& message_) : _message(message_) {};
1717

18-
protected:
19-
~wrapper_base() {}; // for extending only
18+
protected:
19+
~wrapper_base() {}; // for extending only
2020

21-
Message& _message;
22-
};
21+
Message& _message;
22+
};
2323

24-
template <class Tag, class Message> struct wrapper_base_const {
25-
explicit wrapper_base_const(Message const& message_)
26-
: _message(message_) {}
24+
template <class Tag, class Message> struct wrapper_base_const {
25+
explicit wrapper_base_const(Message const& message_) : _message(message_) {}
2726

28-
protected:
29-
~wrapper_base_const() {}; // for extending only
27+
protected:
28+
~wrapper_base_const() {}; // for extending only
3029

31-
Message const& _message;
32-
};
30+
Message const& _message;
31+
};
3332

34-
} // namespace detail
33+
} // namespace detail
3534

36-
} // namespace network
35+
} // namespace network
3736

3837
} // namespace boost
3938

0 commit comments

Comments
 (0)