================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits