Remove explicit sizes from make_array calls
This commit is contained in:
parent
a5d662f7fe
commit
3c34de7fe7
|
@ -25,7 +25,7 @@ enum class EolFormat
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<EolFormat>)
|
||||
{
|
||||
return make_array<EnumDesc<EolFormat>, 2>({
|
||||
return make_array<EnumDesc<EolFormat>>({
|
||||
{ EolFormat::Lf, "lf" },
|
||||
{ EolFormat::Crlf, "crlf" },
|
||||
});
|
||||
|
@ -39,7 +39,7 @@ enum class ByteOrderMark
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<ByteOrderMark>)
|
||||
{
|
||||
return make_array<EnumDesc<ByteOrderMark>, 2>({
|
||||
return make_array<EnumDesc<ByteOrderMark>>({
|
||||
{ ByteOrderMark::None, "none" },
|
||||
{ ByteOrderMark::Utf8, "utf8" },
|
||||
});
|
||||
|
|
|
@ -140,7 +140,7 @@ enum class Autoreload
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<Autoreload>)
|
||||
{
|
||||
return make_array<EnumDesc<Autoreload>, 5>({
|
||||
return make_array<EnumDesc<Autoreload>>({
|
||||
{ Autoreload::Yes, "yes" },
|
||||
{ Autoreload::No, "no" },
|
||||
{ Autoreload::Ask, "ask" },
|
||||
|
|
|
@ -60,7 +60,7 @@ enum class WriteMethod
|
|||
};
|
||||
constexpr auto enum_desc(Meta::Type<WriteMethod>)
|
||||
{
|
||||
return make_array<EnumDesc<WriteMethod>, 2>({
|
||||
return make_array<EnumDesc<WriteMethod>>({
|
||||
{ WriteMethod::Overwrite, "overwrite" },
|
||||
{ WriteMethod::Replace, "replace" },
|
||||
});
|
||||
|
|
|
@ -58,7 +58,7 @@ enum class Hook
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<Hook>)
|
||||
{
|
||||
return make_array<EnumDesc<Hook>, 38>({
|
||||
return make_array<EnumDesc<Hook>>({
|
||||
{Hook::BufCreate, "BufCreate"},
|
||||
{Hook::BufNewFile, "BufNewFile"},
|
||||
{Hook::BufOpenFile, "BufOpenFile"},
|
||||
|
|
|
@ -148,7 +148,7 @@ constexpr bool with_bit_ops(Meta::Type<AutoInfo>) { return true; }
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<AutoInfo>)
|
||||
{
|
||||
return make_array<EnumDesc<AutoInfo>, 3>({
|
||||
return make_array<EnumDesc<AutoInfo>>({
|
||||
{ AutoInfo::Command, "command"},
|
||||
{ AutoInfo::OnKey, "onkey"},
|
||||
{ AutoInfo::Normal, "normal" }
|
||||
|
@ -165,7 +165,7 @@ constexpr bool with_bit_ops(Meta::Type<AutoComplete>) { return true; }
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<AutoComplete>)
|
||||
{
|
||||
return make_array<EnumDesc<AutoComplete>, 3>({
|
||||
return make_array<EnumDesc<AutoComplete>>({
|
||||
{ AutoComplete::Insert, "insert"},
|
||||
{ AutoComplete::Prompt, "prompt" }
|
||||
});
|
||||
|
|
|
@ -40,7 +40,7 @@ enum class SelectMode
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<SelectMode>)
|
||||
{
|
||||
return make_array<EnumDesc<SelectMode>, 3>({
|
||||
return make_array<EnumDesc<SelectMode>>({
|
||||
{ SelectMode::Replace, "replace" },
|
||||
{ SelectMode::Extend, "extend" },
|
||||
{ SelectMode::Append, "append" },
|
||||
|
|
|
@ -77,7 +77,7 @@ constexpr bool with_bit_ops(Meta::Type<DebugFlags>) { return true; }
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<DebugFlags>)
|
||||
{
|
||||
return make_array<EnumDesc<DebugFlags>, 5>({
|
||||
return make_array<EnumDesc<DebugFlags>>({
|
||||
{ DebugFlags::Hooks, "hooks" },
|
||||
{ DebugFlags::Shell, "shell" },
|
||||
{ DebugFlags::Profile, "profile" },
|
||||
|
|
|
@ -65,7 +65,7 @@ constexpr bool with_bit_ops(Meta::Type<ObjectFlags>) { return true; }
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<ObjectFlags>)
|
||||
{
|
||||
return make_array<EnumDesc<ObjectFlags>, 3>({
|
||||
return make_array<EnumDesc<ObjectFlags>>({
|
||||
{ ObjectFlags::ToBegin, "to_begin" },
|
||||
{ ObjectFlags::ToEnd, "to_end" },
|
||||
{ ObjectFlags::Inner, "inner" },
|
||||
|
|
|
@ -147,7 +147,7 @@ enum class Quoting
|
|||
|
||||
constexpr auto enum_desc(Meta::Type<Quoting>)
|
||||
{
|
||||
return make_array<EnumDesc<Quoting>, 3>({
|
||||
return make_array<EnumDesc<Quoting>>({
|
||||
{ Quoting::Raw, "raw" },
|
||||
{ Quoting::Kakoune, "kakoune" },
|
||||
{ Quoting::Shell, "shell" }
|
||||
|
|
Loading…
Reference in New Issue
Block a user