[clang] No spaces after colon and comma in initializer list (PR #190657)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 11:50:06 PDT 2026


================
@@ -5549,6 +5554,8 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line,
     return true;
   if (Right.is(TT_CtorInitializerColon))
     return Style.SpaceBeforeCtorInitializerColon;
+  if (Right.Previous->is(TT_CtorInitializerColon))
----------------
HazardyKnusperkeks wrote:

That is not what I meant... please use `Left` and move it to the other `Left` checks.

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


More information about the cfe-commits mailing list