diff options
author | Kitware Robot <kwrobot@kitware.com> | 2016-05-16 14:34:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-16 20:05:19 (GMT) |
commit | d9fd2f5402eeaa345691313658e02b51038f570b (patch) | |
tree | dca71b9a7e267f4c6300da3eb770415381726785 /Source/cmInstallCommandArguments.h | |
parent | 82df6deaafb36cbbfd450202bb20b320f637751a (diff) | |
download | CMake-d9fd2f5402eeaa345691313658e02b51038f570b.zip CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.gz CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.bz2 |
Revise C++ coding style using clang-format
Run the `Utilities/Scripts/clang-format.bash` script to update
all our C++ code to a new style defined by `.clang-format`.
Use `clang-format` version 3.8.
* 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.
Diffstat (limited to 'Source/cmInstallCommandArguments.h')
-rw-r--r-- | Source/cmInstallCommandArguments.h | 110 |
1 files changed, 56 insertions, 54 deletions
diff --git a/Source/cmInstallCommandArguments.h b/Source/cmInstallCommandArguments.h index e83a397..6ccb3e8 100644 --- a/Source/cmInstallCommandArguments.h +++ b/Source/cmInstallCommandArguments.h @@ -19,66 +19,68 @@ class cmInstallCommandArguments { - public: - cmInstallCommandArguments(const std::string& defaultComponent); - void SetGenericArguments(cmInstallCommandArguments* args) - {this->GenericArguments = args;} - void Parse(const std::vector<std::string>* args, - std::vector<std::string>* unconsumedArgs); - - // Compute destination path.and check permissions - bool Finalize(); - - const std::string& GetDestination() const; - const std::string& GetComponent() const; - bool GetExcludeFromAll() const; - const std::string& GetRename() const; - const std::string& GetPermissions() const; - const std::vector<std::string>& GetConfigurations() const; - bool GetOptional() const; - bool GetNamelinkOnly() const; - bool GetNamelinkSkip() const; - - // once HandleDirectoryMode() is also switched to using - // cmInstallCommandArguments then these two functions can become non-static - // private member functions without arguments - static bool CheckPermissions(const std::string& onePerm, - std::string& perm); - cmCommandArgumentsHelper Parser; - cmCommandArgumentGroup ArgumentGroup; - private: - cmInstallCommandArguments(); // disabled - cmCAString Destination; - cmCAString Component; - cmCAEnabler ExcludeFromAll; - cmCAString Rename; - cmCAStringVector Permissions; - cmCAStringVector Configurations; - cmCAEnabler Optional; - cmCAEnabler NamelinkOnly; - cmCAEnabler NamelinkSkip; - - std::string DestinationString; - std::string PermissionsString; - - cmInstallCommandArguments* GenericArguments; - static const char* PermissionsTable[]; - static const std::string EmptyString; - std::string DefaultComponentName; - bool CheckPermissions(); +public: + cmInstallCommandArguments(const std::string& defaultComponent); + void SetGenericArguments(cmInstallCommandArguments* args) + { + this->GenericArguments = args; + } + void Parse(const std::vector<std::string>* args, + std::vector<std::string>* unconsumedArgs); + + // Compute destination path.and check permissions + bool Finalize(); + + const std::string& GetDestination() const; + const std::string& GetComponent() const; + bool GetExcludeFromAll() const; + const std::string& GetRename() const; + const std::string& GetPermissions() const; + const std::vector<std::string>& GetConfigurations() const; + bool GetOptional() const; + bool GetNamelinkOnly() const; + bool GetNamelinkSkip() const; + + // once HandleDirectoryMode() is also switched to using + // cmInstallCommandArguments then these two functions can become non-static + // private member functions without arguments + static bool CheckPermissions(const std::string& onePerm, std::string& perm); + cmCommandArgumentsHelper Parser; + cmCommandArgumentGroup ArgumentGroup; + +private: + cmInstallCommandArguments(); // disabled + cmCAString Destination; + cmCAString Component; + cmCAEnabler ExcludeFromAll; + cmCAString Rename; + cmCAStringVector Permissions; + cmCAStringVector Configurations; + cmCAEnabler Optional; + cmCAEnabler NamelinkOnly; + cmCAEnabler NamelinkSkip; + + std::string DestinationString; + std::string PermissionsString; + + cmInstallCommandArguments* GenericArguments; + static const char* PermissionsTable[]; + static const std::string EmptyString; + std::string DefaultComponentName; + bool CheckPermissions(); }; class cmInstallCommandIncludesArgument { - public: - cmInstallCommandIncludesArgument(); - void Parse(const std::vector<std::string>* args, - std::vector<std::string>* unconsumedArgs); +public: + cmInstallCommandIncludesArgument(); + void Parse(const std::vector<std::string>* args, + std::vector<std::string>* unconsumedArgs); - const std::vector<std::string>& GetIncludeDirs() const; + const std::vector<std::string>& GetIncludeDirs() const; - private: - std::vector<std::string> IncludeDirs; +private: + std::vector<std::string> IncludeDirs; }; #endif |