Format with clang-format 10
diff --git a/include/cxx.h b/include/cxx.h
index 90c0524..9a9d5fa 100644
--- a/include/cxx.h
+++ b/include/cxx.h
@@ -494,7 +494,7 @@
template <typename T>
const T &Vec<T>::back() const {
- return (*this)[this->size()-1];
+ return (*this)[this->size() - 1];
}
template <typename T>
@@ -522,14 +522,14 @@
}
template <typename T>
-bool Vec<T>::const_iterator::operator==(const const_iterator &other) const
- noexcept {
+bool Vec<T>::const_iterator::operator==(
+ const const_iterator &other) const noexcept {
return this->pos == other.pos;
}
template <typename T>
-bool Vec<T>::const_iterator::operator!=(const const_iterator &other) const
- noexcept {
+bool Vec<T>::const_iterator::operator!=(
+ const const_iterator &other) const noexcept {
return this->pos != other.pos;
}
diff --git a/src/cxx.cc b/src/cxx.cc
index 2d2349d..b953904 100644
--- a/src/cxx.cc
+++ b/src/cxx.cc
@@ -42,7 +42,7 @@
#endif
}
-template void panic<std::out_of_range> [[noreturn]] (const char *msg);
+template void panic<std::out_of_range>[[noreturn]] (const char *msg);
String::String() noexcept { cxxbridge03$string$new(this); }
diff --git a/tests/ffi/tests.cc b/tests/ffi/tests.cc
index 682b9c9..4cc771e 100644
--- a/tests/ffi/tests.cc
+++ b/tests/ffi/tests.cc
@@ -243,12 +243,8 @@
}
void c_take_rust_vec_shared_index(rust::Vec<Shared> v) {
- if (v[0].z == 1010 &&
- v.at(0).z == 1010 &&
- v.front().z == 1010 &&
- v[1].z == 1011 &&
- v.at(1).z == 1011 &&
- v.back().z == 1011) {
+ if (v[0].z == 1010 && v.at(0).z == 1010 && v.front().z == 1010 &&
+ v[1].z == 1011 && v.at(1).z == 1011 && v.back().z == 1011) {
cxx_test_suite_set_correct();
}
}
@@ -261,14 +257,8 @@
}
void c_take_ref_rust_vec_index(const rust::Vec<uint8_t> &v) {
- if (v[0] == 86 &&
- v.at(0) == 86 &&
- v.front() == 86 &&
- v[1] == 75 &&
- v.at(1) == 75 &&
- v[3] == 9 &&
- v.at(3) == 9 &&
- v.back() == 9) {
+ if (v[0] == 86 && v.at(0) == 86 && v.front() == 86 && v[1] == 75 &&
+ v.at(1) == 75 && v[3] == 9 && v.at(3) == 9 && v.back() == 9) {
cxx_test_suite_set_correct();
}
}