enum FormatStyle::TrailingCommaStyle

Description

The style of inserting trailing commas into container literals.

Declared at: clang/include/clang/Format/Format.h:831

Enumerators

NameValueComment
TCS_None0Do not insert trailing commas.
TCS_Wrapped1Insert trailing commas in container literals that were wrapped over multiple lines. Note that this is conceptually incompatible with bin-packing, because the trailing comma is used as an indicator that a container should be formatted one-per-line (i.e. not bin-packed). So inserting a trailing comma counteracts bin-packing.