From d13f6bb870cdda71257f665367be8ef9fca86255 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 17 May 2022 11:47:01 +0200 Subject: Apply clang-format. --- src/commandline.h | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) (limited to 'src/commandline.h') diff --git a/src/commandline.h b/src/commandline.h index a0b70fb2..c93d77f5 100644 --- a/src/commandline.h +++ b/src/commandline.h @@ -1,8 +1,8 @@ #ifndef MODORGANIZER_COMMANDLINE_INCLUDED #define MODORGANIZER_COMMANDLINE_INCLUDED #include "moshortcut.h" -#include #include +#include class OrganizerCore; class MOApplication; @@ -37,7 +37,6 @@ public: // std::string moreInfo() const; - // returns all options for this command, including hidden ones; used to parse // the command line // @@ -58,11 +57,8 @@ public: // remembers the given values // - void set( - const std::wstring& originalLine, - po::variables_map vm, - std::vector untouched); - + void set(const std::wstring& originalLine, po::variables_map vm, + std::vector untouched); // called as soon as the command line has been parsed; return something to // exit immediately @@ -105,17 +101,14 @@ protected: { std::string name, description, usage, more; - Meta( - std::string name, std::string description, - std::string usage, std::string more); + Meta(std::string name, std::string description, std::string usage, + std::string more); }; - // meta // virtual Meta meta() const = 0; - // returns visible options specific to this command // virtual po::options_description getVisibleOptions() const; @@ -128,7 +121,6 @@ protected: // virtual po::positional_options_description getPositional() const; - // returns the original command line // const std::wstring& originalCmd() const; @@ -147,7 +139,6 @@ private: std::vector m_untouched; }; - // generates a crash dump for another MO process // class CrashDumpCommand : public Command @@ -158,7 +149,6 @@ protected: std::optional runEarly() override; }; - // this is the `launch` command used when starting a process from within the // virtualized directory, see processrunner.cpp // @@ -182,11 +172,10 @@ protected: int SpawnWaitProcess(LPCWSTR workingDirectory, LPCWSTR commandLine); - LPCWSTR UntouchedCommandLineArguments( - int parseArgCount, std::vector& parsedArgs); + LPCWSTR UntouchedCommandLineArguments(int parseArgCount, + std::vector& parsedArgs); }; - // runs a program or an executable // class RunCommand : public Command @@ -202,7 +191,6 @@ protected: std::optional runPostOrganizer(OrganizerCore& core) override; }; - // reloads the given plugin // class ReloadPluginCommand : public Command @@ -217,7 +205,6 @@ protected: std::optional runPostOrganizer(OrganizerCore& core) override; }; - // refreshes mo // class RefreshCommand : public Command @@ -228,8 +215,6 @@ protected: std::optional runPostOrganizer(OrganizerCore& core) override; }; - - // parses the command line and runs any given command // // the command line used to support a few commands but with no real conventions; @@ -308,7 +293,6 @@ public: // bool forwardToPrimary(MOMultiProcess& multiProcess); - // clears parsed options, used when MO is "restarted" so the options aren't // processed again // @@ -316,7 +300,7 @@ public: // global usage string plus usage for the given command, if any // - std::string usage(const Command* c=nullptr) const; + std::string usage(const Command* c = nullptr) const; // whether --pick was given // @@ -374,6 +358,6 @@ private: std::optional runEarly(); }; -} // namespace +} // namespace cl #endif // MODORGANIZER_COMMANDLINE_INCLUDED -- cgit v1.3.1