Small code tweaks regarding flags handling
This commit is contained in:
parent
458dd2e9fa
commit
7d9f1df73a
|
@ -7,6 +7,7 @@
|
||||||
#include "context.hh"
|
#include "context.hh"
|
||||||
#include "diff.hh"
|
#include "diff.hh"
|
||||||
#include "file.hh"
|
#include "file.hh"
|
||||||
|
#include "flags.hh"
|
||||||
#include "shared_string.hh"
|
#include "shared_string.hh"
|
||||||
#include "unit_tests.hh"
|
#include "unit_tests.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#include "clock.hh"
|
#include "clock.hh"
|
||||||
#include "coord.hh"
|
#include "coord.hh"
|
||||||
#include "flags.hh"
|
|
||||||
#include "safe_ptr.hh"
|
#include "safe_ptr.hh"
|
||||||
#include "scope.hh"
|
#include "scope.hh"
|
||||||
#include "shared_string.hh"
|
#include "shared_string.hh"
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "alias_registry.hh"
|
#include "alias_registry.hh"
|
||||||
#include "assert.hh"
|
#include "assert.hh"
|
||||||
#include "context.hh"
|
#include "context.hh"
|
||||||
|
#include "flags.hh"
|
||||||
#include "register_manager.hh"
|
#include "register_manager.hh"
|
||||||
#include "shell_manager.hh"
|
#include "shell_manager.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#include "coord.hh"
|
#include "coord.hh"
|
||||||
#include "completion.hh"
|
#include "completion.hh"
|
||||||
#include "flags.hh"
|
|
||||||
#include "array_view.hh"
|
#include "array_view.hh"
|
||||||
#include "shell_manager.hh"
|
#include "shell_manager.hh"
|
||||||
#include "parameters_parser.hh"
|
#include "parameters_parser.hh"
|
||||||
|
@ -36,7 +35,6 @@ enum class CommandFlags
|
||||||
None = 0,
|
None = 0,
|
||||||
Hidden = 1,
|
Hidden = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr bool with_bit_ops(Meta::Type<CommandFlags>) { return true; }
|
constexpr bool with_bit_ops(Meta::Type<CommandFlags>) { return true; }
|
||||||
|
|
||||||
struct CommandInfo { String name, info; };
|
struct CommandInfo { String name, info; };
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "flags.hh"
|
|
||||||
#include "units.hh"
|
#include "units.hh"
|
||||||
#include "string.hh"
|
#include "string.hh"
|
||||||
#include "vector.hh"
|
#include "vector.hh"
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#include "selection.hh"
|
#include "selection.hh"
|
||||||
#include "optional.hh"
|
#include "optional.hh"
|
||||||
#include "flags.hh"
|
|
||||||
|
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
@ -86,6 +85,7 @@ public:
|
||||||
None = 0,
|
None = 0,
|
||||||
Transient = 1,
|
Transient = 1,
|
||||||
};
|
};
|
||||||
|
friend constexpr bool with_bit_ops(Meta::Type<Flags>) { return true; }
|
||||||
|
|
||||||
Context(InputHandler& input_handler, SelectionList selections,
|
Context(InputHandler& input_handler, SelectionList selections,
|
||||||
Flags flags, String name = "");
|
Flags flags, String name = "");
|
||||||
|
@ -183,8 +183,6 @@ private:
|
||||||
NestedBool m_history_disabled;
|
NestedBool m_history_disabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr bool with_bit_ops(Meta::Type<Context::Flags>) { return true; }
|
|
||||||
|
|
||||||
struct ScopedEdition
|
struct ScopedEdition
|
||||||
{
|
{
|
||||||
ScopedEdition(Context& context)
|
ScopedEdition(Context& context)
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "assert.hh"
|
#include "assert.hh"
|
||||||
#include "buffer.hh"
|
#include "buffer.hh"
|
||||||
#include "exception.hh"
|
#include "exception.hh"
|
||||||
|
#include "flags.hh"
|
||||||
#include "ranked_match.hh"
|
#include "ranked_match.hh"
|
||||||
#include "regex.hh"
|
#include "regex.hh"
|
||||||
#include "string.hh"
|
#include "string.hh"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define file_hh_INCLUDED
|
#define file_hh_INCLUDED
|
||||||
|
|
||||||
#include "array_view.hh"
|
#include "array_view.hh"
|
||||||
#include "flags.hh"
|
#include "meta.hh"
|
||||||
#include "units.hh"
|
#include "units.hh"
|
||||||
#include "vector.hh"
|
#include "vector.hh"
|
||||||
|
|
||||||
|
@ -78,7 +78,6 @@ enum class FilenameFlags
|
||||||
OnlyDirectories = 1 << 0,
|
OnlyDirectories = 1 << 0,
|
||||||
Expand = 1 << 1
|
Expand = 1 << 1
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr bool with_bit_ops(Meta::Type<FilenameFlags>) { return true; }
|
constexpr bool with_bit_ops(Meta::Type<FilenameFlags>) { return true; }
|
||||||
|
|
||||||
CandidateList complete_filename(StringView prefix, const Regex& ignore_regex,
|
CandidateList complete_filename(StringView prefix, const Regex& ignore_regex,
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include "parameters_parser.hh"
|
#include "parameters_parser.hh"
|
||||||
|
|
||||||
|
#include "flags.hh"
|
||||||
|
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
#include "exception.hh"
|
#include "exception.hh"
|
||||||
#include "hash_map.hh"
|
#include "hash_map.hh"
|
||||||
|
#include "meta.hh"
|
||||||
#include "array_view.hh"
|
#include "array_view.hh"
|
||||||
#include "flags.hh"
|
|
||||||
#include "optional.hh"
|
#include "optional.hh"
|
||||||
#include "string.hh"
|
#include "string.hh"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "selectors.hh"
|
#include "selectors.hh"
|
||||||
|
|
||||||
#include "buffer_utils.hh"
|
#include "buffer_utils.hh"
|
||||||
|
#include "flags.hh"
|
||||||
#include "optional.hh"
|
#include "optional.hh"
|
||||||
#include "regex.hh"
|
#include "regex.hh"
|
||||||
#include "string.hh"
|
#include "string.hh"
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#ifndef selectors_hh_INCLUDED
|
#ifndef selectors_hh_INCLUDED
|
||||||
#define selectors_hh_INCLUDED
|
#define selectors_hh_INCLUDED
|
||||||
|
|
||||||
#include "flags.hh"
|
|
||||||
#include "selection.hh"
|
#include "selection.hh"
|
||||||
|
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
|
|
Loading…
Reference in New Issue
Block a user