[clang] [clang-format] Adjust requires clause wrapping (#101550) (PR #102078)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 11:38:12 PDT 2024


HazardyKnusperkeks wrote:

I see where you are coming from, and am annoyed by trailing requires clauses in my code as well, because it wraps the brace.

Nevertheless I made this on purpose, `OwnLine` says the clause has its own line(s), the brace does not belong there.
What I refrained from, when implementing it, was another option that behaves like `OwnLine` for non trailing requires clauses, and the way you want it for trailing ones.

But that would be the way to go, add an option to the enum, don't change the existing behavior.

              It should match the bracewrapping style no?

_Originally posted by @mydeveloperday in https://github.com/llvm/llvm-project/issues/101550#issuecomment-2270070789_
            
If brace wrapping should have a saying in that, I don't know. I'd lean to: no.

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


More information about the cfe-commits mailing list