[clang] [clang-format] Allow line breaking with PointerAlignment configured (PR #164686)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 29 10:31:53 PDT 2025


sstwcw wrote:

> The `TT_PointerOrReference` token (`*`, `&`, or `&&`) before a declarator is part of the type and should not go with the declarator, so wrapping before `*` doesn't make sense IMO.

> I'd say break before `*` because `const` qualifies it.

Do I get it right?  The program should prefer breaking after the `*const` part and fall back to breaking before the `*const` part when the former violates the column limit, regardless of the PAS configuration.

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


More information about the cfe-commits mailing list