Skip to content

Commit cb4973f

Browse files
committed
Fix formatting from rename.
1 parent 226decb commit cb4973f

17 files changed

+21
-19
lines changed

apib/apib_cpu_bsd.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
/* Don't let clang-format sort includes, or this will not compile. */
17+
/* clang-format off */
18+
/* Won't compile if sorted. */
1819
#include <sys/types.h>
1920
#include <sys/sysctl.h>
2021
#include <sys/times.h>
2122
#include <unistd.h>
23+
/* clang-format on */
2224

2325
#include <cstring>
2426

apib/apib_iothread.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ limitations under the License.
2222
#include <thread>
2323

2424
#include "absl/strings/str_join.h"
25-
#include "ev.h"
2625
#include "apib/apib_lines.h"
2726
#include "apib/apib_rand.h"
2827
#include "apib/apib_reporting.h"
2928
#include "apib/apib_time.h"
3029
#include "apib/apib_url.h"
3130
#include "apib/apib_util.h"
31+
#include "ev.h"
3232

3333
namespace apib {
3434

apib/apib_iothread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ limitations under the License.
2626
#include <thread>
2727
#include <vector>
2828

29-
#include "ev.h"
30-
#include "http_parser.h"
3129
#include "apib/apib_commandqueue.h"
3230
#include "apib/apib_lines.h"
3331
#include "apib/apib_oauth.h"
3432
#include "apib/apib_rand.h"
3533
#include "apib/apib_url.h"
34+
#include "ev.h"
35+
#include "http_parser.h"
3636

3737
namespace apib {
3838

apib/apib_mon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ limitations under the License.
2222
#include <thread>
2323

2424
#include "absl/strings/string_view.h"
25-
#include "ev.h"
2625
#include "apib/apib_cpu.h"
26+
#include "ev.h"
2727

2828
namespace apib {
2929

apib/apib_url.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ limitations under the License.
2828
#include <iostream>
2929
#include <sstream>
3030

31-
#include "http_parser.h"
3231
#include "apib/apib_lines.h"
3332
#include "apib/apib_util.h"
33+
#include "http_parser.h"
3434

3535
#define URL_BUF_LEN 8192
3636
#define INITIAL_URLS 16

test/commandqueue_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
#include "gtest/gtest.h"
1817
#include "apib/apib_commandqueue.h"
18+
#include "gtest/gtest.h"
1919

2020
using apib::Command;
2121
using apib::CommandQueue;

test/cpu_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
#include "gtest/gtest.h"
1817
#include "apib/apib_cpu.h"
18+
#include "gtest/gtest.h"
1919

2020
namespace {
2121

test/io_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ limitations under the License.
1616

1717
#include <iostream>
1818

19-
#include "gtest/gtest.h"
2019
#include "apib/apib_iothread.h"
2120
#include "apib/apib_reporting.h"
2221
#include "apib/apib_url.h"
22+
#include "gtest/gtest.h"
2323
#include "test/test_server.h"
2424

2525
using apib::BenchmarkResults;

test/lines_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
#include "gtest/gtest.h"
1817
#include "apib/apib_lines.h"
18+
#include "gtest/gtest.h"
1919

2020
using apib::LineState;
2121

test/mon_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ limitations under the License.
2424
#include <iostream>
2525

2626
#include "absl/strings/numbers.h"
27-
#include "gtest/gtest.h"
2827
#include "apib/apib_cpu.h"
2928
#include "apib/apib_lines.h"
3029
#include "apib/apib_mon.h"
3130
#include "apib/apib_util.h"
31+
#include "gtest/gtest.h"
3232

3333
using std::cout;
3434
using std::endl;

test/oauth_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ limitations under the License.
1616

1717
#include <regex>
1818

19-
#include "gtest/gtest.h"
2019
#include "apib/apib_oauth.h"
20+
#include "gtest/gtest.h"
2121

2222
namespace {
2323

test/reporting_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ limitations under the License.
1616

1717
#include <memory>
1818

19-
#include "gtest/gtest.h"
2019
#include "apib/apib_iothread.h"
2120
#include "apib/apib_reporting.h"
21+
#include "gtest/gtest.h"
2222

2323
using apib::BenchmarkIntervalResults;
2424
using apib::BenchmarkResults;

test/test_server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ limitations under the License.
3434

3535
#include "absl/strings/numbers.h"
3636
#include "absl/strings/str_split.h"
37-
#include "http_parser.h"
3837
#include "apib/apib_lines.h"
3938
#include "apib/apib_util.h"
39+
#include "http_parser.h"
4040

4141
using std::cerr;
4242
using std::cout;

test/tls_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ limitations under the License.
1717
#include <assert.h>
1818
#include <openssl/ssl.h>
1919

20-
#include "gtest/gtest.h"
2120
#include "apib/apib_iothread.h"
2221
#include "apib/apib_reporting.h"
2322
#include "apib/apib_url.h"
23+
#include "gtest/gtest.h"
2424
#include "test/test_keygen.h"
2525
#include "test/test_server.h"
2626

test/url_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ limitations under the License.
2222
#include <iostream>
2323
#include <memory>
2424

25-
#include "gtest/gtest.h"
2625
#include "apib/apib_rand.h"
2726
#include "apib/apib_url.h"
27+
#include "gtest/gtest.h"
2828

2929
using apib::URLInfo;
3030

test/util_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
#include "gtest/gtest.h"
1817
#include "apib/apib_util.h"
18+
#include "gtest/gtest.h"
1919

2020
using apib::eqcase;
2121

tools/checkformat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
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
55
do
66
replacements=`clang-format --style=google --output-replacements-xml ${f} | grep '<replacement ' | wc -l`
77
if [ ${replacements} -gt 0 ]
@@ -16,7 +16,7 @@ then
1616
echo ""
1717
echo "******"
1818
echo "Some files need formatting."
19-
echo "Run checkformat -i --style=google on each"
19+
echo "Run clang-format -i --style=google on each"
2020
echo "******"
2121
fi
2222

0 commit comments

Comments
 (0)