[clang] [clang-format] unexpected break after binOp '<<' (PR #69859)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 2 23:42:31 PST 2024


kadircet wrote:

@s1Sharp are there any conclusions here? our code also incidentally relied on having new lines between string literals, mostly for the sake of having a line break after string literals that end with `\n`.

what do people think about restoring the functionality to break after string literals that end with `\n`?
https://github.com/search?q=%2F%5C%5Cn%5C%22%5Cn%5Cs*%3C%3C%5C+%5C%22%2F+language%3AC%2B%2B+&type=code&ref=advsearch shows a lot of examples of such pattern, so i feel like having that without an option initially easy relatively easy and likely to preserve clang-format's behavior for a lot of existing code for the next release. afterwards we can discuss introducing more options again.

https://github.com/llvm/llvm-project/pull/69859


More information about the cfe-commits mailing list