summaryrefslogtreecommitdiff
path: root/Source/cmCustomCommand.cxx
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/cmCustomCommand.cxx
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/cmCustomCommand.cxx')
-rw-r--r--Source/cmCustomCommand.cxx39
1 files changed, 19 insertions, 20 deletions
diff --git a/Source/cmCustomCommand.cxx b/Source/cmCustomCommand.cxx
index e2bd8b1df5..7c00c80a10 100644
--- a/Source/cmCustomCommand.cxx
+++ b/Source/cmCustomCommand.cxx
@@ -30,22 +30,21 @@ cmCustomCommand::cmCustomCommand(cmMakefile const* mf,
const std::vector<std::string>& depends,
const cmCustomCommandLines& commandLines,
const char* comment,
- const char* workingDirectory):
- Outputs(outputs),
- Byproducts(byproducts),
- Depends(depends),
- CommandLines(commandLines),
- Backtrace(),
- Comment(comment?comment:""),
- WorkingDirectory(workingDirectory?workingDirectory:""),
- HaveComment(comment?true:false),
- EscapeAllowMakeVars(false),
- EscapeOldStyle(true)
-{
- if(mf)
- {
+ const char* workingDirectory)
+ : Outputs(outputs)
+ , Byproducts(byproducts)
+ , Depends(depends)
+ , CommandLines(commandLines)
+ , Backtrace()
+ , Comment(comment ? comment : "")
+ , WorkingDirectory(workingDirectory ? workingDirectory : "")
+ , HaveComment(comment ? true : false)
+ , EscapeAllowMakeVars(false)
+ , EscapeOldStyle(true)
+{
+ if (mf) {
this->Backtrace = mf->GetBacktrace();
- }
+ }
}
const std::vector<std::string>& cmCustomCommand::GetOutputs() const
@@ -71,13 +70,13 @@ const cmCustomCommandLines& cmCustomCommand::GetCommandLines() const
const char* cmCustomCommand::GetComment() const
{
const char* no_comment = 0;
- return this->HaveComment? this->Comment.c_str() : no_comment;
+ return this->HaveComment ? this->Comment.c_str() : no_comment;
}
void cmCustomCommand::AppendCommands(const cmCustomCommandLines& commandLines)
{
- this->CommandLines.insert(this->CommandLines.end(),
- commandLines.begin(), commandLines.end());
+ this->CommandLines.insert(this->CommandLines.end(), commandLines.begin(),
+ commandLines.end());
}
void cmCustomCommand::AppendDepends(const std::vector<std::string>& depends)
@@ -123,8 +122,8 @@ void cmCustomCommand::SetImplicitDepends(ImplicitDependsList const& l)
void cmCustomCommand::AppendImplicitDepends(ImplicitDependsList const& l)
{
- this->ImplicitDepends.insert(this->ImplicitDepends.end(),
- l.begin(), l.end());
+ this->ImplicitDepends.insert(this->ImplicitDepends.end(), l.begin(),
+ l.end());
}
bool cmCustomCommand::GetUsesTerminal() const