Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite5ea5b5

Browse files
committed
clang-format -ifind . -name "*.*pp"
1 parent15b6206 commite5ea5b5

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-
namespaceboost {namespacenetwork {
13+
namespaceboost {
14+
namespacenetwork {
1415

1516
namespaceimpl {
16-
template<classTag>
17-
structconstants_narrow {
18-
19-
staticcharconst *crlf() {
20-
staticchar crlf_[] = {'\r','\n',0 };
21-
return crlf_;
22-
}
23-
24-
staticcharconst *dot() {
25-
staticchar dot_[] = {'.',0 };
26-
return dot_;
27-
}
28-
29-
staticchardot_char() {return'.'; }
30-
31-
staticcharconst *http_slash() {
32-
staticchar http_slash_[] = {'H','T','T','P','/',0 };
33-
return http_slash_;
34-
}
35-
36-
staticcharconst *space() {
37-
staticchar space_[] = {'',0};
38-
return space_;
39-
}
40-
41-
staticcharspace_char() {return''; }
42-
43-
staticcharconst *slash() {
44-
staticchar slash_[] = {'/',0};
45-
return slash_;
46-
}
47-
48-
staticcharslash_char() {return'/'; }
49-
50-
staticcharconst *host() {
51-
staticchar host_[] = {'H','o','s','t',0};
52-
return host_;
53-
}
54-
55-
staticcharconst *colon() {
56-
staticchar colon_[] = {':',0};
57-
return colon_;
58-
}
59-
60-
staticcharcolon_char() {return':'; }
61-
62-
staticcharconst *accept() {
63-
staticchar accept_[] = {'A','c','c','e','p','t',0};
64-
return accept_;
65-
}
66-
67-
staticcharconst *default_accept_mime() {
68-
staticchar mime_[] = {
69-
'*','/','*',0
70-
};
71-
return mime_;
72-
}
73-
74-
staticcharconst *accept_encoding() {
75-
staticchar 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-
staticcharconst *default_accept_encoding() {
82-
staticchar 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-
staticcharconst *user_agent() {
89-
staticchar user_agent_[] = {
90-
'U','s','e','r','-','A','g','e','n','t',0
91-
};
92-
return user_agent_;
93-
}
94-
95-
staticcharconst *cpp_netlib_slash() {
96-
staticchar cpp_netlib_slash_[] = {
97-
'c','p','p','-','n','e','t','l','i','b','/',0
98-
};
99-
return cpp_netlib_slash_;
100-
}
101-
102-
staticcharquestion_mark_char() {
103-
return'?';
104-
}
105-
106-
staticcharhash_char() {
107-
return'#';
108-
}
109-
110-
staticcharconst *connection() {
111-
staticchar connection_[] = {
112-
'C','o','n','n','e','c','t','i','o','n',0
113-
};
114-
return connection_;
115-
}
116-
117-
staticcharconst *close() {
118-
staticchar close_[] = {
119-
'C','l','o','s','e',0
120-
};
121-
return close_;
122-
}
123-
124-
staticcharconst *https() {
125-
staticchar https_[] ="https";
126-
return https_;
127-
}
128-
129-
};
130-
131-
template<classTag>
132-
structconstants_wide {
133-
134-
staticwchar_tconst *https() {
135-
staticwchar_t https_[] =L"https";
136-
return https_;
137-
}
138-
139-
};
17+
template<classTag>structconstants_narrow {
18+
19+
staticcharconst*crlf() {
20+
staticchar crlf_[] = {'\r','\n',0};
21+
return crlf_;
22+
}
23+
24+
staticcharconst*dot() {
25+
staticchar dot_[] = {'.',0};
26+
return dot_;
27+
}
28+
29+
staticchardot_char() {return'.'; }
30+
31+
staticcharconst*http_slash() {
32+
staticchar http_slash_[] = {'H','T','T','P','/',0};
33+
return http_slash_;
34+
}
35+
36+
staticcharconst*space() {
37+
staticchar space_[] = {'',0};
38+
return space_;
39+
}
40+
41+
staticcharspace_char() {return''; }
42+
43+
staticcharconst*slash() {
44+
staticchar slash_[] = {'/',0};
45+
return slash_;
46+
}
47+
48+
staticcharslash_char() {return'/'; }
49+
50+
staticcharconst*host() {
51+
staticchar host_[] = {'H','o','s','t',0};
52+
return host_;
53+
}
54+
55+
staticcharconst*colon() {
56+
staticchar colon_[] = {':',0};
57+
return colon_;
58+
}
59+
60+
staticcharcolon_char() {return':'; }
61+
62+
staticcharconst*accept() {
63+
staticchar accept_[] = {'A','c','c','e','p','t',0};
64+
return accept_;
65+
}
66+
67+
staticcharconst*default_accept_mime() {
68+
staticchar mime_[] = {'*','/','*',0};
69+
return mime_;
70+
}
71+
72+
staticcharconst*accept_encoding() {
73+
staticchar 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+
staticcharconst*default_accept_encoding() {
80+
staticchar 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+
staticcharconst*user_agent() {
87+
staticchar user_agent_[] = {'U','s','e','r','-','A',
88+
'g','e','n','t',0};
89+
return user_agent_;
90+
}
91+
92+
staticcharconst*cpp_netlib_slash() {
93+
staticchar cpp_netlib_slash_[] = {'c','p','p','-','n','e',
94+
't','l','i','b','/',0};
95+
return cpp_netlib_slash_;
96+
}
97+
98+
staticcharquestion_mark_char() {return'?'; }
99+
100+
staticcharhash_char() {return'#'; }
101+
102+
staticcharconst*connection() {
103+
staticchar connection_[] = {'C','o','n','n','e','c',
104+
't','i','o','n',0};
105+
return connection_;
106+
}
107+
108+
staticcharconst*close() {
109+
staticchar close_[] = {'C','l','o','s','e',0};
110+
return close_;
111+
}
112+
113+
staticcharconst*https() {
114+
staticchar https_[] ="https";
115+
return https_;
116+
}
117+
};
118+
119+
template<classTag>structconstants_wide {
120+
121+
staticwchar_tconst*https() {
122+
staticwchar_t https_[] =L"https";
123+
return https_;
124+
}
125+
};
140126
}
141127

142128
template<classTag>
143-
structconstants :
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+
structconstants
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-
#defineBOOST_NETWORK_MESSAGE(msg) std::cerr <<"[DEBUG" << __FILE__ <<':' << __LINE__ <<"]:" << msg << std::endl;
18-
#endif
15+
#include<iostream>
16+
#ifndef BOOST_NETWORK_MESSAGE
17+
#defineBOOST_NETWORK_MESSAGE(msg) \
18+
std::cerr <<"[DEBUG" << __FILE__ <<':' << __LINE__ <<"]:" << msg \
19+
<< std::endl;
20+
#endif
1921
#else
20-
#ifndef BOOST_NETWORK_MESSAGE
21-
#defineBOOST_NETWORK_MESSAGE(msg)
22-
#endif
22+
#ifndef BOOST_NETWORK_MESSAGE
23+
#defineBOOST_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-
namespaceboost {namespacenetwork {namespacedetail {
13+
namespaceboost {
14+
namespacenetwork {
15+
namespacedetail {
1416

15-
template<classTag>
16-
structdirective_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<classTag>structdirective_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)

[8]ページ先頭

©2009-2025 Movatter.jp