Skip to content

Commit 8084b2b

Browse files
committed
let .clang-format C++ compatible
1 parent d2fc1d1 commit 8084b2b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ BasedOnStyle: LLVM
33
ColumnLimit: 120
44
IndentWidth: 4
55
AllowShortFunctionsOnASingleLine: false
6+
Standard: Cpp03

test/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ BOOST_AUTO_TEST_CASE(issue2_compare) {
472472
}
473473

474474
BOOST_AUTO_TEST_CASE(issue2_duplication) {
475-
std::vector<std::pair<int, int>> a;
475+
std::vector<std::pair<int, int> > a;
476476

477477
for (int i = 0; i < 10000; ++i) {
478478
int first = static_cast<unsigned short>(rand());
@@ -481,7 +481,7 @@ BOOST_AUTO_TEST_CASE(issue2_duplication) {
481481
a.push_back(std::make_pair(first, second));
482482
}
483483

484-
std::vector<std::pair<int, int>> expected(a);
484+
std::vector<std::pair<int, int> > expected(a);
485485

486486
std::sort(expected.begin(), expected.end(), &less_in_pair);
487487
timsort(a.begin(), a.end(), &less_in_pair);
@@ -585,7 +585,7 @@ template <typename T> struct move_only {
585585
BOOST_AUTO_TEST_CASE(shuffle10k_for_move_only_types) {
586586
const int size = 1024 * 10; // should be even number of elements
587587

588-
std::vector<move_only<int>> a;
588+
std::vector<move_only<int> > a;
589589
for (int i = 0; i < size; ++i) {
590590
a.push_back((i + 1) * 10);
591591
}

0 commit comments

Comments
 (0)