Skip to content

Commit e5ea5b5

Browse files
committed
clang-format -i find . -name "*.*pp"
1 parent 15b6206 commit e5ea5b5

File tree

292 files changed

+20306
-21009
lines changed

Some content is hidden

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

292 files changed

+20306
-21009
lines changed

boost/mime.hpp

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

boost/network.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
// Author: Dean Michael Berris
1212
// Date: May 20, 2007
1313

14-
#include <boost/network/message.hpp> // message type implementation
15-
#include <boost/network/protocol.hpp> // protocols implementation
16-
17-
#endif // __NETWORK_HPP__
14+
#include <boost/network/message.hpp> // message type implementation
15+
#include <boost/network/protocol.hpp> // protocols implementation
1816

17+
#endif // __NETWORK_HPP__

boost/network/constants.hpp

Lines changed: 122 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -10,150 +10,130 @@
1010
#include <boost/network/support/is_default_wstring.hpp>
1111
#include <boost/mpl/if.hpp>
1212

13-
namespace boost { namespace network {
13+
namespace boost {
14+
namespace network {
1415

1516
namespace impl {
16-
template <class Tag>
17-
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_[] = {
69-
'*', '/', '*', 0
70-
};
71-
return mime_;
72-
}
73-
74-
static char const * accept_encoding() {
75-
static char accept_encoding_[] = {
76-
'A','c','c','e','p','t','-','E','n','c','o','d','i','n','g',0
77-
};
78-
return accept_encoding_;
79-
}
80-
81-
static char const * default_accept_encoding() {
82-
static char default_accept_encoding_[] = {
83-
'i','d','e','n','t','i','t','y',';','q','=','1','.','0',',',' ','*',';','q','=','0',0
84-
};
85-
return default_accept_encoding_;
86-
}
87-
88-
static char const * user_agent() {
89-
static char user_agent_[] = {
90-
'U','s','e','r','-','A','g','e','n','t',0
91-
};
92-
return user_agent_;
93-
}
94-
95-
static char const * cpp_netlib_slash() {
96-
static char cpp_netlib_slash_[] = {
97-
'c','p','p','-','n','e','t','l','i','b','/',0
98-
};
99-
return cpp_netlib_slash_;
100-
}
101-
102-
static char question_mark_char() {
103-
return '?';
104-
}
105-
106-
static char hash_char() {
107-
return '#';
108-
}
109-
110-
static char const * connection() {
111-
static char connection_[] = {
112-
'C','o','n','n','e','c','t','i','o','n',0
113-
};
114-
return connection_;
115-
}
116-
117-
static char const * close() {
118-
static char close_[] = {
119-
'C','l','o','s','e', 0
120-
};
121-
return close_;
122-
}
123-
124-
static char const * https() {
125-
static char https_[] = "https";
126-
return https_;
127-
}
128-
129-
};
130-
131-
template <class Tag>
132-
struct constants_wide {
133-
134-
static wchar_t const * https() {
135-
static wchar_t https_[] = L"https";
136-
return https_;
137-
}
138-
139-
};
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+
};
140126
}
141127

142128
template <class Tag>
143-
struct constants :
144-
mpl::if_<
145-
is_default_string<Tag>,
146-
impl::constants_narrow<Tag>,
147-
typename mpl::if_<
148-
is_default_wstring<Tag>,
149-
impl::constants_wide<Tag>,
150-
unsupported_tag<Tag>
151-
>::type
152-
>::type
153-
{};
154-
155-
} // namespace network
156-
157-
} // namespace boost
158-
159-
#endif // BOOST_NETWORK_CONSTANTS_HPP_20100808
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
136+
137+
} // namespace boost
138+
139+
#endif // BOOST_NETWORK_CONSTANTS_HPP_20100808

boost/network/detail/debug.hpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
the macro amounts to a no-op.
1313
*/
1414
#ifdef BOOST_NETWORK_DEBUG
15-
# include <iostream>
16-
# ifndef BOOST_NETWORK_MESSAGE
17-
# define BOOST_NETWORK_MESSAGE(msg) std::cerr << "[DEBUG " << __FILE__ << ':' << __LINE__ << "]: " << msg << std::endl;
18-
# endif
15+
#include <iostream>
16+
#ifndef BOOST_NETWORK_MESSAGE
17+
#define BOOST_NETWORK_MESSAGE(msg) \
18+
std::cerr << "[DEBUG " << __FILE__ << ':' << __LINE__ << "]: " << msg \
19+
<< std::endl;
20+
#endif
1921
#else
20-
# ifndef BOOST_NETWORK_MESSAGE
21-
# define BOOST_NETWORK_MESSAGE(msg)
22-
# endif
22+
#ifndef BOOST_NETWORK_MESSAGE
23+
#define BOOST_NETWORK_MESSAGE(msg)
24+
#endif
2325
#endif
2426

2527
#endif /* end of include guard: BOOST_NETWORK_DEBUG_HPP_20110410 */

boost/network/detail/directive_base.hpp

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,24 @@
1010
/** Defines the base type from which all directives inherit
1111
* to allow friend access to message and other types' internals.
1212
*/
13-
namespace boost { namespace network { namespace detail {
13+
namespace boost {
14+
namespace network {
15+
namespace detail {
1416

15-
template <class Tag>
16-
struct directive_base {
17-
typedef Tag tag ;
18-
//explicit directive_base(basic_message<tag> & message_)
19-
// : _message(message_)
20-
protected:
21-
~directive_base()
22-
{ }; // 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

31-
} // namespace boost
32-
33-
#endif // __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
31+
} // namespace boost
3432

33+
#endif // __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__

0 commit comments

Comments
 (0)