summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestGenericHandler.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-09 16:17:10 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-09 16:17:10 (GMT)
commit6503a0eecce984c3c5ede6f0d1f4951a14f9cc3f (patch)
treea47c2d44773e08cd539959332fbb7fe688b35090 /Source/CTest/cmCTestGenericHandler.cxx
parent10d1b2079072150321ee29b249fc39f116671375 (diff)
downloadCMake-6503a0eecce984c3c5ede6f0d1f4951a14f9cc3f.zip
CMake-6503a0eecce984c3c5ede6f0d1f4951a14f9cc3f.tar.gz
CMake-6503a0eecce984c3c5ede6f0d1f4951a14f9cc3f.tar.bz2
STYLE: Fix some style issues
Diffstat (limited to 'Source/CTest/cmCTestGenericHandler.cxx')
-rw-r--r--Source/CTest/cmCTestGenericHandler.cxx30
1 files changed, 19 insertions, 11 deletions
diff --git a/Source/CTest/cmCTestGenericHandler.cxx b/Source/CTest/cmCTestGenericHandler.cxx
index a406d3e..b5f964d 100644
--- a/Source/CTest/cmCTestGenericHandler.cxx
+++ b/Source/CTest/cmCTestGenericHandler.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.
=========================================================================*/
@@ -41,7 +41,7 @@ void cmCTestGenericHandler::SetOption(const char* op, const char* value)
}
if ( !value )
{
- cmCTestGenericHandler::t_StringToString::iterator remit
+ cmCTestGenericHandler::t_StringToString::iterator remit
= m_Options.find(op);
if ( remit != m_Options.end() )
{
@@ -62,7 +62,7 @@ void cmCTestGenericHandler::Initialize()
//----------------------------------------------------------------------
const char* cmCTestGenericHandler::GetOption(const char* op)
{
- cmCTestGenericHandler::t_StringToString::iterator remit
+ cmCTestGenericHandler::t_StringToString::iterator remit
= m_Options.find(op);
if ( remit == m_Options.end() )
{
@@ -72,11 +72,14 @@ const char* cmCTestGenericHandler::GetOption(const char* op)
}
//----------------------------------------------------------------------
-bool cmCTestGenericHandler::StartResultingXML(const char* name, cmGeneratedFileStream& xofs)
+bool cmCTestGenericHandler::StartResultingXML(const char* name,
+ cmGeneratedFileStream& xofs)
{
if ( !name )
{
- cmCTestLog(m_CTest, ERROR_MESSAGE, "Cannot create resulting XML file without providing the name" << std::endl;);
+ cmCTestLog(m_CTest, ERROR_MESSAGE,
+ "Cannot create resulting XML file without providing the name"
+ << std::endl;);
return false;
}
cmOStringStream ostr;
@@ -86,9 +89,11 @@ bool cmCTestGenericHandler::StartResultingXML(const char* name, cmGeneratedFileS
ostr << "_" << m_SubmitIndex;
}
ostr << ".xml";
- if( !m_CTest->OpenOutputFile(m_CTest->GetCurrentTag(), ostr.str().c_str(), xofs, true) )
+ if( !m_CTest->OpenOutputFile(m_CTest->GetCurrentTag(), ostr.str().c_str(),
+ xofs, true) )
{
- cmCTestLog(m_CTest, ERROR_MESSAGE, "Cannot create resulting XML file: " << ostr.str().c_str() << std::endl);
+ cmCTestLog(m_CTest, ERROR_MESSAGE, "Cannot create resulting XML file: "
+ << ostr.str().c_str() << std::endl);
return false;
}
m_CTest->AddSubmitFile(ostr.str().c_str());
@@ -96,11 +101,13 @@ bool cmCTestGenericHandler::StartResultingXML(const char* name, cmGeneratedFileS
}
//----------------------------------------------------------------------
-bool cmCTestGenericHandler::StartLogFile(const char* name, cmGeneratedFileStream& xofs)
+bool cmCTestGenericHandler::StartLogFile(const char* name,
+ cmGeneratedFileStream& xofs)
{
if ( !name )
{
- cmCTestLog(m_CTest, ERROR_MESSAGE, "Cannot create log file without providing the name" << std::endl;);
+ cmCTestLog(m_CTest, ERROR_MESSAGE,
+ "Cannot create log file without providing the name" << std::endl;);
return false;
}
cmOStringStream ostr;
@@ -116,7 +123,8 @@ bool cmCTestGenericHandler::StartLogFile(const char* name, cmGeneratedFileStream
ostr << ".log";
if( !m_CTest->OpenOutputFile("Temporary", ostr.str().c_str(), xofs) )
{
- cmCTestLog(m_CTest, ERROR_MESSAGE, "Cannot create log file: " << ostr.str().c_str() << std::endl);
+ cmCTestLog(m_CTest, ERROR_MESSAGE, "Cannot create log file: "
+ << ostr.str().c_str() << std::endl);
return false;
}
return true;