joboccara/pipes

Code formatting

Opened this issue · 1 comments

Upload _clang-format or atleast rules to configure formatting tools

louy2 commented

I am using the following, but for some reason it doesn't work on pipes:

# Align pipes
BreakBeforeBinaryOperators: All
AlignConsecutiveAssignments: true
AlignOperands: true

It results in the following code:

imgs >>= pipes::transform([](Mat m) { return m.begin<Vec3b>(); })
    >>= pipes::push_back(src_its);

whereas I expected this:

imgs >>= pipes::transform([](Mat m) { return m.begin<Vec3b>(); })
     >>= pipes::push_back(src_its);