CTest: fix include-what-you-use violations

This commit is contained in:
Daniel Pfeifer 2016-08-24 22:01:40 +02:00 committed by Brad King
parent 81c3e637cc
commit 3849164454
93 changed files with 647 additions and 182 deletions

View File

@ -12,12 +12,18 @@
#include "cmCTestBZR.h"
#include "cmCTest.h"
#include "cmCTestVC.h"
#include "cmProcessTools.h"
#include "cmSystemTools.h"
#include "cmXMLParser.h"
#include <cmsys/RegularExpression.hxx>
#include <cm_expat.h>
#include <cmsys/RegularExpression.hxx>
#include <list>
#include <map>
#include <ostream>
#include <stdlib.h>
#include <vector>
extern "C" int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/,
const XML_Char* name,

View File

@ -12,8 +12,15 @@
#ifndef cmCTestBZR_h
#define cmCTestBZR_h
#include <cmConfigure.h>
#include "cmCTestGlobalVC.h"
#include <iosfwd>
#include <string>
class cmCTest;
/** \class cmCTestBZR
* \brief Interaction with bzr command-line tool
*
@ -41,13 +48,14 @@ private:
// Parsing helper classes.
class InfoParser;
class RevnoParser;
class LogParser;
class UpdateParser;
class RevnoParser;
class StatusParser;
class UpdateParser;
friend class InfoParser;
friend class RevnoParser;
friend class LogParser;
friend class RevnoParser;
friend class UpdateParser;
friend class StatusParser;
};

View File

@ -13,10 +13,14 @@
#include "cmCTestBatchTestHandler.h"
#include "cmCTest.h"
#include "cmCTestMultiProcessHandler.h"
#include "cmCTestTestHandler.h"
#include "cmProcess.h"
#include "cmStandardIncludes.h"
#include "cmSystemTools.h"
#include <stdlib.h>
#include <map>
#include <utility>
#include <vector>
cmCTestBatchTestHandler::~cmCTestBatchTestHandler()
{

View File

@ -13,12 +13,11 @@
#ifndef cmCTestBatchTestHandler_h
#define cmCTestBatchTestHandler_h
#include <cmStandardIncludes.h>
#include <cmConfigure.h>
#include <cmCTestMultiProcessHandler.h>
#include <cmCTestRunTest.h>
#include <cmCTestTestHandler.h>
#include <cmsys/FStream.hxx>
#include <string>
/** \class cmCTestBatchTestHandler
* \brief run parallel ctest

View File

@ -17,7 +17,9 @@
#include "cmGlobalGenerator.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <cmsys/Process.h>
#include <stdlib.h>
cmCTestBuildAndTestHandler::cmCTestBuildAndTestHandler()
{

View File

@ -13,8 +13,15 @@
#ifndef cmCTestBuildAndTestHandler_h
#define cmCTestBuildAndTestHandler_h
#include <cmConfigure.h>
#include "cmCTestGenericHandler.h"
#include "cmListFileCache.h"
#include "cmTypeMacro.h"
#include <sstream>
#include <stddef.h>
#include <string>
#include <vector>
class cmake;

View File

@ -15,8 +15,15 @@
#include "cmCTestBuildHandler.h"
#include "cmCTestGenericHandler.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <sstream>
#include <string.h>
class cmExecutionStatus;
cmCTestBuildCommand::cmCTestBuildCommand()
{
this->GlobalGenerator = CM_NULLPTR;

View File

@ -12,10 +12,19 @@
#ifndef cmCTestBuildCommand_h
#define cmCTestBuildCommand_h
#include "cmCTestHandlerCommand.h"
#include <cmConfigure.h>
#include "cmCTestHandlerCommand.h"
#include "cmTypeMacro.h"
#include <string>
#include <vector>
class cmGlobalGenerator;
class cmCTestBuildHandler;
class cmCTestGenericHandler;
class cmCommand;
class cmExecutionStatus;
class cmGlobalGenerator;
/** \class cmCTestBuild
* \brief Run a ctest script

View File

@ -16,25 +16,16 @@
#include "cmCTest.h"
#include "cmFileTimeComparison.h"
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include "cmake.h"
//#include <cmsys/RegularExpression.hxx>
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Process.h>
// used for sleep
#ifdef _WIN32
#include "windows.h"
#endif
#include <float.h>
#include <math.h>
#include <set>
#include <stdlib.h>
#include <time.h>
#include <string.h>
static const char* cmCTestErrorMatches[] = {
"^[Bb]us [Ee]rror",

View File

@ -13,13 +13,17 @@
#ifndef cmCTestBuildHandler_h
#define cmCTestBuildHandler_h
#include "cmCTestGenericHandler.h"
#include <cmConfigure.h>
#include "cmListFileCache.h"
#include "cmCTestGenericHandler.h"
#include "cmTypeMacro.h"
#include <cmsys/RegularExpression.hxx>
#include <deque>
#include <iosfwd>
#include <stddef.h>
#include <string>
#include <vector>
class cmMakefile;
class cmXMLWriter;
@ -148,6 +152,7 @@ private:
bool UseCTestLaunch;
std::string CTestLaunchDir;
class LaunchHelper;
friend class LaunchHelper;
class FragmentCompare;
};

View File

@ -12,11 +12,13 @@
#include "cmCTestCVS.h"
#include "cmCTest.h"
#include "cmProcessTools.h"
#include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include <cmsys/FStream.hxx>
#include <cmsys/RegularExpression.hxx>
#include <utility>
cmCTestCVS::cmCTestCVS(cmCTest* ct, std::ostream& log)
: cmCTestVC(ct, log)

View File

@ -12,11 +12,18 @@
#ifndef cmCTestCVS_h
#define cmCTestCVS_h
#include <cmConfigure.h>
#include "cmCTestVC.h"
#include <iosfwd>
#include <map>
#include <string>
#include <vector>
class cmCTest;
class cmXMLWriter;
/** \class cmCTestCVS
* \brief Interaction with cvs command-line tool
*
@ -47,10 +54,11 @@ private:
Directory const& dir);
// Parsing helper classes.
class UpdateParser;
class LogParser;
friend class UpdateParser;
class UpdateParser;
friend class LogParser;
friend class UpdateParser;
};
#endif

View File

@ -14,6 +14,13 @@
#include "cmCTest.h"
#include "cmCTestGenericHandler.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <sstream>
#include <string.h>
#include <vector>
cmCTestConfigureCommand::cmCTestConfigureCommand()
{

View File

@ -12,7 +12,15 @@
#ifndef cmCTestConfigureCommand_h
#define cmCTestConfigureCommand_h
#include <cmConfigure.h>
#include "cmCTestHandlerCommand.h"
#include "cmTypeMacro.h"
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestConfigure
* \brief Run a ctest script

View File

@ -14,9 +14,11 @@
#include "cmCTest.h"
#include "cmGeneratedFileStream.h"
#include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include "cmake.h"
#include <cmsys/Process.h>
#include <ostream>
#include <string>
cmCTestConfigureHandler::cmCTestConfigureHandler()
{

View File

@ -13,9 +13,10 @@
#ifndef cmCTestConfigureHandler_h
#define cmCTestConfigureHandler_h
#include "cmCTestGenericHandler.h"
#include <cmConfigure.h>
#include "cmListFileCache.h"
#include "cmCTestGenericHandler.h"
#include "cmTypeMacro.h"
/** \class cmCTestConfigureHandler
* \brief A class that handles ctest -S invocations

View File

@ -14,6 +14,8 @@
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
class cmCTestGenericHandler;
cmCTestCoverageCommand::cmCTestCoverageCommand()
{
this->LabelsMentioned = false;

View File

@ -12,7 +12,16 @@
#ifndef cmCTestCoverageCommand_h
#define cmCTestCoverageCommand_h
#include <cmConfigure.h>
#include "cmCTestHandlerCommand.h"
#include "cmTypeMacro.h"
#include <set>
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestCoverage
* \brief Run a ctest script

View File

@ -13,7 +13,6 @@
#include "cmCTest.h"
#include "cmGeneratedFileStream.h"
#include "cmMakefile.h"
#include "cmParseBlanketJSCoverage.h"
#include "cmParseCacheCoverage.h"
#include "cmParseCoberturaCoverage.h"
@ -25,14 +24,19 @@
#include "cmXMLWriter.h"
#include "cmake.h"
#include <algorithm>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx>
#include <float.h>
#include <math.h>
#include <iomanip>
#include <iterator>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <utility>
class cmMakefile;
#define SAFEDIV(x, y) (((y) != 0) ? ((x) / (y)) : (0))

View File

@ -13,14 +13,22 @@
#ifndef cmCTestCoverageHandler_h
#define cmCTestCoverageHandler_h
#include "cmCTestGenericHandler.h"
#include <cmConfigure.h>
#include "cmListFileCache.h"
#include "cmCTestGenericHandler.h"
#include "cmTypeMacro.h"
#include <cmsys/RegularExpression.hxx>
#include <iosfwd>
#include <map>
#include <set>
#include <string>
#include <vector>
class cmGeneratedFileStream;
class cmMakefile;
class cmXMLWriter;
class cmCTestCoverageHandlerContainer
{
public:

View File

@ -14,6 +14,10 @@
#include "cmCTest.h"
#include "cmSystemTools.h"
#include <cmConfigure.h>
#include <ostream>
#include <stdio.h>
cmCTestCurl::cmCTestCurl(cmCTest* ctest)
{
this->CTest = ctest;

View File

@ -12,9 +12,11 @@
#ifndef cmCTestCurl_h
#define cmCTestCurl_h
#include "cmStandardIncludes.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include "cm_curl.h"
#include <cm_curl.h>
#include <string>
#include <vector>
class cmCTest;

View File

@ -13,6 +13,10 @@
#include "cmCTestScriptHandler.h"
#include <sstream>
class cmExecutionStatus;
bool cmCTestEmptyBinaryDirectoryCommand::InitialPass(
std::vector<std::string> const& args, cmExecutionStatus& /*unused*/)
{

View File

@ -12,7 +12,16 @@
#ifndef cmCTestEmptyBinaryDirectoryCommand_h
#define cmCTestEmptyBinaryDirectoryCommand_h
#include <cmConfigure.h>
#include "cmCTestCommand.h"
#include "cmTypeMacro.h"
#include <string>
#include <vector>
class cmCommand;
class cmExecutionStatus;
/** \class cmCTestEmptyBinaryDirectory
* \brief Run a ctest script

View File

@ -13,15 +13,17 @@
#include "cmAlgorithms.h"
#include "cmCTest.h"
#include "cmCTestVC.h"
#include "cmProcessTools.h"
#include "cmSystemTools.h"
#include <cmsys/FStream.hxx>
#include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx>
#include <ctype.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <vector>
static unsigned int cmCTestGITVersion(unsigned int epic, unsigned int major,
unsigned int minor, unsigned int fix)

View File

@ -12,8 +12,15 @@
#ifndef cmCTestGIT_h
#define cmCTestGIT_h
#include <cmConfigure.h>
#include "cmCTestGlobalVC.h"
#include <iosfwd>
#include <string>
class cmCTest;
/** \class cmCTestGIT
* \brief Interaction with git command-line tool
*
@ -47,12 +54,13 @@ private:
// "public" needed by older Sun compilers
public:
// Parsing helper classes.
class OneLineParser;
class DiffParser;
class CommitParser;
friend class OneLineParser;
friend class DiffParser;
class DiffParser;
class OneLineParser;
friend class CommitParser;
friend class DiffParser;
friend class OneLineParser;
};
#endif

View File

@ -12,9 +12,11 @@
#include "cmCTestGenericHandler.h"
#include "cmCTest.h"
#include "cmSystemTools.h"
#include "cmCTest.h"
#include <sstream>
#include <utility>
cmCTestGenericHandler::cmCTestGenericHandler()
{

View File

@ -13,14 +13,20 @@
#ifndef cmCTestGenericHandler_h
#define cmCTestGenericHandler_h
#include "cmObject.h"
#include <cmConfigure.h>
#include "cmCTest.h"
#include "cmSystemTools.h" //OutputOption
#include "cmObject.h"
#include "cmSystemTools.h"
#include <map>
#include <stddef.h>
#include <string>
#include <vector>
class cmMakefile;
class cmCTestCommand;
class cmGeneratedFileStream;
class cmMakefile;
/** \class cmCTestGenericHandler
* \brief A superclass of all CTest Handlers

View File

@ -15,7 +15,8 @@
#include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include <cmsys/RegularExpression.hxx>
#include <ostream>
#include <utility>
cmCTestGlobalVC::cmCTestGlobalVC(cmCTest* ct, std::ostream& log)
: cmCTestVC(ct, log)

View File

@ -12,12 +12,19 @@
#ifndef cmCTestGlobalVC_h
#define cmCTestGlobalVC_h
#include <cmConfigure.h>
#include "cmCTestVC.h"
#include <iosfwd>
#include <list>
#include <map>
#include <string>
#include <vector>
class cmCTest;
class cmXMLWriter;
/** \class cmCTestGlobalVC
* \brief Base class for handling globally-versioned trees
*

View File

@ -12,10 +12,14 @@
#include "cmCTestHG.h"
#include "cmCTest.h"
#include "cmCTestVC.h"
#include "cmProcessTools.h"
#include "cmSystemTools.h"
#include "cmXMLParser.h"
#include <cmsys/RegularExpression.hxx>
#include <ostream>
#include <vector>
cmCTestHG::cmCTestHG(cmCTest* ct, std::ostream& log)
: cmCTestGlobalVC(ct, log)

View File

@ -12,8 +12,15 @@
#ifndef cmCTestHG_h
#define cmCTestHG_h
#include <cmConfigure.h>
#include "cmCTestGlobalVC.h"
#include <iosfwd>
#include <string>
class cmCTest;
/** \class cmCTestHG
* \brief Interaction with Mercurial command-line tool
*
@ -37,11 +44,12 @@ private:
// Parsing helper classes.
class IdentifyParser;
class StatusParser;
class LogParser;
class StatusParser;
friend class IdentifyParser;
friend class StatusParser;
friend class LogParser;
friend class StatusParser;
};
#endif

View File

@ -13,6 +13,14 @@
#include "cmCTest.h"
#include "cmCTestGenericHandler.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <sstream>
#include <stdlib.h>
class cmExecutionStatus;
cmCTestHandlerCommand::cmCTestHandlerCommand()
{

View File

@ -12,9 +12,17 @@
#ifndef cmCTestHandlerCommand_h
#define cmCTestHandlerCommand_h
#include <cmConfigure.h>
#include "cmCTestCommand.h"
#include "cmTypeMacro.h"
#include <stddef.h>
#include <string>
#include <vector>
class cmCTestGenericHandler;
class cmExecutionStatus;
/** \class cmCTestHandler
* \brief Run a ctest script

View File

@ -11,15 +11,24 @@
============================================================================*/
#include "cmCTestLaunch.h"
#include <cmConfigure.h>
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include "cmake.h"
#include <cm_auto_ptr.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/MD5.h>
#include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <fcntl.h> // for _O_BINARY
@ -608,10 +617,6 @@ int cmCTestLaunch::Main(int argc, const char* const argv[])
return self.Run();
}
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmake.h"
#include <cm_auto_ptr.hxx>
void cmCTestLaunch::LoadConfig()
{
cmake cm;

View File

@ -12,9 +12,12 @@
#ifndef cmCTestLaunch_h
#define cmCTestLaunch_h
#include "cmStandardIncludes.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <cmsys/RegularExpression.hxx>
#include <set>
#include <string>
#include <vector>
class cmXMLWriter;

View File

@ -12,9 +12,15 @@
#ifndef cmCTestMemCheckCommand_h
#define cmCTestMemCheckCommand_h
#include <cmConfigure.h>
#include "cmCTestTestCommand.h"
#include "cmTypeMacro.h"
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestMemCheck
* \brief Run a ctest script

View File

@ -13,20 +13,16 @@
#include "cmCTestMemCheckHandler.h"
#include "cmCTest.h"
#include "cmGeneratedFileStream.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include "cmXMLParser.h"
#include "cmXMLWriter.h"
#include "cmake.h"
#include <cmsys/Base64.h>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <string.h>
struct CatToErrorType
{

View File

@ -13,9 +13,11 @@
#ifndef cmCTestMemCheckHandler_h
#define cmCTestMemCheckHandler_h
#include "cmCTestTestHandler.h"
#include <cmConfigure.h>
#include "cmCTestTestHandler.h"
#include "cmTypeMacro.h"
#include "cmListFileCache.h"
#include <string>
#include <vector>

View File

@ -12,17 +12,22 @@
#include "cmCTestMultiProcessHandler.h"
#include "cmCTest.h"
#include "cmCTestRunTest.h"
#include "cmCTestScriptHandler.h"
#include "cmProcess.h"
#include "cmStandardIncludes.h"
#include "cmCTestTestHandler.h"
#include "cmSystemTools.h"
#include <algorithm>
#include <cmsys/FStream.hxx>
#include <cmsys/String.hxx>
#include <cmsys/SystemInformation.hxx>
#include <float.h>
#include <iomanip>
#include <list>
#include <math.h>
#include <sstream>
#include <stack>
#include <stdlib.h>
#include <utility>
class TestComparator
{

View File

@ -12,9 +12,17 @@
#ifndef cmCTestMultiProcessHandler_h
#define cmCTestMultiProcessHandler_h
#include <cmCTestTestHandler.h>
#include <cmConfigure.h> // IWYU pragma: keep
#include <cmCTestRunTest.h>
#include <cmCTestTestHandler.h>
#include <map>
#include <set>
#include <stddef.h>
#include <string>
#include <vector>
class cmCTest;
class cmCTestRunTest;
/** \class cmCTestMultiProcessHandler
* \brief run parallel ctest

View File

@ -12,14 +12,15 @@
#include "cmCTestP4.h"
#include "cmCTest.h"
#include "cmCTestVC.h"
#include "cmProcessTools.h"
#include "cmSystemTools.h"
#include <cmsys/Process.h>
#include <algorithm>
#include <cmsys/RegularExpression.hxx>
#include <ctype.h>
#include <sys/types.h>
#include <ostream>
#include <time.h>
#include <utility>
cmCTestP4::cmCTestP4(cmCTest* ct, std::ostream& log)
: cmCTestGlobalVC(ct, log)

View File

@ -12,11 +12,17 @@
#ifndef cmCTestP4_h
#define cmCTestP4_h
#include <cmConfigure.h>
#include "cmCTestGlobalVC.h"
#include <iosfwd>
#include <map>
#include <string>
#include <vector>
class cmCTest;
/** \class cmCTestP4
* \brief Interaction with the Perforce command-line tool
*
@ -62,12 +68,13 @@ private:
void LoadRevisions() CM_OVERRIDE;
void LoadModifications() CM_OVERRIDE;
// Parsing helper classes.
class IdentifyParser;
class ChangesParser;
class UserParser;
class DescribeParser;
class DiffParser;
// Parsing helper classes.
class IdentifyParser;
class UserParser;
friend class IdentifyParser;
friend class ChangesParser;
friend class UserParser;

View File

@ -13,6 +13,8 @@
#include "cmCTest.h"
class cmExecutionStatus;
bool cmCTestReadCustomFilesCommand::InitialPass(
std::vector<std::string> const& args, cmExecutionStatus& /*unused*/)
{

View File

@ -12,7 +12,16 @@
#ifndef cmCTestReadCustomFilesCommand_h
#define cmCTestReadCustomFilesCommand_h
#include <cmConfigure.h>
#include "cmCTestCommand.h"
#include "cmTypeMacro.h"
#include <string>
#include <vector>
class cmCommand;
class cmExecutionStatus;
/** \class cmCTestReadCustomFiles
* \brief Run a ctest script

View File

@ -12,6 +12,11 @@
#include "cmCTestRunScriptCommand.h"
#include "cmCTestScriptHandler.h"
#include "cmMakefile.h"
#include <sstream>
class cmExecutionStatus;
bool cmCTestRunScriptCommand::InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& /*unused*/)

View File

@ -12,7 +12,16 @@
#ifndef cmCTestRunScriptCommand_h
#define cmCTestRunScriptCommand_h
#include <cmConfigure.h>
#include "cmCTestCommand.h"
#include "cmTypeMacro.h"
#include <string>
#include <vector>
class cmCommand;
class cmExecutionStatus;
/** \class cmCTestRunScript
* \brief Run a ctest script

View File

@ -14,11 +14,21 @@
#include "cmCTest.h"
#include "cmCTestMemCheckHandler.h"
#include "cmCTestTestHandler.h"
#include "cmProcess.h"
#include "cmSystemTools.h"
#include "cm_curl.h"
#include <cmConfigure.h>
#include <cm_curl.h>
#include <cm_zlib.h>
#include <cmsys/Base64.h>
#include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx>
#include <iomanip>
#include <sstream>
#include <stdio.h>
#include <time.h>
#include <utility>
cmCTestRunTest::cmCTestRunTest(cmCTestTestHandler* handler)
{

View File

@ -12,9 +12,15 @@
#ifndef cmCTestRunTest_h
#define cmCTestRunTest_h
#include <cmCTestTestHandler.h>
#include <cmConfigure.h> // IWYU pragma: keep
#include <cmProcess.h>
#include <cmCTestTestHandler.h>
#include <stddef.h>
#include <string>
#include <vector>
class cmCTest;
class cmProcess;
/** \class cmRunTest
* \brief represents a single test to be run

View File

@ -12,11 +12,17 @@
#include "cmCTestSVN.h"
#include "cmCTest.h"
#include "cmCTestVC.h"
#include "cmProcessTools.h"
#include "cmSystemTools.h"
#include "cmXMLParser.h"
#include "cmXMLWriter.h"
#include <cmsys/RegularExpression.hxx>
#include <map>
#include <ostream>
#include <stdlib.h>
#include <string.h>
struct cmCTestSVN::Revision : public cmCTestVC::Revision
{

View File

@ -12,9 +12,17 @@
#ifndef cmCTestSVN_h
#define cmCTestSVN_h
#include <cmConfigure.h>
#include "cmCTestGlobalVC.h"
#include <iosfwd>
#include <list>
#include <string>
#include <vector>
class cmCTest;
class cmXMLWriter;
/** \class cmCTestSVN
* \brief Interaction with subversion command-line tool
@ -68,6 +76,7 @@ private:
// Extended revision structure to include info about external it refers to.
struct Revision;
friend struct Revision;
// Info of all the repositories (root, externals and nested ones).
@ -89,12 +98,13 @@ private:
void WriteXMLGlobal(cmXMLWriter& xml) CM_OVERRIDE;
class ExternalParser;
// Parsing helper classes.
class InfoParser;
class LogParser;
class StatusParser;
class UpdateParser;
class ExternalParser;
friend class InfoParser;
friend class LogParser;
friend class StatusParser;

View File

@ -13,32 +13,8 @@
#include "cmCTestScriptHandler.h"
#include "cmCTest.h"
#include "cmFunctionBlocker.h"
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmake.h"
//#include <cmsys/RegularExpression.hxx>
#include <cmsys/Directory.hxx>
#include <cmsys/Process.h>
// used for sleep
#ifdef _WIN32
#include "windows.h"
#endif
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
// needed for sleep
#if !defined(_WIN32)
#include <unistd.h>
#endif
#include "cmCTestBuildCommand.h"
#include "cmCTestCommand.h"
#include "cmCTestConfigureCommand.h"
#include "cmCTestCoverageCommand.h"
#include "cmCTestEmptyBinaryDirectoryCommand.h"
@ -51,6 +27,31 @@
#include "cmCTestTestCommand.h"
#include "cmCTestUpdateCommand.h"
#include "cmCTestUploadCommand.h"
#include "cmFunctionBlocker.h"
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <cmsys/Directory.hxx>
#include <cmsys/Process.h>
#include <map>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
class cmExecutionStatus;
struct cmListFileFunction;
#define CTEST_INITIAL_CMAKE_OUTPUT_FILE_NAME "CTestInitialCMakeOutput.log"

View File

@ -13,14 +13,19 @@
#ifndef cmCTestScriptHandler_h
#define cmCTestScriptHandler_h
#include <cmConfigure.h>
#include "cmCTestGenericHandler.h"
#include "cmTypeMacro.h"
#include "cmListFileCache.h"
#include <string>
#include <vector>
class cmMakefile;
class cmGlobalGenerator;
class cmake;
class cmCTest;
class cmCTestCommand;
class cmGlobalGenerator;
class cmMakefile;
class cmake;
/** \class cmCTestScriptHandler
* \brief A class that handles ctest -S invocations

View File

@ -12,7 +12,10 @@
#include "cmCTestSleepCommand.h"
#include "cmCTestScriptHandler.h"
#include <stdlib.h> // required for atoi
#include <stdlib.h>
class cmExecutionStatus;
bool cmCTestSleepCommand::InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& /*unused*/)

View File

@ -12,7 +12,16 @@
#ifndef cmCTestSleepCommand_h
#define cmCTestSleepCommand_h
#include <cmConfigure.h>
#include "cmCTestCommand.h"
#include "cmTypeMacro.h"
#include <string>
#include <vector>
class cmCommand;
class cmExecutionStatus;
/** \class cmCTestSleep
* \brief Run a ctest script

View File

@ -14,7 +14,13 @@
#include "cmCTest.h"
#include "cmCTestVC.h"
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include <sstream>
#include <stddef.h>
class cmExecutionStatus;
cmCTestStartCommand::cmCTestStartCommand()
{

View File

@ -12,7 +12,17 @@
#ifndef cmCTestStartCommand_h
#define cmCTestStartCommand_h
#include <cmConfigure.h>
#include "cmCTestCommand.h"
#include "cmTypeMacro.h"
#include <iosfwd>
#include <string>
#include <vector>
class cmCommand;
class cmExecutionStatus;
/** \class cmCTestStart
* \brief Run a ctest script

View File

@ -14,6 +14,13 @@
#include "cmCTest.h"
#include "cmCTestGenericHandler.h"
#include "cmCTestSubmitHandler.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <sstream>
class cmExecutionStatus;
cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler()
{

View File

@ -12,9 +12,19 @@
#ifndef cmCTestSubmitCommand_h
#define cmCTestSubmitCommand_h
#include "cmCTestHandlerCommand.h"
#include <cmConfigure.h>
#include "cmCTest.h"
#include "cmCTestHandlerCommand.h"
#include "cmTypeMacro.h"
#include <set>
#include <string>
#include <vector>
class cmCTestGenericHandler;
class cmCommand;
class cmExecutionStatus;
/** \class cmCTestSubmit
* \brief Run a ctest script

View File

@ -12,26 +12,28 @@
#include "cmCTestSubmitHandler.h"
#include "cmCTest.h"
#include "cmCTestCurl.h"
#include "cmCTestScriptHandler.h"
#include "cmCurl.h"
#include "cmGeneratedFileStream.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmVersion.h"
#include "cmXMLParser.h"
#include "cmake.h"
#include <cmsys/Base64.h>
#include <cmsys/Process.h>
// For XML-RPC submission
#include "cm_xmlrpc.h"
#include <cm_curl.h>
#include <cm_jsoncpp_reader.h>
// For curl submission
#include "cmCTestCurl.h"
#include "cmCurl.h"
#include <cm_jsoncpp_value.h>
#include <cmsys/Process.h>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#if defined(CTEST_USE_XMLRPC)
#include "cmVersion.h"
#include <cm_xmlrpc.h>
#include <sys/stat.h>
#endif
#define SUBMIT_TIMEOUT_IN_SECONDS_DEFAULT 120

View File

@ -12,7 +12,16 @@
#ifndef cmCTestSubmitHandler_h
#define cmCTestSubmitHandler_h
#include <cmConfigure.h>
#include "cmCTest.h"
#include "cmCTestGenericHandler.h"
#include "cmTypeMacro.h"
#include <iosfwd>
#include <set>
#include <string>
#include <vector>
/** \class cmCTestSubmitHandler
* \brief Helper class for CTest
@ -84,6 +93,7 @@ private:
std::string GetSubmitResultsPrefix();
class ResponseParser;
std::string HTTPProxy;
int HTTPProxyType;
std::string HTTPProxyAuth;

View File

@ -13,6 +13,12 @@
#include "cmCTest.h"
#include "cmCTestGenericHandler.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include <sstream>
#include <stdlib.h>
#include <vector>
cmCTestTestCommand::cmCTestTestCommand()
{

View File

@ -12,7 +12,15 @@
#ifndef cmCTestTestCommand_h
#define cmCTestTestCommand_h
#include <cmConfigure.h>
#include "cmCTestHandlerCommand.h"
#include "cmTypeMacro.h"
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestTest
* \brief Run a ctest script

View File

@ -15,26 +15,32 @@
#include "cmCTest.h"
#include "cmCTestBatchTestHandler.h"
#include "cmCTestMultiProcessHandler.h"
#include "cmCTestRunTest.h"
#include "cmCommand.h"
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include "cm_auto_ptr.hxx"
#include "cm_utf8.h"
#include "cmake.h"
#include <algorithm>
#include <cmsys/Base64.h>
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <functional>
#include <iomanip>
#include <set>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
class cmExecutionStatus;
class cmCTestSubdirCommand : public cmCommand
{

View File

@ -13,10 +13,21 @@
#ifndef cmCTestTestHandler_h
#define cmCTestTestHandler_h
#include <cmConfigure.h>
#include "cmCTestGenericHandler.h"
#include "cmTypeMacro.h"
#include <cmsys/RegularExpression.hxx>
#include <iosfwd>
#include <map>
#include <set>
#include <stddef.h>
#include <string>
#include <utility>
#include <vector>
class cmCTest;
class cmMakefile;
class cmXMLWriter;

View File

@ -13,6 +13,10 @@
#include "cmCTest.h"
#include "cmCTestGenericHandler.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include <vector>
cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
{

View File

@ -12,7 +12,15 @@
#ifndef cmCTestUpdateCommand_h
#define cmCTestUpdateCommand_h
#include <cmConfigure.h>
#include "cmCTestHandlerCommand.h"
#include "cmTypeMacro.h"
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestUpdate
* \brief Run a ctest script

View File

@ -14,14 +14,6 @@
#include "cmCLocaleEnvironmentScope.h"
#include "cmCTest.h"
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmVersion.h"
#include "cmXMLParser.h"
#include "cmXMLWriter.h"
#include "cmake.h"
#include "cmCTestBZR.h"
#include "cmCTestCVS.h"
#include "cmCTestGIT.h"
@ -29,20 +21,13 @@
#include "cmCTestP4.h"
#include "cmCTestSVN.h"
#include "cmCTestVC.h"
#include "cmGeneratedFileStream.h"
#include "cmSystemTools.h"
#include "cmVersion.h"
#include "cmXMLWriter.h"
#include <cm_auto_ptr.hxx>
//#include <cmsys/RegularExpression.hxx>
#include <cmsys/Process.h>
// used for sleep
#ifdef _WIN32
#include "windows.h"
#endif
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <sstream>
static const char* cmCTestUpdateHandlerUpdateStrings[] = {
"Unknown", "CVS", "SVN", "BZR", "GIT", "HG", "P4"

View File

@ -13,9 +13,14 @@
#ifndef cmCTestUpdateHandler_h
#define cmCTestUpdateHandler_h
#include "cmCTestGenericHandler.h"
#include <cmConfigure.h>
#include "cmListFileCache.h"
#include "cmCTestGenericHandler.h"
#include "cmTypeMacro.h"
#include <string>
#include <utility>
#include <vector>
/** \class cmCTestUpdateHandler
* \brief A class that handles ctest -S invocations

View File

@ -14,6 +14,11 @@
#include "cmCTest.h"
#include "cmCTestGenericHandler.h"
#include "cmCTestUploadHandler.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <sstream>
cmCTestGenericHandler* cmCTestUploadCommand::InitializeHandler()
{

View File

@ -12,9 +12,16 @@
#ifndef cmCTestUploadCommand_h
#define cmCTestUploadCommand_h
#include "cmCTestHandlerCommand.h"
#include <cmConfigure.h>
#include "cmCTest.h"
#include "cmCTestHandlerCommand.h"
#include "cmTypeMacro.h"
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestUpload
* \brief Run a ctest script

View File

@ -15,6 +15,10 @@
#include "cmVersion.h"
#include "cmXMLWriter.h"
#include <ostream>
#include <set>
#include <string>
cmCTestUploadHandler::cmCTestUploadHandler()
{
this->Initialize();

View File

@ -12,7 +12,11 @@
#ifndef cmCTestUploadHandler_h
#define cmCTestUploadHandler_h
#include <cmConfigure.h>
#include "cmCTest.h"
#include "cmCTestGenericHandler.h"
#include "cmTypeMacro.h"
/** \class cmCTestUploadHandler
* \brief Helper class for CTest

View File

@ -16,6 +16,10 @@
#include "cmXMLWriter.h"
#include <cmsys/Process.h>
#include <sstream>
#include <stdio.h>
#include <time.h>
#include <vector>
cmCTestVC::cmCTestVC(cmCTest* ct, std::ostream& log)
: CTest(ct)

View File

@ -12,8 +12,13 @@
#ifndef cmCTestVC_h
#define cmCTestVC_h
#include <cmConfigure.h>
#include "cmProcessTools.h"
#include <iosfwd>
#include <string>
class cmCTest;
class cmXMLWriter;
@ -93,7 +98,6 @@ public:
};
protected:
struct File;
friend struct File;
/** Represent change to one file. */

View File

@ -11,10 +11,11 @@
============================================================================*/
#include "cmParseBlanketJSCoverage.h"
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
#include "cmSystemTools.h"
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <stdio.h>
#include <stdlib.h>

View File

@ -13,7 +13,13 @@
#ifndef cmParseBlanketJSCoverage_h
#define cmParseBlanketJSCoverage_h
#include "cmCTestCoverageHandler.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <string>
#include <vector>
class cmCTest;
class cmCTestCoverageHandlerContainer;
/** \class cmParseBlanketJSCoverage
* \brief Parse BlanketJS coverage information
@ -39,6 +45,7 @@ public:
protected:
class JSONParser;
cmCTestCoverageHandlerContainer& Coverage;
cmCTest* CTest;
};

View File

@ -1,11 +1,15 @@
#include "cmParseCacheCoverage.h"
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
#include "cmSystemTools.h"
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <utility>
cmParseCacheCoverage::cmParseCacheCoverage(
cmCTestCoverageHandlerContainer& cont, cmCTest* ctest)

View File

@ -13,8 +13,16 @@
#ifndef cmParseCacheCoverage_h
#define cmParseCacheCoverage_h
#include <cmConfigure.h>
#include "cmParseMumpsCoverage.h"
#include <string>
#include <vector>
class cmCTest;
class cmCTestCoverageHandlerContainer;
/** \class cmParseCacheCoverage
* \brief Parse Cache coverage information
*

View File

@ -1,9 +1,14 @@
#include "cmParseCoberturaCoverage.h"
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
#include "cmSystemTools.h"
#include "cmXMLParser.h"
#include <cmsys/Directory.hxx>
#include <cmConfigure.h>
#include <cmsys/FStream.hxx>
#include <stdlib.h>
#include <string.h>
class cmParseCoberturaCoverage::XMLParser : public cmXMLParser
{

View File

@ -13,7 +13,13 @@
#ifndef cmParseCoberturaCoverage_h
#define cmParseCoberturaCoverage_h
#include "cmCTestCoverageHandler.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <string>
#include <vector>
class cmCTest;
class cmCTestCoverageHandlerContainer;
/** \class cmParsePythonCoverage
* \brief Parse coverage.py Python coverage information
@ -40,6 +46,7 @@ public:
private:
class XMLParser;
cmCTestCoverageHandlerContainer& Coverage;
cmCTest* CTest;
std::string CurFileName;

View File

@ -1,8 +1,9 @@
#include "cmParseDelphiCoverage.h"
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
#include "cmSystemTools.h"
#include "cmXMLParser.h"
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <stdio.h>

View File

@ -13,7 +13,13 @@
#ifndef cmParseDelphiCoverage_h
#define cmParseDelphiCoverage_h
#include "cmCTestCoverageHandler.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <string>
#include <vector>
class cmCTest;
class cmCTestCoverageHandlerContainer;
/** \class cmParseDelphiCoverage
* \brief Parse Delphi coverage information
@ -35,6 +41,7 @@ public:
protected:
class HTMLParser;
cmCTestCoverageHandlerContainer& Coverage;
cmCTest* CTest;
};

View File

@ -1,11 +1,15 @@
#include "cmParseGTMCoverage.h"
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
#include "cmSystemTools.h"
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
cmParseGTMCoverage::cmParseGTMCoverage(cmCTestCoverageHandlerContainer& cont,
cmCTest* ctest)

View File

@ -13,8 +13,15 @@
#ifndef cmParseGTMCoverage_h
#define cmParseGTMCoverage_h
#include <cmConfigure.h>
#include "cmParseMumpsCoverage.h"
#include <string>
class cmCTest;
class cmCTestCoverageHandlerContainer;
/** \class cmParseGTMCoverage
* \brief Parse GTM coverage information
*

View File

@ -1,12 +1,17 @@
#include "cmParseJacocoCoverage.h"
#include <cmConfigure.h>
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
#include "cmSystemTools.h"
#include "cmXMLParser.h"
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
class cmParseJacocoCoverage::XMLParser : public cmXMLParser
{

View File

@ -13,7 +13,14 @@
#ifndef cmParseJacocoCoverage_h
#define cmParseJacocoCoverage_h
#include "cmCTestCoverageHandler.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <map>
#include <string>
#include <vector>
class cmCTest;
class cmCTestCoverageHandlerContainer;
/** \class cmParseJacocoCoverage
* \brief Parse JaCoCO coverage information
@ -47,6 +54,7 @@ private:
bool LoadSource(std::string d);
class XMLParser;
std::map<std::string, std::string> RoutineToDirectory;
cmCTestCoverageHandlerContainer& Coverage;
cmCTest* CTest;

View File

@ -1,11 +1,16 @@
#include "cmParseGTMCoverage.h"
#include "cmParseMumpsCoverage.h"
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
#include "cmSystemTools.h"
#include <cmsys/Directory.hxx>
#include <cmConfigure.h>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <stdio.h>
#include <stdlib.h>
#include <map>
#include <string>
#include <utility>
#include <vector>
cmParseMumpsCoverage::cmParseMumpsCoverage(
cmCTestCoverageHandlerContainer& cont, cmCTest* ctest)

View File

@ -13,7 +13,13 @@
#ifndef cmParseMumpsCoverage_h
#define cmParseMumpsCoverage_h
#include "cmCTestCoverageHandler.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <map>
#include <string>
class cmCTest;
class cmCTestCoverageHandlerContainer;
/** \class cmParseMumpsCoverage
* \brief Parse Mumps coverage information

View File

@ -1,8 +1,13 @@
#include "cmParsePHPCoverage.h"
#include "cmCTest.h"
#include "cmCTestCoverageHandler.h"
#include "cmSystemTools.h"
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <stdlib.h>
#include <string.h>
/*
To setup coverage for php.

View File

@ -13,7 +13,13 @@
#ifndef cmParsePHPCoverage_h
#define cmParsePHPCoverage_h
#include "cmCTestCoverageHandler.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <iosfwd>
#include <string>
class cmCTest;
class cmCTestCoverageHandlerContainer;
/** \class cmParsePHPCoverage
* \brief Parse xdebug PHP coverage information

View File

@ -9,10 +9,11 @@
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#include "cmProcess.h"
#include <cmProcess.h>
#include <cmConfigure.h>
#include <cmSystemTools.h>
#include <iostream>
cmProcess::cmProcess()
{

View File

@ -12,9 +12,11 @@
#ifndef cmProcess_h
#define cmProcess_h
#include "cmStandardIncludes.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <cmsys/Process.h>
#include <string>
#include <vector>
/** \class cmProcess
* \brief run a process with c++