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

Commit008d96d

Browse files
committed
clang-format -ifind . -name "*.*pp"
1 parentb46340e commit008d96d

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
namespaceboost {
14-
namespacenetwork {
15-
16-
namespaceimpl {
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-
};
126-
}
127-
128-
template<classTag>
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
14+
namespacenetwork {
15+
16+
namespaceimpl {
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','-','E',
74+
'n','c','o','d','i','n','g',0};
75+
return accept_encoding_;
76+
}
77+
78+
staticcharconst*default_accept_encoding() {
79+
staticchar 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+
staticcharconst*user_agent() {
86+
staticchar user_agent_[] = {'U','s','e','r','-','A',
87+
'g','e','n','t',0};
88+
return user_agent_;
89+
}
90+
91+
staticcharconst*cpp_netlib_slash() {
92+
staticchar cpp_netlib_slash_[] = {'c','p','p','-','n','e',
93+
't','l','i','b','/',0};
94+
return cpp_netlib_slash_;
95+
}
96+
97+
staticcharquestion_mark_char() {return'?'; }
98+
99+
staticcharhash_char() {return'#'; }
100+
101+
staticcharconst*connection() {
102+
staticchar connection_[] = {'C','o','n','n','e','c',
103+
't','i','o','n',0};
104+
return connection_;
105+
}
106+
107+
staticcharconst*close() {
108+
staticchar close_[] = {'C','l','o','s','e',0};
109+
return close_;
110+
}
111+
112+
staticcharconst*https() {
113+
staticchar https_[] ="https";
114+
return https_;
115+
}
116+
};
117+
118+
template<classTag>structconstants_wide {
119+
120+
staticwchar_tconst*https() {
121+
staticwchar_t https_[] =L"https";
122+
return https_;
123+
}
124+
};
125+
}
126+
127+
template<classTag>
128+
structconstants
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
namespaceboost {
14-
namespacenetwork {
15-
namespacedetail {
14+
namespacenetwork {
15+
namespacedetail {
1616

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
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

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
namespaceboost {
11-
namespacenetwork {
11+
namespacenetwork {
1212

13-
namespacedetail {
13+
namespacedetail {
1414

15-
template<classTag,classMessage>structwrapper_base {
16-
explicitwrapper_base(Message& message_) : _message(message_) {};
15+
template<classTag,classMessage>structwrapper_base {
16+
explicitwrapper_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<classTag,classMessage>structwrapper_base_const {
25-
explicitwrapper_base_const(Messageconst& message_)
26-
: _message(message_) {}
24+
template<classTag,classMessage>structwrapper_base_const {
25+
explicitwrapper_base_const(Messageconst& message_) : _message(message_) {}
2726

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

31-
Messageconst& _message;
32-
};
30+
Messageconst& _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)

[8]ページ先頭

©2009-2025 Movatter.jp