clang-format: break on function arguments instead of function qualifiers (noexcept)
I am in agreement that no combination of rules will get the desired output, but there is a way to force it when you spot stuff like this.
Add a line comment (can be empty) after your first parameter. clang-format will then align your parameters for you.
void scheduler::stop_mark(service& current, //
service const& stopped) const noexcept {
// ...
}
For what it's worth, it seems like clang-format 10.0.1 does what you want:
$> clang-format --version
clang-format version 10.0.1 (Fedora 10.0.1-3.fc32)
$> echo " void scheduler::stop_mark(service ¤t, service const &stopped) const noexcept { /* ... */ }" | clang-format --style=LLVM
void scheduler::stop_mark(service ¤t,
service const &stopped) const noexcept { /* ... */
}