enum FormatStyle::TrailingCommaStyle
Description
The style of inserting trailing commas into container literals.
Declared at: clang/include/clang/Format/Format.h:831
Enumerators
Name | Value | Comment |
---|---|---|
TCS_None | 0 | Do not insert trailing commas. |
TCS_Wrapped | 1 | Insert 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. |