mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
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.
This commit is contained in:
@@ -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);
|
||||
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();
|
||||
// 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;
|
||||
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;
|
||||
// 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;
|
||||
|
||||
std::string DestinationString;
|
||||
std::string PermissionsString;
|
||||
private:
|
||||
cmInstallCommandArguments(); // disabled
|
||||
cmCAString Destination;
|
||||
cmCAString Component;
|
||||
cmCAEnabler ExcludeFromAll;
|
||||
cmCAString Rename;
|
||||
cmCAStringVector Permissions;
|
||||
cmCAStringVector Configurations;
|
||||
cmCAEnabler Optional;
|
||||
cmCAEnabler NamelinkOnly;
|
||||
cmCAEnabler NamelinkSkip;
|
||||
|
||||
cmInstallCommandArguments* GenericArguments;
|
||||
static const char* PermissionsTable[];
|
||||
static const std::string EmptyString;
|
||||
std::string DefaultComponentName;
|
||||
bool CheckPermissions();
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user