clang-format everything

This commit is contained in:
Hans Dembinski
2018-07-21 17:27:18 +02:00
parent 47d4d85301
commit d4dbae92f5
53 changed files with 783 additions and 907 deletions

View File

@@ -1,7 +1,7 @@
//[ guide_mixed_cpp_python_part_cpp
#include <boost/python.hpp>
#include <boost/histogram.hpp>
#include <boost/python.hpp>
namespace bh = boost::histogram;
namespace bp = boost::python;
@@ -9,13 +9,10 @@ namespace bp = boost::python;
// function that runs in C++ and accepts reference to dynamic histogram
void process(bh::dynamic_histogram<>& h) {
// fill histogram, in reality this would be arbitrarily complex code
for (int i = 0; i < 4; ++i)
h(0.25 * i, i);
for (int i = 0; i < 4; ++i) h(0.25 * i, i);
}
// a minimal Python module, which exposes the process function to Python
BOOST_PYTHON_MODULE(cpp_filler) {
bp::def("process", process);
}
BOOST_PYTHON_MODULE(cpp_filler) { bp::def("process", process); }
//]