Skip to content
Permalink
Browse files
[.clang-format] Init @ root
  • Loading branch information
SamuelMarks committed Dec 7, 2021
1 parent 7059eeb commit 6703e91046017330258ff8f41cd343566cbc588a
Showing 2 changed files with 5 additions and 0 deletions.
@@ -0,0 +1,4 @@
# Run manually to reformat a file:
# clang-format -i --style=file <file>
BasedOnStyle: Google
DerivePointerAlignment: false
@@ -118,6 +118,7 @@ pybind11::tuple SpanToTuple(absl::Span<int64_t const> xs);
template <typename T>
std::vector<T> IterableToVector(const pybind11::iterable& iterable) {
std::vector<T> output;
output.reserve(std::distance(iterable.begin(), iterable.end()));
for (auto item : iterable) {
output.push_back(item.cast<T>());
}

0 comments on commit 6703e91

Please sign in to comment.