[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 21 05:25:44 PDT 2025
================
@@ -148,6 +158,32 @@ class AnnotatingParser {
}
}
+ const FormatStyle::FunctionDeclarationWithKeywords *
+ findFunctionWithKeywordedParameters() const {
+ const FormatToken *TokBeforeFirstLParent{};
+ for (const FormatToken *T = Line.First; T != Line.Last; T = T->Next) {
+ if (T->TokenText == StringRef("(", 1)) {
----------------
mydeveloperday wrote:
does it need to be found by string? could it be by T->is(l_paren)
https://github.com/llvm/llvm-project/pull/131605
More information about the cfe-commits
mailing list