[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 27 15:17:36 PDT 2025


================
@@ -2074,6 +2087,7 @@ class AnnotatingParser {
       if (ctx.ContextType == Context::StructArrayInitializer)
         return LT_ArrayOfStructInitializer;
 
+    markTokenAsTemplateArgumentInLine();
----------------
HazardyKnusperkeks wrote:

I think you want this before the preceding loop. And can you get it into the first pass of the line? Just going through all tokens again doesn't seem nice.

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


More information about the cfe-commits mailing list