[clang] [clang-format] Allow default values for template parameters in lambda (PR #69052)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 16 03:45:52 PDT 2023
================
@@ -2268,6 +2265,12 @@ bool UnwrappedLineParser::tryToParseLambda() {
parseRequiresClause(RequiresToken);
break;
}
+ case tok::equal:
+ if (InTemplateParameterList) {
+ nextToken();
+ break;
+ }
+ return true;
----------------
owenca wrote:
```suggestion
if (!InTemplateParameterList)
return true;
nextToken();
break;
```
https://github.com/llvm/llvm-project/pull/69052
More information about the cfe-commits
mailing list