Skip to content

Commit 4c98194

Browse files
committed
Format
1 parent 964f539 commit 4c98194

File tree

388 files changed

+74963
-64806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+74963
-64806
lines changed

cli/cmdlineparser.cpp

Lines changed: 359 additions & 363 deletions
Large diffs are not rendered by default.

cli/cmdlineparser.h

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CmdLineParser {
4343
* @param settings Settings instance that will be modified according to
4444
* options user has given.
4545
*/
46-
explicit CmdLineParser(Settings *settings);
46+
explicit CmdLineParser(Settings* settings);
4747

4848
/**
4949
* Parse given command line.
@@ -54,47 +54,34 @@ class CmdLineParser {
5454
/**
5555
* Return if user wanted to see program version.
5656
*/
57-
bool getShowVersion() const {
58-
return mShowVersion;
59-
}
57+
bool getShowVersion() const { return mShowVersion; }
6058

6159
/**
6260
* Return if user wanted to see list of error messages.
6361
*/
64-
bool getShowErrorMessages() const {
65-
return mShowErrorMessages;
66-
}
62+
bool getShowErrorMessages() const { return mShowErrorMessages; }
6763

6864
/**
6965
* Return the path names user gave to command line.
7066
*/
71-
const std::vector<std::string>& getPathNames() const {
72-
return mPathNames;
73-
}
67+
const std::vector<std::string>& getPathNames() const { return mPathNames; }
7468

7569
/**
7670
* Return if help is shown to user.
7771
*/
78-
bool getShowHelp() const {
79-
return mShowHelp;
80-
}
72+
bool getShowHelp() const { return mShowHelp; }
8173

8274
/**
8375
* Return if we should exit after printing version, help etc.
8476
*/
85-
bool exitAfterPrinting() const {
86-
return mExitAfterPrint;
87-
}
77+
bool exitAfterPrinting() const { return mExitAfterPrint; }
8878

8979
/**
9080
* Return a list of paths user wants to ignore.
9181
*/
92-
const std::vector<std::string>& getIgnoredPaths() const {
93-
return mIgnoredPaths;
94-
}
82+
const std::vector<std::string>& getIgnoredPaths() const { return mIgnoredPaths; }
9583

9684
protected:
97-
9885
/**
9986
* Print help text to the console.
10087
*/
@@ -103,13 +90,13 @@ class CmdLineParser {
10390
/**
10491
* Print message (to console?).
10592
*/
106-
static void printMessage(const std::string &message);
93+
static void printMessage(const std::string& message);
10794
static void printMessage(const char* message);
10895

10996
private:
11097
std::vector<std::string> mPathNames;
11198
std::vector<std::string> mIgnoredPaths;
112-
Settings *mSettings;
99+
Settings* mSettings;
113100
bool mShowHelp;
114101
bool mShowVersion;
115102
bool mShowErrorMessages;

0 commit comments

Comments
 (0)