diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-12 17:49:43 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-12 22:39:06 +0200 |
| commit | 6a335fcca28693aa9039ad4e8a13ff71e9d2f9cd (patch) | |
| tree | da2c0a81932306c52d192425743e5c9efe4ae88a /include/winapi/cmd_line.hpp | |
| parent | minor fixes (diff) | |
| download | winapi-common-6a335fcca28693aa9039ad4e8a13ff71e9d2f9cd.tar.gz winapi-common-6a335fcca28693aa9039ad4e8a13ff71e9d2f9cd.zip | |
unify my .clang-format files
Diffstat (limited to 'include/winapi/cmd_line.hpp')
| -rw-r--r-- | include/winapi/cmd_line.hpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/include/winapi/cmd_line.hpp b/include/winapi/cmd_line.hpp index af83cac..97ca50f 100644 --- a/include/winapi/cmd_line.hpp +++ b/include/winapi/cmd_line.hpp @@ -85,16 +85,22 @@ public: * Get argv[0] for this command line. * @return UTF-8 string. */ - std::string get_argv0() const { return m_argv0; } + std::string get_argv0() const { + return m_argv0; + } /** Test if this command line has any additional arguments besides argv[0]. */ - bool has_args() const { return !get_args().empty(); } + bool has_args() const { + return !get_args().empty(); + } /** * Get list of arguments for this command line beyond argv[0]. * @return List of UTF-8 strings. */ - const std::vector<std::string>& get_args() const { return m_args; } + const std::vector<std::string>& get_args() const { + return m_args; + } /** * Get list of arguments for this command line. @@ -103,9 +109,13 @@ public: std::vector<std::string> get_argv() const; private: - static constexpr char token_sep() { return ' '; } + static constexpr char token_sep() { + return ' '; + } - std::string escape_argv0() const { return escape(get_argv0()); } + std::string escape_argv0() const { + return escape(get_argv0()); + } std::vector<std::string> escape_args() const; |
