summaryrefslogtreecommitdiff
path: root/Source/cmNinjaTargetGenerator.h
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2016-05-16 10:34:04 -0400
committerBrad King <brad.king@kitware.com>2016-05-16 16:05:19 -0400
commitd9fd2f5402eeaa345691313658e02b51038f570b (patch)
treedca71b9a7e267f4c6300da3eb770415381726785 /Source/cmNinjaTargetGenerator.h
parent82df6deaafb36cbbfd450202bb20b320f637751a (diff)
downloadcmake-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/cmNinjaTargetGenerator.h')
-rw-r--r--Source/cmNinjaTargetGenerator.h52
1 files changed, 25 insertions, 27 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h
index 8225a60f4c..414aa09c48 100644
--- a/Source/cmNinjaTargetGenerator.h
+++ b/Source/cmNinjaTargetGenerator.h
@@ -27,7 +27,7 @@ class cmMakefile;
class cmSourceFile;
class cmCustomCommand;
-class cmNinjaTargetGenerator: public cmCommonTargetGenerator
+class cmNinjaTargetGenerator : public cmCommonTargetGenerator
{
public:
/// Create a cmNinjaTargetGenerator according to the @a target's type.
@@ -46,22 +46,24 @@ public:
bool NeedDepTypeMSVC(const std::string& lang) const;
protected:
-
bool SetMsvcTargetPdbVariable(cmNinjaVars&) const;
cmGeneratedFileStream& GetBuildFileStream() const;
cmGeneratedFileStream& GetRulesFileStream() const;
cmGeneratorTarget* GetGeneratorTarget() const
- { return this->GeneratorTarget; }
+ {
+ return this->GeneratorTarget;
+ }
cmLocalNinjaGenerator* GetLocalGenerator() const
- { return this->LocalGenerator; }
+ {
+ return this->LocalGenerator;
+ }
cmGlobalNinjaGenerator* GetGlobalGenerator() const;
- cmMakefile* GetMakefile() const
- { return this->Makefile; }
+ cmMakefile* GetMakefile() const { return this->Makefile; }
std::string LanguageCompilerRule(const std::string& lang) const;
@@ -82,10 +84,12 @@ protected:
std::string ComputeDefines(cmSourceFile const* source,
const std::string& language);
- std::string ConvertToNinjaPath(const std::string& path) const {
+ std::string ConvertToNinjaPath(const std::string& path) const
+ {
return this->GetGlobalGenerator()->ConvertToNinjaPath(path);
}
- cmGlobalNinjaGenerator::MapToNinjaPathImpl MapToNinjaPath() const {
+ cmGlobalNinjaGenerator::MapToNinjaPathImpl MapToNinjaPath() const
+ {
return this->GetGlobalGenerator()->MapToNinjaPath();
}
@@ -111,28 +115,24 @@ protected:
bool writeOrderDependsTargetForTarget);
void ExportObjectCompileCommand(
- std::string const& language,
- std::string const& sourceFileName,
- std::string const& objectDir,
- std::string const& objectFileName,
- std::string const& objectFileDir,
- std::string const& flags,
- std::string const& defines,
- std::string const& includes
- );
-
- cmNinjaDeps GetObjects() const
- { return this->Objects; }
+ std::string const& language, std::string const& sourceFileName,
+ std::string const& objectDir, std::string const& objectFileName,
+ std::string const& objectFileDir, std::string const& flags,
+ std::string const& defines, std::string const& includes);
+
+ cmNinjaDeps GetObjects() const { return this->Objects; }
void EnsureDirectoryExists(const std::string& dir) const;
void EnsureParentDirectoryExists(const std::string& path) const;
// write rules for Mac OS X Application Bundle content.
- struct MacOSXContentGeneratorType :
- cmOSXBundleGenerator::MacOSXContentGeneratorType
+ struct MacOSXContentGeneratorType
+ : cmOSXBundleGenerator::MacOSXContentGeneratorType
{
- MacOSXContentGeneratorType(cmNinjaTargetGenerator* g) :
- Generator(g) {}
+ MacOSXContentGeneratorType(cmNinjaTargetGenerator* g)
+ : Generator(g)
+ {
+ }
void operator()(cmSourceFile const& source, const char* pkgloc);
@@ -141,15 +141,13 @@ protected:
};
friend struct MacOSXContentGeneratorType;
-
MacOSXContentGeneratorType* MacOSXContentGenerator;
// Properly initialized by sub-classes.
cmOSXBundleGenerator* OSXBundleGenerator;
std::set<std::string> MacContentFolders;
void addPoolNinjaVariable(const std::string& pool_property,
- cmGeneratorTarget* target,
- cmNinjaVars& vars);
+ cmGeneratorTarget* target, cmNinjaVars& vars);
bool ForceResponseFile();