diff options
author | Kitware Robot <kwrobot@kitware.com> | 2016-05-16 10:34:04 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-16 16:05:19 -0400 |
commit | d9fd2f5402eeaa345691313658e02b51038f570b (patch) | |
tree | dca71b9a7e267f4c6300da3eb770415381726785 /Source/cmExportBuildFileGenerator.h | |
parent | 82df6deaafb36cbbfd450202bb20b320f637751a (diff) | |
download | cmake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.gz |
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/cmExportBuildFileGenerator.h')
-rw-r--r-- | Source/cmExportBuildFileGenerator.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Source/cmExportBuildFileGenerator.h b/Source/cmExportBuildFileGenerator.h index 85aae2fa47..be3c70a2e4 100644 --- a/Source/cmExportBuildFileGenerator.h +++ b/Source/cmExportBuildFileGenerator.h @@ -26,18 +26,21 @@ class cmExportSet; * * This is used to implement the EXPORT() command. */ -class cmExportBuildFileGenerator: public cmExportFileGenerator +class cmExportBuildFileGenerator : public cmExportFileGenerator { public: cmExportBuildFileGenerator(); /** Set the list of targets to export. */ void SetTargets(std::vector<std::string> const& targets) - { this->Targets = targets; } - void GetTargets(std::vector<std::string> &targets) const; + { + this->Targets = targets; + } + void GetTargets(std::vector<std::string>& targets) const; void AppendTargets(std::vector<std::string> const& targets) - { this->Targets.insert(this->Targets.end(), - targets.begin(), targets.end()); } + { + this->Targets.insert(this->Targets.end(), targets.begin(), targets.end()); + } void SetExportSet(cmExportSet*); /** Set whether to append generated code to the output file. */ @@ -48,10 +51,9 @@ public: protected: // Implement virtual methods from the superclass. virtual bool GenerateMainFile(std::ostream& os); - virtual void GenerateImportTargetsConfig(std::ostream& os, - const std::string& config, - std::string const& suffix, - std::vector<std::string> &missingTargets); + virtual void GenerateImportTargetsConfig( + std::ostream& os, const std::string& config, std::string const& suffix, + std::vector<std::string>& missingTargets); virtual void HandleMissingTarget(std::string& link_libs, std::vector<std::string>& missingTargets, cmGeneratorTarget* depender, @@ -70,11 +72,11 @@ protected: std::string InstallNameDir(cmGeneratorTarget* target, const std::string& config); - std::vector<std::string> - FindNamespaces(cmGlobalGenerator* gg, const std::string& name); + std::vector<std::string> FindNamespaces(cmGlobalGenerator* gg, + const std::string& name); std::vector<std::string> Targets; - cmExportSet *ExportSet; + cmExportSet* ExportSet; std::vector<cmGeneratorTarget*> Exports; cmLocalGenerator* LG; }; |