I’m mostly indenting the multi-line template parameters as below.
// clang-format off
struct Pretty {
std::vector<
std::pair<
size_t,
std::vector<float>
>
> value;
size_t destinationID;
};
// clang-format on
But, I couldn’t achieve such a format using the clang-format
. Is there a way of doing it?
struct Ugly {
std::vector<
std::pair<
size_t,
std::vector<float>
>>
value;
size_t destinationID;
};
I’m using clang-format v20.0.0
7