File tree 17 files changed +21
-19
lines changed 17 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,13 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- /* Don't let clang-format sort includes, or this will not compile. */
17
+ /* clang-format off */
18
+ /* Won't compile if sorted. */
18
19
#include < sys/types.h>
19
20
#include < sys/sysctl.h>
20
21
#include < sys/times.h>
21
22
#include < unistd.h>
23
+ /* clang-format on */
22
24
23
25
#include < cstring>
24
26
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ limitations under the License.
22
22
#include < thread>
23
23
24
24
#include " absl/strings/str_join.h"
25
- #include " ev.h"
26
25
#include " apib/apib_lines.h"
27
26
#include " apib/apib_rand.h"
28
27
#include " apib/apib_reporting.h"
29
28
#include " apib/apib_time.h"
30
29
#include " apib/apib_url.h"
31
30
#include " apib/apib_util.h"
31
+ #include " ev.h"
32
32
33
33
namespace apib {
34
34
Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ limitations under the License.
26
26
#include < thread>
27
27
#include < vector>
28
28
29
- #include " ev.h"
30
- #include " http_parser.h"
31
29
#include " apib/apib_commandqueue.h"
32
30
#include " apib/apib_lines.h"
33
31
#include " apib/apib_oauth.h"
34
32
#include " apib/apib_rand.h"
35
33
#include " apib/apib_url.h"
34
+ #include " ev.h"
35
+ #include " http_parser.h"
36
36
37
37
namespace apib {
38
38
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ limitations under the License.
22
22
#include < thread>
23
23
24
24
#include " absl/strings/string_view.h"
25
- #include " ev.h"
26
25
#include " apib/apib_cpu.h"
26
+ #include " ev.h"
27
27
28
28
namespace apib {
29
29
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ limitations under the License.
28
28
#include < iostream>
29
29
#include < sstream>
30
30
31
- #include " http_parser.h"
32
31
#include " apib/apib_lines.h"
33
32
#include " apib/apib_util.h"
33
+ #include " http_parser.h"
34
34
35
35
#define URL_BUF_LEN 8192
36
36
#define INITIAL_URLS 16
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- #include " gtest/gtest.h"
18
17
#include " apib/apib_commandqueue.h"
18
+ #include " gtest/gtest.h"
19
19
20
20
using apib::Command;
21
21
using apib::CommandQueue;
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- #include " gtest/gtest.h"
18
17
#include " apib/apib_cpu.h"
18
+ #include " gtest/gtest.h"
19
19
20
20
namespace {
21
21
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ limitations under the License.
16
16
17
17
#include < iostream>
18
18
19
- #include " gtest/gtest.h"
20
19
#include " apib/apib_iothread.h"
21
20
#include " apib/apib_reporting.h"
22
21
#include " apib/apib_url.h"
22
+ #include " gtest/gtest.h"
23
23
#include " test/test_server.h"
24
24
25
25
using apib::BenchmarkResults;
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- #include " gtest/gtest.h"
18
17
#include " apib/apib_lines.h"
18
+ #include " gtest/gtest.h"
19
19
20
20
using apib::LineState;
21
21
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ limitations under the License.
24
24
#include < iostream>
25
25
26
26
#include " absl/strings/numbers.h"
27
- #include " gtest/gtest.h"
28
27
#include " apib/apib_cpu.h"
29
28
#include " apib/apib_lines.h"
30
29
#include " apib/apib_mon.h"
31
30
#include " apib/apib_util.h"
31
+ #include " gtest/gtest.h"
32
32
33
33
using std::cout;
34
34
using std::endl;
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ limitations under the License.
16
16
17
17
#include < regex>
18
18
19
- #include " gtest/gtest.h"
20
19
#include " apib/apib_oauth.h"
20
+ #include " gtest/gtest.h"
21
21
22
22
namespace {
23
23
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ limitations under the License.
16
16
17
17
#include < memory>
18
18
19
- #include " gtest/gtest.h"
20
19
#include " apib/apib_iothread.h"
21
20
#include " apib/apib_reporting.h"
21
+ #include " gtest/gtest.h"
22
22
23
23
using apib::BenchmarkIntervalResults;
24
24
using apib::BenchmarkResults;
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ limitations under the License.
34
34
35
35
#include " absl/strings/numbers.h"
36
36
#include " absl/strings/str_split.h"
37
- #include " http_parser.h"
38
37
#include " apib/apib_lines.h"
39
38
#include " apib/apib_util.h"
39
+ #include " http_parser.h"
40
40
41
41
using std::cerr;
42
42
using std::cout;
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ limitations under the License.
17
17
#include < assert.h>
18
18
#include < openssl/ssl.h>
19
19
20
- #include " gtest/gtest.h"
21
20
#include " apib/apib_iothread.h"
22
21
#include " apib/apib_reporting.h"
23
22
#include " apib/apib_url.h"
23
+ #include " gtest/gtest.h"
24
24
#include " test/test_keygen.h"
25
25
#include " test/test_server.h"
26
26
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ limitations under the License.
22
22
#include < iostream>
23
23
#include < memory>
24
24
25
- #include " gtest/gtest.h"
26
25
#include " apib/apib_rand.h"
27
26
#include " apib/apib_url.h"
27
+ #include " gtest/gtest.h"
28
28
29
29
using apib::URLInfo;
30
30
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- #include " gtest/gtest.h"
18
17
#include " apib/apib_util.h"
18
+ #include " gtest/gtest.h"
19
19
20
20
using apib::eqcase;
21
21
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
exitCode=0
4
- for f in src /* .h src /* .cc test/* .h test/* .cc
4
+ for f in apib /* .h apib /* .cc test/* .h test/* .cc
5
5
do
6
6
replacements=` clang-format --style=google --output-replacements-xml ${f} | grep ' <replacement ' | wc -l`
7
7
if [ ${replacements} -gt 0 ]
16
16
echo " "
17
17
echo " ******"
18
18
echo " Some files need formatting."
19
- echo " Run checkformat -i --style=google on each"
19
+ echo " Run clang-format -i --style=google on each"
20
20
echo " ******"
21
21
fi
22
22
You can’t perform that action at this time.
0 commit comments