[PATCH] D125171: Add a new clang-format option AlwaysBreakBeforeFunctionParameters
jonathan molinatto via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 27 07:09:47 PDT 2023
jrmolin marked an inline comment as done.
jrmolin added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:4742-4748
+ if (Left.is(tok::l_paren) && Style.AlwaysBreakBeforeFunctionParameters &&
+ !Right.is(tok::r_paren) && Left.Previous) {
+ const FormatToken &TwoPrevious = *Left.Previous;
+ if (TwoPrevious.is(TT_FunctionDeclarationName)) {
+ return true;
+ }
+ }
----------------
HazardyKnusperkeks wrote:
> That I meant with merge.
Ah, understood. I generally don't collapse `if`s, so I didn't know how much you wanted. It seems like ... all of it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125171/new/
https://reviews.llvm.org/D125171
More information about the cfe-commits
mailing list