diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-12 22:59:04 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-12 22:59:04 +0200 |
| commit | eba873815bbb803fb298e3fb07502d22e3c5df6e (patch) | |
| tree | 47794c27c6a4c1245b6ae14024dcf0f068605209 /utils | |
| parent | cmake: use CONFIGURE_DEPENDS (diff) | |
| download | winapi-debug-eba873815bbb803fb298e3fb07502d22e3c5df6e.tar.gz winapi-debug-eba873815bbb803fb298e3fb07502d22e3c5df6e.zip | |
unify my .clang-format files
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/command_line.hpp | 8 | ||||
| -rw-r--r-- | utils/enum_symbols.cpp | 12 |
2 files changed, 15 insertions, 5 deletions
diff --git a/utils/command_line.hpp b/utils/command_line.hpp index ebed79e..d3178f1 100644 --- a/utils/command_line.hpp +++ b/utils/command_line.hpp @@ -22,7 +22,9 @@ public: virtual ~SettingsParser() = default; - virtual const char* get_short_description() const { return "[--option VALUE]..."; } + virtual const char* get_short_description() const { + return "[--option VALUE]..."; + } virtual void parse(int argc, char* argv[]) { boost::program_options::options_description all; @@ -41,7 +43,9 @@ public: bool exit_with_usage = false; - void usage() const { std::cout << *this; } + void usage() const { + std::cout << *this; + } void usage_error(const std::exception& e) const { std::cerr << std::format("usage error: {}\n", e.what()); diff --git a/utils/enum_symbols.cpp b/utils/enum_symbols.cpp index 574f0d0..645bc13 100644 --- a/utils/enum_symbols.cpp +++ b/utils/enum_symbols.cpp @@ -38,11 +38,17 @@ public: std::vector<std::string> pdbs; - bool type_specified() const { return tag != reserved_tag; } + bool type_specified() const { + return tag != reserved_tag; + } - winapi::Symbol::Type get_type() const { return static_cast<winapi::Symbol::Type>(tag); } + winapi::Symbol::Type get_type() const { + return static_cast<winapi::Symbol::Type>(tag); + } - std::string get_mask() const { return symbol_mask; } + std::string get_mask() const { + return symbol_mask; + } private: static constexpr auto reserved_tag = |
