mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-20 14:58:38 -05:00
Revise C++ coding style using clang-format-6.0
Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
This commit is contained in:
@@ -98,6 +98,7 @@ public:
|
||||
/** Is there a keyword which should be skipped in
|
||||
the arguments (e.g. ARGS for ADD_CUSTOM_COMMAND) ? */
|
||||
void SetIgnore(const char* ignore) { this->Ignore = ignore; }
|
||||
|
||||
private:
|
||||
std::vector<std::string> Vector;
|
||||
unsigned int DataStart;
|
||||
@@ -118,6 +119,7 @@ public:
|
||||
/// Return the string
|
||||
const std::string& GetString() const { return this->String; }
|
||||
const char* GetCString() const { return this->String.c_str(); }
|
||||
|
||||
private:
|
||||
std::string String;
|
||||
unsigned int DataStart;
|
||||
@@ -136,6 +138,7 @@ public:
|
||||
|
||||
/// Has it been enabled ?
|
||||
bool IsEnabled() const { return this->Enabled; }
|
||||
|
||||
private:
|
||||
bool Enabled;
|
||||
bool DoConsume(const std::string& arg, unsigned int index) override;
|
||||
@@ -153,6 +156,7 @@ public:
|
||||
|
||||
/// Is it still enabled ?
|
||||
bool IsEnabled() const { return this->Enabled; }
|
||||
|
||||
private:
|
||||
bool Enabled;
|
||||
bool DoConsume(const std::string& arg, unsigned int index) override;
|
||||
|
||||
Reference in New Issue
Block a user