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