summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestHandlerCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-09 11:17:10 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-09 11:17:10 -0500
commit6503a0eecce984c3c5ede6f0d1f4951a14f9cc3f (patch)
treea47c2d44773e08cd539959332fbb7fe688b35090 /Source/CTest/cmCTestHandlerCommand.cxx
parent10d1b2079072150321ee29b249fc39f116671375 (diff)
downloadcmake-6503a0eecce984c3c5ede6f0d1f4951a14f9cc3f.tar.gz
STYLE: Fix some style issues
Diffstat (limited to 'Source/CTest/cmCTestHandlerCommand.cxx')
-rw-r--r--Source/CTest/cmCTestHandlerCommand.cxx32
1 files changed, 21 insertions, 11 deletions
diff --git a/Source/CTest/cmCTestHandlerCommand.cxx b/Source/CTest/cmCTestHandlerCommand.cxx
index fbb95c17a4..e030a5f4ed 100644
--- a/Source/CTest/cmCTestHandlerCommand.cxx
+++ b/Source/CTest/cmCTestHandlerCommand.cxx
@@ -9,8 +9,8 @@
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
@@ -38,7 +38,8 @@ cmCTestHandlerCommand::cmCTestHandlerCommand()
bool cmCTestHandlerCommand::InitialPass(
std::vector<std::string> const& args)
{
- if ( !this->ProcessArguments(args, m_Last, &*m_Arguments.begin(), m_Values) )
+ if ( !this->ProcessArguments(args, m_Last, &*m_Arguments.begin(),
+ m_Values) )
{
return false;
}
@@ -58,8 +59,11 @@ bool cmCTestHandlerCommand::InitialPass(
{
if ( m_CTest->GetDartVersion() <= 1 )
{
- cmCTestLog(m_CTest, ERROR_MESSAGE, "Dart before version 2.0 does not support collecting submissions." << std::endl
- << "Please upgrade the server to Dart 2 or higher, or do not use SUBMIT_INDEX." << std::endl);
+ cmCTestLog(m_CTest, ERROR_MESSAGE,
+ "Dart before version 2.0 does not support collecting submissions."
+ << std::endl
+ << "Please upgrade the server to Dart 2 or higher, or do not use "
+ "SUBMIT_INDEX." << std::endl);
}
else
{
@@ -69,7 +73,8 @@ bool cmCTestHandlerCommand::InitialPass(
std::string current_dir = cmSystemTools::GetCurrentWorkingDirectory();
- cmSystemTools::ChangeDirectory(m_CTest->GetCTestConfiguration("BuildDirectory").c_str());
+ cmSystemTools::ChangeDirectory(
+ m_CTest->GetCTestConfiguration("BuildDirectory").c_str());
int res = handler->ProcessHandler();
if ( m_Values[ct_RETURN_VALUE] && *m_Values[ct_RETURN_VALUE])
{
@@ -81,8 +86,9 @@ bool cmCTestHandlerCommand::InitialPass(
return true;
}
-bool cmCTestHandlerCommand::ProcessArguments(std::vector<std::string> const& args,
- int last, const char** strings, std::vector<const char*>& values)
+bool cmCTestHandlerCommand::ProcessArguments(
+ std::vector<std::string> const& args, int last, const char** strings,
+ std::vector<const char*>& values)
{
int state = 0;
int cc;
@@ -98,7 +104,8 @@ bool cmCTestHandlerCommand::ProcessArguments(std::vector<std::string> const& arg
{
values[state] = args[i].c_str();
#undef cerr
- cmCTestLog(m_CTest, DEBUG, "Set " << strings[state] << " to " << args[i].c_str() << std::endl);
+ cmCTestLog(m_CTest, DEBUG, "Set " << strings[state] << " to "
+ << args[i].c_str() << std::endl);
state = 0;
}
else
@@ -112,7 +119,8 @@ bool cmCTestHandlerCommand::ProcessArguments(std::vector<std::string> const& arg
if ( values[state] )
{
cmOStringStream ostr;
- ostr << "called with incorrect number of arguments. " << strings[state] << " specified twice.";
+ ostr << "called with incorrect number of arguments. "
+ << strings[state] << " specified twice.";
this->SetError(ostr.str().c_str());
return false;
}
@@ -123,7 +131,9 @@ bool cmCTestHandlerCommand::ProcessArguments(std::vector<std::string> const& arg
if ( !found )
{
cmOStringStream str;
- str << "called with incorrect number of arguments. Extra argument is: " << args[i].c_str() << ".";
+ str
+ << "called with incorrect number of arguments. Extra argument is: "
+ << args[i].c_str() << ".";
this->SetError(str.str().c_str());
return false;
}