[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
Tue Apr 7 13:36:01 PDT 2026
================
@@ -5549,6 +5551,8 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line,
return true;
if (Right.is(TT_CtorInitializerColon))
return Style.SpaceBeforeCtorInitializerColon;
+ if (Left.is(TT_CtorInitializerColon))
----------------
HazardyKnusperkeks wrote:
All checks here are for `Right` don't mix it with putting the `Left` check here.
https://github.com/llvm/llvm-project/pull/190657
More information about the cfe-commits
mailing list