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/cmGhsMultiTargetGenerator.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/cmGhsMultiTargetGenerator.h')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.h | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h index 9f18eeb..92a1109 100644 --- a/Source/cmGhsMultiTargetGenerator.h +++ b/Source/cmGhsMultiTargetGenerator.h @@ -34,91 +34,91 @@ public: virtual void Generate(); bool IncludeThisTarget(); - std::vector<cmSourceFile *> GetSources() const; + std::vector<cmSourceFile*> GetSources() const; GhsMultiGpj::Types GetGpjTag() const; static GhsMultiGpj::Types GetGpjTag(const cmGeneratorTarget* target); - const char *GetAbsBuildFilePath() const + const char* GetAbsBuildFilePath() const { return this->AbsBuildFilePath.c_str(); } - const char *GetRelBuildFileName() const + const char* GetRelBuildFileName() const { return this->RelBuildFileName.c_str(); } - const char *GetAbsBuildFileName() const + const char* GetAbsBuildFileName() const { return this->AbsBuildFileName.c_str(); } - const char *GetAbsOutputFileName() const + const char* GetAbsOutputFileName() const { return this->AbsOutputFileName.c_str(); } - static std::string GetRelBuildFilePath(const cmGeneratorTarget *target); - static std::string GetAbsPathToRoot(const cmGeneratorTarget *target); - static std::string GetAbsBuildFilePath(const cmGeneratorTarget *target); - static std::string GetRelBuildFileName(const cmGeneratorTarget *target); - static std::string GetBuildFileName(const cmGeneratorTarget *target); - static std::string AddSlashIfNeededToPath(std::string const &input); + static std::string GetRelBuildFilePath(const cmGeneratorTarget* target); + static std::string GetAbsPathToRoot(const cmGeneratorTarget* target); + static std::string GetAbsBuildFilePath(const cmGeneratorTarget* target); + static std::string GetRelBuildFileName(const cmGeneratorTarget* target); + static std::string GetBuildFileName(const cmGeneratorTarget* target); + static std::string AddSlashIfNeededToPath(std::string const& input); private: - cmGlobalGhsMultiGenerator *GetGlobalGenerator() const; - cmGeneratedFileStream *GetFolderBuildStreams() + cmGlobalGhsMultiGenerator* GetGlobalGenerator() const; + cmGeneratedFileStream* GetFolderBuildStreams() { return this->FolderBuildStreams[""]; }; bool IsTargetGroup() const { return this->TargetGroup; } - void WriteTypeSpecifics(const std::string &config, bool notKernel); - void WriteCompilerFlags(const std::string &config, - const std::string &language); - void WriteCompilerDefinitions(const std::string &config, - const std::string &language); + void WriteTypeSpecifics(const std::string& config, bool notKernel); + void WriteCompilerFlags(const std::string& config, + const std::string& language); + void WriteCompilerDefinitions(const std::string& config, + const std::string& language); - void SetCompilerFlags(std::string const &config, const std::string &language, + void SetCompilerFlags(std::string const& config, const std::string& language, bool const notKernel); - std::string GetDefines(const std::string &langugae, - std::string const &config); + std::string GetDefines(const std::string& langugae, + std::string const& config); - void WriteIncludes(const std::string &config, const std::string &language); + void WriteIncludes(const std::string& config, const std::string& language); void WriteTargetLinkLibraries(std::string const& config, std::string const& language); void WriteCustomCommands(); - void - WriteCustomCommandsHelper(std::vector<cmCustomCommand> const &commandsSet, - cmTarget::CustomCommandType commandType); + void WriteCustomCommandsHelper( + std::vector<cmCustomCommand> const& commandsSet, + cmTarget::CustomCommandType commandType); void WriteSources( - std::vector<cmSourceFile *> const &objectSources, - std::map<const cmSourceFile *, std::string> const &objectNames); - static std::map<const cmSourceFile *, std::string> - GetObjectNames(std::vector<cmSourceFile *> *objectSources, - cmLocalGhsMultiGenerator *localGhsMultiGenerator, - cmGeneratorTarget *generatorTarget); - static void WriteObjectLangOverride(cmGeneratedFileStream *fileStream, - cmSourceFile *sourceFile); - static void WriteObjectDir(cmGeneratedFileStream *fileStream, - std::string const &dir); - std::string GetOutputDirectory(const std::string &config) const; - std::string GetOutputFilename(const std::string &config) const; + std::vector<cmSourceFile*> const& objectSources, + std::map<const cmSourceFile*, std::string> const& objectNames); + static std::map<const cmSourceFile*, std::string> GetObjectNames( + std::vector<cmSourceFile*>* objectSources, + cmLocalGhsMultiGenerator* localGhsMultiGenerator, + cmGeneratorTarget* generatorTarget); + static void WriteObjectLangOverride(cmGeneratedFileStream* fileStream, + cmSourceFile* sourceFile); + static void WriteObjectDir(cmGeneratedFileStream* fileStream, + std::string const& dir); + std::string GetOutputDirectory(const std::string& config) const; + std::string GetOutputFilename(const std::string& config) const; static std::string ComputeLongestObjectDirectory( - cmLocalGhsMultiGenerator const *localGhsMultiGenerator, - cmGeneratorTarget *generatorTarget, cmSourceFile *const sourceFile); + cmLocalGhsMultiGenerator const* localGhsMultiGenerator, + cmGeneratorTarget* generatorTarget, cmSourceFile* const sourceFile); - bool IsNotKernel(std::string const &config, const std::string &language); + bool IsNotKernel(std::string const& config, const std::string& language); static bool DetermineIfTargetGroup(const cmGeneratorTarget* target); - bool DetermineIfDynamicDownload(std::string const &config, - const std::string &language); + bool DetermineIfDynamicDownload(std::string const& config, + const std::string& language); cmGeneratorTarget* GeneratorTarget; - cmLocalGhsMultiGenerator *LocalGenerator; - cmMakefile *Makefile; + cmLocalGhsMultiGenerator* LocalGenerator; + cmMakefile* Makefile; std::string AbsBuildFilePath; std::string RelBuildFilePath; std::string AbsBuildFileName; std::string RelBuildFileName; std::string RelOutputFileName; std::string AbsOutputFileName; - std::map<std::string, cmGeneratedFileStream *> FolderBuildStreams; + std::map<std::string, cmGeneratedFileStream*> FolderBuildStreams; bool TargetGroup; bool DynamicDownload; static std::string const DDOption; |