Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Format/Format.cpp
Show First 20 Lines • Show All 437 Lines • ▼ Show 20 Lines | |||||||||||
template <> | template <> | ||||||||||
struct ScalarEnumerationTraits<FormatStyle::PackConstructorInitializersStyle> { | struct ScalarEnumerationTraits<FormatStyle::PackConstructorInitializersStyle> { | ||||||||||
static void | static void | ||||||||||
enumeration(IO &IO, FormatStyle::PackConstructorInitializersStyle &Value) { | enumeration(IO &IO, FormatStyle::PackConstructorInitializersStyle &Value) { | ||||||||||
IO.enumCase(Value, "Never", FormatStyle::PCIS_Never); | IO.enumCase(Value, "Never", FormatStyle::PCIS_Never); | ||||||||||
IO.enumCase(Value, "BinPack", FormatStyle::PCIS_BinPack); | IO.enumCase(Value, "BinPack", FormatStyle::PCIS_BinPack); | ||||||||||
IO.enumCase(Value, "CurrentLine", FormatStyle::PCIS_CurrentLine); | IO.enumCase(Value, "CurrentLine", FormatStyle::PCIS_CurrentLine); | ||||||||||
IO.enumCase(Value, "NextLine", FormatStyle::PCIS_NextLine); | IO.enumCase(Value, "NextLine", FormatStyle::PCIS_NextLine); | ||||||||||
IO.enumCase(Value, "NextLineOnly", FormatStyle::PCIS_NextLineOnly); | |||||||||||
owenpanUnsubmitted Done ReplyInline Actions
owenpan: | |||||||||||
} | } | ||||||||||
}; | }; | ||||||||||
template <> struct ScalarEnumerationTraits<FormatStyle::PointerAlignmentStyle> { | template <> struct ScalarEnumerationTraits<FormatStyle::PointerAlignmentStyle> { | ||||||||||
static void enumeration(IO &IO, FormatStyle::PointerAlignmentStyle &Value) { | static void enumeration(IO &IO, FormatStyle::PointerAlignmentStyle &Value) { | ||||||||||
IO.enumCase(Value, "Middle", FormatStyle::PAS_Middle); | IO.enumCase(Value, "Middle", FormatStyle::PAS_Middle); | ||||||||||
IO.enumCase(Value, "Left", FormatStyle::PAS_Left); | IO.enumCase(Value, "Left", FormatStyle::PAS_Left); | ||||||||||
IO.enumCase(Value, "Right", FormatStyle::PAS_Right); | IO.enumCase(Value, "Right", FormatStyle::PAS_Right); | ||||||||||
▲ Show 20 Lines • Show All 3,461 Lines • Show Last 20 Lines |