Issue 90880
Summary [clang-format] Can we prevent line breaks before const/override/final?
Labels clang-format
Assignees
Reporter mikamins
    Is there any way to discourage line breaks before member function specifiers? We'd prefer `const`, `override`, `final` to not end up on a line of their own.

Code before formatting:
```
    void MyFunction(const std::string& input1, const std::string& input2) const;
```

Actual:
```
    void MyFunction(const std::string& input1, const std::string& input2)
 const;
```

Desired:
```
    void MyFunction(
        const std::string& input1,
        const std::string& input2) const;
```


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to