HazardyKnusperkeks wrote:

> yes, issue with breaking after << is gone. I want to get your point about 
> functionality clang-format and implementing new option such as 
> "BreakAfterStreamOperator". As i can see, @HazardyKnusperkeks you agree with 
> "owenca" point?
> 
> May be i can do something with this feature

You are welcome to try. I'd go with the name `BreakAfterOperatorLessLess`. You 
need:

- [ ] The definition in `FormatStyle.h`.
- [ ] The documentation. (Run `clang/doc/tools/dump_format_style.py`)
- [ ] The parsing.
- [ ] The default value for `LLVMStyle` which does not change any current 
behavior.
- [ ] Tests which show various combinations of the option, with comments, and 
long lines.
- [ ] Consider the interaction with `BreakBeforeBinaryOperators`.

You can of course start with documentation and/or tests to show how you think 
it will work, even if you did not try to implement it.

https://github.com/llvm/llvm-project/pull/69859
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to