fix a load of include-what-you-use violations

This commit is contained in:
Daniel Pfeifer 2016-09-01 20:59:28 +02:00 committed by Brad King
parent bd3d0eafbb
commit efed6468ed
165 changed files with 1123 additions and 459 deletions

View File

@ -27,6 +27,8 @@
#include <cmsys/Encoding.hxx> #include <cmsys/Encoding.hxx>
#include <cmsys/SystemTools.hxx> #include <cmsys/SystemTools.hxx>
#include "cmSystemTools.h" // IWYU pragma: keep
static const char* cmDocumentationName[][2] = { { 0, static const char* cmDocumentationName[][2] = { { 0,
" cmake-gui - CMake GUI." }, " cmake-gui - CMake GUI." },
{ 0, 0 } }; { 0, 0 } };

View File

@ -9,52 +9,54 @@
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information. See the License for more information.
============================================================================*/ ============================================================================*/
#include "cmCurl.h" // include before anything that includes windows.h
#include "cmCTest.h" #include "cmCTest.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmCTestCommand.h" #include "cmCTestBuildAndTestHandler.h"
#include "cmCTestBuildHandler.h"
#include "cmCTestConfigureHandler.h"
#include "cmCTestCoverageHandler.h"
#include "cmCTestGenericHandler.h"
#include "cmCTestMemCheckHandler.h"
#include "cmCTestScriptHandler.h"
#include "cmCTestStartCommand.h" #include "cmCTestStartCommand.h"
#include "cmCTestSubmitHandler.h"
#include "cmCTestTestHandler.h"
#include "cmCTestUpdateHandler.h"
#include "cmCTestUploadHandler.h"
#include "cmCurl.h"
#include "cmDynamicLoader.h" #include "cmDynamicLoader.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmState.h" #include "cmState.h"
#include "cmVersionMacros.h" #include "cmSystemTools.h"
#include "cmVersion.h"
#include "cmVersionConfig.h"
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include "cmake.h" #include "cmake.h"
#include <cm_auto_ptr.hxx>
#include <cm_curl.h>
#include <cm_zlib.h>
#include <cmsys/Base64.h> #include <cmsys/Base64.h>
#include <cmsys/Directory.hxx> #include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <cmsys/SystemInformation.hxx>
#include "cmCTestBuildAndTestHandler.h"
#include "cmCTestBuildHandler.h"
#include "cmCTestConfigureHandler.h"
#include "cmCTestCoverageHandler.h"
#include "cmCTestMemCheckHandler.h"
#include "cmCTestScriptHandler.h"
#include "cmCTestSubmitHandler.h"
#include "cmCTestTestHandler.h"
#include "cmCTestUpdateHandler.h"
#include "cmCTestUploadHandler.h"
#include "cmVersion.h"
#include <cmsys/Glob.hxx> #include <cmsys/Glob.hxx>
#include <cmsys/Process.h> #include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx> #include <cmsys/String.hxx>
#include <cmsys/SystemInformation.hxx>
#include <ctype.h> #include <ctype.h>
#include <float.h> #include <iostream>
#include <math.h> #include <map>
#include <sstream>
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <cm_auto_ptr.hxx> #include <string>
#include <time.h>
#include <cm_zlib.h> #include <utility>
#include <cmsys/Base64.h> #include <vector>
#if defined(__BEOS__) || defined(__HAIKU__) #if defined(__BEOS__) || defined(__HAIKU__)
#include <be/kernel/OS.h> /* disable_debugger() API. */ #include <be/kernel/OS.h> /* disable_debugger() API. */

View File

@ -15,18 +15,18 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h" #include <cmsys/String.hxx>
#include <map>
#include "cmListFileCache.h" #include <set>
#include <sstream>
#include <string>
#include <time.h> #include <time.h>
#include <vector>
class cmake;
class cmMakefile;
class cmCTestGenericHandler; class cmCTestGenericHandler;
class cmGeneratedFileStream;
class cmCTestCommand;
class cmCTestScriptHandler;
class cmCTestStartCommand; class cmCTestStartCommand;
class cmGeneratedFileStream;
class cmMakefile;
class cmXMLWriter; class cmXMLWriter;
#define cmCTestLog(ctSelf, logType, msg) \ #define cmCTestLog(ctSelf, logType, msg) \

View File

@ -11,12 +11,18 @@
============================================================================*/ ============================================================================*/
#include "cmCommandArgumentParserHelper.h" #include "cmCommandArgumentParserHelper.h"
#include "cmMakefile.h" #include <cm_kwiml.h>
#include "cmOutputConverter.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmCommandArgumentLexer.h" #include "cmCommandArgumentLexer.h"
#include "cmMakefile.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <cmConfigure.h>
#include <iostream>
#include <sstream>
#include <string.h>
int cmCommandArgument_yyparse(yyscan_t yyscanner); int cmCommandArgument_yyparse(yyscan_t yyscanner);
// //

View File

@ -12,9 +12,10 @@
#ifndef cmCommandArgumentParserHelper_h #ifndef cmCommandArgumentParserHelper_h
#define cmCommandArgumentParserHelper_h #define cmCommandArgumentParserHelper_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h" #include <string>
#include <vector>
#define YYSTYPE cmCommandArgumentParserHelper::ParserType #define YYSTYPE cmCommandArgumentParserHelper::ParserType
#define YYSTYPE_IS_DECLARED #define YYSTYPE_IS_DECLARED

View File

@ -14,6 +14,7 @@
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmOutputConverter.h" #include "cmOutputConverter.h"
#include "cmSystemTools.h"
static std::string const keyAND = "AND"; static std::string const keyAND = "AND";
static std::string const keyCOMMAND = "COMMAND"; static std::string const keyCOMMAND = "COMMAND";

View File

@ -12,8 +12,10 @@
#include "cmCryptoHash.h" #include "cmCryptoHash.h"
#include "cm_sha2.h" #include "cm_sha2.h"
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <cmsys/MD5.h> #include <cmsys/MD5.h>
#include <string.h>
CM_AUTO_PTR<cmCryptoHash> cmCryptoHash::New(const char* algo) CM_AUTO_PTR<cmCryptoHash> cmCryptoHash::New(const char* algo)
{ {

View File

@ -14,9 +14,9 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include <cm_auto_ptr.hxx> #include <cm_auto_ptr.hxx>
#include <string>
#include <vector>
/** /**
* @brief Abstract base class for cryptographic hash generators * @brief Abstract base class for cryptographic hash generators

View File

@ -11,7 +11,13 @@
============================================================================*/ ============================================================================*/
#include "cmCurl.h" #include "cmCurl.h"
#include "cmThirdParty.h"
#if !defined(CMAKE_USE_SYSTEM_CURL) && !defined(_WIN32) && \
!defined(__APPLE__) && !defined(CURL_CA_BUNDLE) && !defined(CURL_CA_PATH)
#define CMAKE_FIND_CAFILE
#include "cmSystemTools.h" #include "cmSystemTools.h"
#endif
// curl versions before 7.21.5 did not provide this error code // curl versions before 7.21.5 did not provide this error code
#if defined(LIBCURL_VERSION_NUM) && LIBCURL_VERSION_NUM < 0x071505 #if defined(LIBCURL_VERSION_NUM) && LIBCURL_VERSION_NUM < 0x071505
@ -32,8 +38,7 @@ std::string cmCurlSetCAInfo(::CURL* curl, const char* cafile)
::CURLcode res = ::curl_easy_setopt(curl, CURLOPT_CAINFO, cafile); ::CURLcode res = ::curl_easy_setopt(curl, CURLOPT_CAINFO, cafile);
check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: "); check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: ");
} }
#if !defined(CMAKE_USE_SYSTEM_CURL) && !defined(_WIN32) && \ #ifdef CMAKE_FIND_CAFILE
!defined(__APPLE__) && !defined(CURL_CA_BUNDLE) && !defined(CURL_CA_PATH)
#define CMAKE_CAFILE_FEDORA "/etc/pki/tls/certs/ca-bundle.crt" #define CMAKE_CAFILE_FEDORA "/etc/pki/tls/certs/ca-bundle.crt"
else if (cmSystemTools::FileExists(CMAKE_CAFILE_FEDORA, true)) { else if (cmSystemTools::FileExists(CMAKE_CAFILE_FEDORA, true)) {
::CURLcode res = ::CURLcode res =

View File

@ -14,9 +14,8 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h" #include <cm_curl.h>
#include <string>
#include "cm_curl.h"
std::string cmCurlSetCAInfo(::CURL* curl, const char* cafile = CM_NULLPTR); std::string cmCurlSetCAInfo(::CURL* curl, const char* cafile = CM_NULLPTR);

View File

@ -13,7 +13,7 @@
#include "cmMakefile.h" #include "cmMakefile.h"
#include <cm_auto_ptr.hxx> #include <cmConfigure.h>
cmCustomCommand::cmCustomCommand() cmCustomCommand::cmCustomCommand()
: Backtrace() : Backtrace()

View File

@ -12,11 +12,15 @@
#ifndef cmCustomCommand_h #ifndef cmCustomCommand_h
#define cmCustomCommand_h #define cmCustomCommand_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h"
#include "cmCustomCommandLines.h"
#include "cmListFileCache.h" #include "cmListFileCache.h"
#include <string>
#include <utility>
#include <vector>
class cmMakefile; class cmMakefile;
/** \class cmCustomCommand /** \class cmCustomCommand

View File

@ -12,10 +12,17 @@
#include "cmCustomCommandGenerator.h" #include "cmCustomCommandGenerator.h"
#include "cmCustomCommand.h" #include "cmCustomCommand.h"
#include "cmCustomCommandLines.h"
#include "cmGeneratorExpression.h" #include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmOutputConverter.h" #include "cmOutputConverter.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cm_auto_ptr.hxx"
#include <cmConfigure.h>
cmCustomCommandGenerator::cmCustomCommandGenerator(cmCustomCommand const& cc, cmCustomCommandGenerator::cmCustomCommandGenerator(cmCustomCommand const& cc,
const std::string& config, const std::string& config,

View File

@ -12,13 +12,14 @@
#ifndef cmCustomCommandGenerator_h #ifndef cmCustomCommandGenerator_h
#define cmCustomCommandGenerator_h #define cmCustomCommandGenerator_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h" #include <string>
#include <vector>
class cmCustomCommand; class cmCustomCommand;
class cmLocalGenerator;
class cmGeneratorExpression; class cmGeneratorExpression;
class cmLocalGenerator;
class cmCustomCommandGenerator class cmCustomCommandGenerator
{ {

View File

@ -12,6 +12,8 @@
#include "cmDefinitions.h" #include "cmDefinitions.h"
#include <assert.h> #include <assert.h>
#include <set>
#include <utility>
cmDefinitions::Def cmDefinitions::NoDef; cmDefinitions::Def cmDefinitions::NoDef;

View File

@ -14,20 +14,21 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include "cmLinkedTree.h" #include "cmLinkedTree.h"
#include <string>
#include <vector>
#if defined(CMAKE_BUILD_WITH_CMAKE) #if defined(CMAKE_BUILD_WITH_CMAKE)
#ifdef CMake_HAVE_CXX_UNORDERED_MAP #ifdef CMake_HAVE_CXX_UNORDERED_MAP
#include <unordered_map> #include <unordered_map>
#else #else
#include "cmsys/hash_map.hxx" #include "cmsys/hash_map.hxx"
#endif #endif
#else
#include <map>
#endif #endif
#include <list>
/** \class cmDefinitions /** \class cmDefinitions
* \brief Store a scope of variable definitions for CMake language. * \brief Store a scope of variable definitions for CMake language.
* *

View File

@ -16,8 +16,11 @@
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <sstream>
#include <string.h> #include <string.h>
#include <utility>
cmDepends::cmDepends(cmLocalGenerator* lg, const char* targetDir) cmDepends::cmDepends(cmLocalGenerator* lg, const char* targetDir)
: CompileDirectory() : CompileDirectory()

View File

@ -14,7 +14,12 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h" #include <iosfwd>
#include <map>
#include <set>
#include <stddef.h>
#include <string>
#include <vector>
class cmFileTimeComparison; class cmFileTimeComparison;
class cmLocalGenerator; class cmLocalGenerator;

View File

@ -15,10 +15,11 @@
#include "cmFileTimeComparison.h" #include "cmFileTimeComparison.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include <cmsys/FStream.hxx>
#include <ctype.h> // isspace #include <cmsys/FStream.hxx>
#include <utility>
#define INCLUDE_REGEX_LINE \ #define INCLUDE_REGEX_LINE \
"^[ \t]*#[ \t]*(include|import)[ \t]*[<\"]([^\">]+)([\">])" "^[ \t]*#[ \t]*(include|import)[ \t]*[<\"]([^\">]+)([\">])"

View File

@ -12,10 +12,19 @@
#ifndef cmDependsC_h #ifndef cmDependsC_h
#define cmDependsC_h #define cmDependsC_h
#include <cmConfigure.h>
#include "cmDepends.h" #include "cmDepends.h"
#include <cmsys/RegularExpression.hxx> #include <cmsys/RegularExpression.hxx>
#include <iosfwd>
#include <map>
#include <queue> #include <queue>
#include <set>
#include <string>
#include <vector>
class cmLocalGenerator;
/** \class cmDependsC /** \class cmDependsC
* \brief Dependency scanner for C and C++ object files. * \brief Dependency scanner for C and C++ object files.

View File

@ -11,14 +11,20 @@
============================================================================*/ ============================================================================*/
#include "cmDependsFortran.h" #include "cmDependsFortran.h"
#include "cmFortranParser.h" /* Interface to parser object. */
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmFortranParser.h" /* Interface to parser object. */
#include <assert.h> #include <assert.h>
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <iostream>
#include <map>
#include <stdlib.h>
#include <string.h>
#include <utility>
// TODO: Test compiler for the case of the mod file. Some always // TODO: Test compiler for the case of the mod file. Some always
// use lower case and some always use upper case. I do not know if any // use lower case and some always use upper case. I do not know if any

View File

@ -12,10 +12,17 @@
#ifndef cmFortran_h #ifndef cmFortran_h
#define cmFortran_h #define cmFortran_h
#include <cmConfigure.h>
#include <iosfwd>
#include <set>
#include <string>
#include <vector>
#include "cmDepends.h" #include "cmDepends.h"
class cmDependsFortranInternals; class cmDependsFortranInternals;
class cmFortranSourceInfo; class cmFortranSourceInfo;
class cmLocalGenerator;
/** \class cmDependsFortran /** \class cmDependsFortran
* \brief Dependency scanner for Fortran object files. * \brief Dependency scanner for Fortran object files.

View File

@ -11,7 +11,6 @@
============================================================================*/ ============================================================================*/
#include "cmDependsJava.h" #include "cmDependsJava.h"
#include "cmDependsJavaParserHelper.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
cmDependsJava::cmDependsJava() cmDependsJava::cmDependsJava()

View File

@ -12,8 +12,15 @@
#ifndef cmDependsJava_h #ifndef cmDependsJava_h
#define cmDependsJava_h #define cmDependsJava_h
#include <cmConfigure.h>
#include "cmDepends.h" #include "cmDepends.h"
#include <iosfwd>
#include <map>
#include <set>
#include <string>
/** \class cmDependsJava /** \class cmDependsJava
* \brief Dependency scanner for Java class files. * \brief Dependency scanner for Java class files.
*/ */

View File

@ -11,9 +11,16 @@
============================================================================*/ ============================================================================*/
#include "cmDependsJavaParserHelper.h" #include "cmDependsJavaParserHelper.h"
#include <cmConfigure.h>
#include "cmDependsJavaLexer.h" #include "cmDependsJavaLexer.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmDependsJava_yyparse(yyscan_t yyscanner); int cmDependsJava_yyparse(yyscan_t yyscanner);

View File

@ -12,9 +12,10 @@
#ifndef cmDependsJavaParserHelper_h #ifndef cmDependsJavaParserHelper_h
#define cmDependsJavaParserHelper_h #define cmDependsJavaParserHelper_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h" #include <string>
#include <vector>
#define YYSTYPE cmDependsJavaParserHelper::ParserType #define YYSTYPE cmDependsJavaParserHelper::ParserType
#define YYSTYPE_IS_DECLARED #define YYSTYPE_IS_DECLARED

View File

@ -12,17 +12,18 @@
#include "cmDocumentation.h" #include "cmDocumentation.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmDocumentationEntry.h"
#include "cmDocumentationSection.h"
#include "cmRST.h" #include "cmRST.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmVersion.h" #include "cmVersion.h"
#include <cmsys/Directory.hxx> #include <algorithm>
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx> #include <cmsys/Glob.hxx>
#include <ctype.h> #include <ctype.h>
#include <string.h>
#include <algorithm> #include <utility>
static const char* cmDocumentationStandardOptions[][2] = { static const char* cmDocumentationStandardOptions[][2] = {
{ "--help,-help,-usage,-h,-H,/?", "Print usage information and exit." }, { "--help,-help,-usage,-h,-H,/?", "Print usage information and exit." },

View File

@ -14,15 +14,15 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include "cmDocumentationFormatter.h" #include "cmDocumentationFormatter.h"
#include "cmDocumentationSection.h"
#include "cmake.h"
namespace cmsys { #include <iosfwd>
class Directory; #include <map>
} #include <string>
#include <vector>
class cmDocumentationSection;
struct cmDocumentationEntry;
/** Class to generate documentation. */ /** Class to generate documentation. */
class cmDocumentation : public cmDocumentationEnums class cmDocumentation : public cmDocumentationEnums

View File

@ -11,8 +11,14 @@
============================================================================*/ ============================================================================*/
#include "cmDocumentationFormatter.h" #include "cmDocumentationFormatter.h"
#include "cmDocumentationEntry.h"
#include "cmDocumentationSection.h" #include "cmDocumentationSection.h"
#include <ostream>
#include <string.h>
#include <string>
#include <vector>
cmDocumentationFormatter::cmDocumentationFormatter() cmDocumentationFormatter::cmDocumentationFormatter()
: TextWidth(77) : TextWidth(77)
, TextIndent("") , TextIndent("")

View File

@ -12,9 +12,9 @@
#ifndef _cmDocumentationFormatter_h #ifndef _cmDocumentationFormatter_h
#define _cmDocumentationFormatter_h #define _cmDocumentationFormatter_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h" #include <iosfwd>
/** This is just a helper class to make it build with MSVC 6.0. /** This is just a helper class to make it build with MSVC 6.0.
Actually the enums and internal classes could directly go into Actually the enums and internal classes could directly go into

View File

@ -12,7 +12,12 @@
#ifndef _cmDocumentationSection_h #ifndef _cmDocumentationSection_h
#define _cmDocumentationSection_h #define _cmDocumentationSection_h
#include "cmDocumentationFormatter.h" #include <cmConfigure.h> // IWYU pragma: keep
#include "cmDocumentationEntry.h"
#include <string>
#include <vector>
// Low-level interface for custom documents: // Low-level interface for custom documents:
/** Internal class representing a section of the documentation. /** Internal class representing a section of the documentation.

View File

@ -11,6 +11,13 @@
============================================================================*/ ============================================================================*/
#include "cmDynamicLoader.h" #include "cmDynamicLoader.h"
#include <cmConfigure.h>
#include <cmsys/DynamicLoader.hxx>
#include <map>
#include <string>
#include <utility>
class cmDynamicLoaderCache class cmDynamicLoaderCache
{ {
public: public:

View File

@ -17,9 +17,7 @@
#ifndef cmDynamicLoader_h #ifndef cmDynamicLoader_h
#define cmDynamicLoader_h #define cmDynamicLoader_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h"
#include <cmsys/DynamicLoader.hxx> #include <cmsys/DynamicLoader.hxx>

View File

@ -9,12 +9,16 @@
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information. See the License for more information.
============================================================================*/ ============================================================================*/
#include "cmStandardIncludes.h" // to get CMAKE_USE_ELF_PARSER first
#include "cmELF.h" #include "cmELF.h"
#include <cm_auto_ptr.hxx> #include <cm_auto_ptr.hxx>
#include <cm_kwiml.h>
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <map>
#include <sstream>
#include <stddef.h>
#include <utility>
#include <vector>
// Include the ELF format information system header. // Include the ELF format information system header.
#if defined(__OpenBSD__) #if defined(__OpenBSD__)

View File

@ -12,6 +12,11 @@
#ifndef cmELF_h #ifndef cmELF_h
#define cmELF_h #define cmELF_h
#include <cmConfigure.h>
#include <iosfwd>
#include <string>
#if !defined(CMAKE_USE_ELF_PARSER) #if !defined(CMAKE_USE_ELF_PARSER)
#error "This file may be included only if CMAKE_USE_ELF_PARSER is enabled." #error "This file may be included only if CMAKE_USE_ELF_PARSER is enabled."
#endif #endif

View File

@ -12,9 +12,23 @@
#include "cmExportBuildFileGenerator.h" #include "cmExportBuildFileGenerator.h"
#include "cmExportSet.h" #include "cmExportSet.h"
#include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmPolicies.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmTargetExport.h" #include "cmTargetExport.h"
#include "cmake.h"
#include <algorithm>
#include <map>
#include <set>
#include <sstream>
#include <utility>
cmExportBuildFileGenerator::cmExportBuildFileGenerator() cmExportBuildFileGenerator::cmExportBuildFileGenerator()
{ {

View File

@ -12,10 +12,18 @@
#ifndef cmExportBuildFileGenerator_h #ifndef cmExportBuildFileGenerator_h
#define cmExportBuildFileGenerator_h #define cmExportBuildFileGenerator_h
#include <cmConfigure.h>
#include "cmExportFileGenerator.h" #include "cmExportFileGenerator.h"
#include "cmListFileCache.h"
#include <iosfwd>
#include <string>
#include <vector>
class cmExportSet; class cmExportSet;
class cmGeneratorTarget;
class cmGlobalGenerator;
class cmLocalGenerator;
/** \class cmExportBuildFileGenerator /** \class cmExportBuildFileGenerator
* \brief Generate a file exporting targets from a build tree. * \brief Generate a file exporting targets from a build tree.

View File

@ -13,20 +13,25 @@
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmComputeLinkInformation.h" #include "cmComputeLinkInformation.h"
#include "cmExportSet.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h" #include "cmGeneratorTarget.h"
#include "cmInstallExportGenerator.h" #include "cmLinkItem.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmOutputConverter.h" #include "cmOutputConverter.h"
#include "cmPolicies.h"
#include "cmState.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmTargetExport.h" #include "cmTargetExport.h"
#include "cmVersion.h" #include "cmake.h"
#include <assert.h> #include <assert.h>
#include <cm_auto_ptr.hxx> #include <cm_auto_ptr.hxx>
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <sstream>
#include <string.h>
#include <utility>
static std::string cmExportFileGeneratorEscape(std::string const& str) static std::string cmExportFileGeneratorEscape(std::string const& str)
{ {

View File

@ -12,11 +12,19 @@
#ifndef cmExportFileGenerator_h #ifndef cmExportFileGenerator_h
#define cmExportFileGenerator_h #define cmExportFileGenerator_h
#include "cmCommand.h" #include <cmConfigure.h> // IWYU pragma: keep
#include "cmGeneratorExpression.h"
#include "cmGeneratorExpression.h"
#include "cmVersion.h" #include "cmVersion.h"
#include "cmVersionMacros.h" #include "cmVersionConfig.h"
#include <iosfwd>
#include <map>
#include <set>
#include <string>
#include <vector>
class cmGeneratorTarget;
#define STRINGIFY_HELPER(X) #X #define STRINGIFY_HELPER(X) #X
#define STRINGIFY(X) STRINGIFY_HELPER(X) #define STRINGIFY(X) STRINGIFY_HELPER(X)

View File

@ -15,12 +15,22 @@
#include "cmExportSet.h" #include "cmExportSet.h"
#include "cmExportSetMap.h" #include "cmExportSetMap.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
#include "cmInstallExportGenerator.h" #include "cmInstallExportGenerator.h"
#include "cmInstallTargetGenerator.h" #include "cmInstallTargetGenerator.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmPolicies.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmTargetExport.h" #include "cmTargetExport.h"
#include <sstream>
#include <utility>
cmExportInstallFileGenerator::cmExportInstallFileGenerator( cmExportInstallFileGenerator::cmExportInstallFileGenerator(
cmInstallExportGenerator* iegen) cmInstallExportGenerator* iegen)
: IEGen(iegen) : IEGen(iegen)

View File

@ -12,8 +12,18 @@
#ifndef cmExportInstallFileGenerator_h #ifndef cmExportInstallFileGenerator_h
#define cmExportInstallFileGenerator_h #define cmExportInstallFileGenerator_h
#include <cmConfigure.h>
#include "cmExportFileGenerator.h" #include "cmExportFileGenerator.h"
#include <iosfwd>
#include <map>
#include <set>
#include <string>
#include <vector>
class cmGeneratorTarget;
class cmGlobalGenerator;
class cmInstallExportGenerator; class cmInstallExportGenerator;
class cmInstallTargetGenerator; class cmInstallTargetGenerator;

View File

@ -12,11 +12,14 @@
#ifndef cmExportSet_h #ifndef cmExportSet_h
#define cmExportSet_h #define cmExportSet_h
#include "cmSystemTools.h" #include <cmConfigure.h> // IWYU pragma: keep
#include <string>
#include <vector>
class cmTargetExport;
class cmInstallExportGenerator; class cmInstallExportGenerator;
class cmLocalGenerator; class cmLocalGenerator;
class cmTargetExport;
/// A set of targets that were installed with the same EXPORT parameter. /// A set of targets that were installed with the same EXPORT parameter.
class cmExportSet class cmExportSet

View File

@ -15,6 +15,8 @@
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmExportSet.h" #include "cmExportSet.h"
#include <utility>
cmExportSet* cmExportSetMap::operator[](const std::string& name) cmExportSet* cmExportSetMap::operator[](const std::string& name)
{ {
std::map<std::string, cmExportSet*>::iterator it = this->find(name); std::map<std::string, cmExportSet*>::iterator it = this->find(name);

View File

@ -12,7 +12,10 @@
#ifndef cmExportSetMap_h #ifndef cmExportSetMap_h
#define cmExportSetMap_h #define cmExportSetMap_h
#include "cmSystemTools.h" #include <cmConfigure.h> // IWYU pragma: keep
#include <map>
#include <string>
class cmExportSet; class cmExportSet;

View File

@ -12,10 +12,19 @@
#include "cmExportTryCompileFileGenerator.h" #include "cmExportTryCompileFileGenerator.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratorExpression.h"
#include "cmGeneratorExpressionDAGChecker.h" #include "cmGeneratorExpressionDAGChecker.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cm_auto_ptr.hxx"
#include <map>
#include <utility>
cmExportTryCompileFileGenerator::cmExportTryCompileFileGenerator( cmExportTryCompileFileGenerator::cmExportTryCompileFileGenerator(
cmGlobalGenerator* gg, const std::vector<std::string>& targets, cmGlobalGenerator* gg, const std::vector<std::string>& targets,

View File

@ -12,10 +12,18 @@
#ifndef cmExportTryCompileFileGenerator_h #ifndef cmExportTryCompileFileGenerator_h
#define cmExportTryCompileFileGenerator_h #define cmExportTryCompileFileGenerator_h
#include <cmConfigure.h>
#include "cmExportFileGenerator.h" #include "cmExportFileGenerator.h"
class cmInstallExportGenerator; #include <iosfwd>
class cmInstallTargetGenerator; #include <set>
#include <string>
#include <vector>
class cmGeneratorTarget;
class cmGlobalGenerator;
class cmMakefile;
class cmExportTryCompileFileGenerator : public cmExportFileGenerator class cmExportTryCompileFileGenerator : public cmExportFileGenerator
{ {

View File

@ -11,11 +11,13 @@
============================================================================*/ ============================================================================*/
#include "cmExprParserHelper.h" #include "cmExprParserHelper.h"
#include "cmMakefile.h" #include <cmConfigure.h>
#include "cmSystemTools.h"
#include "cmExprLexer.h" #include "cmExprLexer.h"
#include <iostream>
#include <sstream>
int cmExpr_yyparse(yyscan_t yyscanner); int cmExpr_yyparse(yyscan_t yyscanner);
// //
cmExprParserHelper::cmExprParserHelper() cmExprParserHelper::cmExprParserHelper()

View File

@ -12,9 +12,10 @@
#ifndef cmExprParserHelper_h #ifndef cmExprParserHelper_h
#define cmExprParserHelper_h #define cmExprParserHelper_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h" #include <string>
#include <vector>
#define YYSTYPE cmExprParserHelper::ParserType #define YYSTYPE cmExprParserHelper::ParserType
#define YYSTYPE_IS_DECLARED #define YYSTYPE_IS_DECLARED
@ -26,9 +27,6 @@
* *
* Finds dependencies for java file and list of outputs * Finds dependencies for java file and list of outputs
*/ */
class cmMakefile;
class cmExprParserHelper class cmExprParserHelper
{ {
public: public:

View File

@ -12,7 +12,7 @@
#include "cmExternalMakefileProjectGenerator.h" #include "cmExternalMakefileProjectGenerator.h"
#include <assert.h> class cmMakefile;
void cmExternalMakefileProjectGenerator::EnableLanguage( void cmExternalMakefileProjectGenerator::EnableLanguage(
std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/, std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,

View File

@ -12,13 +12,13 @@
#ifndef cmExternalMakefileProjectGenerator_h #ifndef cmExternalMakefileProjectGenerator_h
#define cmExternalMakefileProjectGenerator_h #define cmExternalMakefileProjectGenerator_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h" #include <string>
#include <vector>
#include "cmDocumentation.h"
class cmGlobalGenerator; class cmGlobalGenerator;
class cmMakefile;
/** \class cmExternalMakefileProjectGenerator /** \class cmExternalMakefileProjectGenerator
* \brief Base class for generators for "External Makefile based IDE projects". * \brief Base class for generators for "External Makefile based IDE projects".

View File

@ -12,16 +12,23 @@
============================================================================*/ ============================================================================*/
#include "cmExtraCodeBlocksGenerator.h" #include "cmExtraCodeBlocksGenerator.h"
#include "cmAlgorithms.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGlobalUnixMakefileGenerator3.h" #include "cmGeneratorTarget.h"
#include "cmLocalUnixMakefileGenerator3.h" #include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include "cmState.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include "cmake.h" #include "cmake.h"
#include <cmsys/SystemTools.hxx> #include <algorithm>
#include <map>
#include <ostream>
#include <string.h>
#include <utility>
/* Some useful URLs: /* Some useful URLs:
Homepage: Homepage:

View File

@ -13,11 +13,16 @@
#ifndef cmExtraCodeBlocksGenerator_h #ifndef cmExtraCodeBlocksGenerator_h
#define cmExtraCodeBlocksGenerator_h #define cmExtraCodeBlocksGenerator_h
#include <cmConfigure.h>
#include "cmExternalMakefileProjectGenerator.h" #include "cmExternalMakefileProjectGenerator.h"
#include <string>
#include <vector>
class cmGeneratorTarget;
class cmLocalGenerator; class cmLocalGenerator;
class cmMakefile; class cmMakefile;
class cmGeneratorTarget;
class cmXMLWriter; class cmXMLWriter;
/** \class cmExtraCodeBlocksGenerator /** \class cmExtraCodeBlocksGenerator

View File

@ -14,18 +14,22 @@
#include "cmExtraCodeLiteGenerator.h" #include "cmExtraCodeLiteGenerator.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGlobalUnixMakefileGenerator3.h" #include "cmGeneratorTarget.h"
#include "cmLocalUnixMakefileGenerator3.h" #include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include "cmState.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include "cmake.h" #include "cmake.h"
#include "cmStandardIncludes.h"
#include "cmXMLWriter.h"
#include <cmsys/Directory.hxx>
#include <cmsys/SystemInformation.hxx> #include <cmsys/SystemInformation.hxx>
#include <cmsys/SystemTools.hxx> #include <map>
#include <set>
#include <sstream>
#include <string.h>
#include <utility>
cmExtraCodeLiteGenerator::cmExtraCodeLiteGenerator() cmExtraCodeLiteGenerator::cmExtraCodeLiteGenerator()
: cmExternalMakefileProjectGenerator() : cmExternalMakefileProjectGenerator()

View File

@ -14,9 +14,15 @@
#ifndef cmGlobalCodeLiteGenerator_h #ifndef cmGlobalCodeLiteGenerator_h
#define cmGlobalCodeLiteGenerator_h #define cmGlobalCodeLiteGenerator_h
#include <cmConfigure.h>
#include "cmExternalMakefileProjectGenerator.h" #include "cmExternalMakefileProjectGenerator.h"
#include <string>
#include <vector>
class cmLocalGenerator; class cmLocalGenerator;
class cmMakefile;
class cmExtraCodeLiteGenerator : public cmExternalMakefileProjectGenerator class cmExtraCodeLiteGenerator : public cmExternalMakefileProjectGenerator
{ {

View File

@ -14,17 +14,26 @@
#include "cmExtraEclipseCDT4Generator.h" #include "cmExtraEclipseCDT4Generator.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGlobalUnixMakefileGenerator3.h" #include "cmGeneratorExpression.h"
#include "cmLocalUnixMakefileGenerator3.h" #include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include "cmSourceGroup.h"
#include "cmState.h" #include "cmState.h"
#include "cmTarget.h"
#include "cmXMLWriter.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include "cmake.h"
#include <algorithm>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <cmsys/RegularExpression.hxx>
#include <map>
#include <sstream>
#include <stdio.h>
#include <utility>
static void AppendAttribute(cmXMLWriter& xml, const char* keyval) static void AppendAttribute(cmXMLWriter& xml, const char* keyval)
{ {

View File

@ -14,11 +14,19 @@
#ifndef cmExtraEclipseCDT4Generator_h #ifndef cmExtraEclipseCDT4Generator_h
#define cmExtraEclipseCDT4Generator_h #define cmExtraEclipseCDT4Generator_h
#include <cmConfigure.h>
#include "cmExternalMakefileProjectGenerator.h" #include "cmExternalMakefileProjectGenerator.h"
#include <iosfwd>
#include <set>
#include <string>
#include <vector>
class cmLocalGenerator;
class cmMakefile; class cmMakefile;
class cmXMLWriter;
class cmSourceGroup; class cmSourceGroup;
class cmXMLWriter;
/** \class cmExtraEclipseCDT4Generator /** \class cmExtraEclipseCDT4Generator
* \brief Write Eclipse project files for Makefile based projects * \brief Write Eclipse project files for Makefile based projects

View File

@ -13,14 +13,18 @@
#include "cmExtraKateGenerator.h" #include "cmExtraKateGenerator.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGlobalUnixMakefileGenerator3.h" #include "cmGeneratorTarget.h"
#include "cmLocalUnixMakefileGenerator3.h" #include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include "cmState.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmake.h"
#include <cmsys/SystemTools.hxx> #include <ostream>
#include <set>
#include <string.h>
#include <vector>
cmExtraKateGenerator::cmExtraKateGenerator() cmExtraKateGenerator::cmExtraKateGenerator()
: cmExternalMakefileProjectGenerator() : cmExternalMakefileProjectGenerator()

View File

@ -13,10 +13,14 @@
#ifndef cmExtraKateGenerator_h #ifndef cmExtraKateGenerator_h
#define cmExtraKateGenerator_h #define cmExtraKateGenerator_h
#include <cmConfigure.h>
#include "cmExternalMakefileProjectGenerator.h" #include "cmExternalMakefileProjectGenerator.h"
class cmLocalGenerator; #include <string>
class cmGeneratedFileStream; class cmGeneratedFileStream;
class cmLocalGenerator;
/** \class cmExtraKateGenerator /** \class cmExtraKateGenerator
* \brief Write Kate project files for Makefile or ninja based projects * \brief Write Kate project files for Makefile or ninja based projects

View File

@ -14,15 +14,18 @@
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGeneratorTarget.h" #include "cmGeneratorTarget.h"
#include "cmGlobalUnixMakefileGenerator3.h" #include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmLocalUnixMakefileGenerator3.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include "cmState.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmake.h"
#include <cmsys/SystemTools.hxx> #include <cmsys/RegularExpression.hxx>
#include <ostream>
#include <set>
#include <string.h>
#include <utility>
/* /*
Sublime Text 2 Generator Sublime Text 2 Generator

View File

@ -13,13 +13,19 @@
#ifndef cmExtraSublimeTextGenerator_h #ifndef cmExtraSublimeTextGenerator_h
#define cmExtraSublimeTextGenerator_h #define cmExtraSublimeTextGenerator_h
#include "cmExternalMakefileProjectGenerator.h" #include <cmConfigure.h>
#include "cmSourceFile.h"
#include "cmExternalMakefileProjectGenerator.h"
#include <map>
#include <string>
#include <vector>
class cmLocalGenerator;
class cmMakefile;
class cmGeneratedFileStream; class cmGeneratedFileStream;
class cmGeneratorTarget; class cmGeneratorTarget;
class cmLocalGenerator;
class cmMakefile;
class cmSourceFile;
/** \class cmExtraSublimeTextGenerator /** \class cmExtraSublimeTextGenerator
* \brief Write Sublime Text 2 project files for Makefile based projects * \brief Write Sublime Text 2 project files for Makefile based projects

View File

@ -13,9 +13,9 @@
#ifndef cmFileLock_h #ifndef cmFileLock_h
#define cmFileLock_h #define cmFileLock_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h" #include <string>
#if defined(_WIN32) #if defined(_WIN32)
#include <windows.h> // HANDLE #include <windows.h> // HANDLE

View File

@ -12,14 +12,13 @@
#ifndef cmFileLockPool_h #ifndef cmFileLockPool_h
#define cmFileLockPool_h #define cmFileLockPool_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h"
#include <list> #include <list>
#include <string>
class cmFileLockResult;
class cmFileLock; class cmFileLock;
class cmFileLockResult;
class cmFileLockPool class cmFileLockPool
{ {

View File

@ -13,6 +13,7 @@
#include "cmFileLockResult.h" #include "cmFileLockResult.h"
#include <errno.h> #include <errno.h>
#include <string.h>
cmFileLockResult cmFileLockResult::MakeOk() cmFileLockResult cmFileLockResult::MakeOk()
{ {

View File

@ -13,9 +13,9 @@
#ifndef cmFileLockResult_h #ifndef cmFileLockResult_h
#define cmFileLockResult_h #define cmFileLockResult_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h" #include <string>
#if defined(_WIN32) #if defined(_WIN32)
#include <windows.h> // DWORD #include <windows.h> // DWORD

View File

@ -17,6 +17,8 @@
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include <vector>
cmFilePathUuid::cmFilePathUuid(cmMakefile* makefile) cmFilePathUuid::cmFilePathUuid(cmMakefile* makefile)
{ {
initParentDirs(makefile->GetCurrentSourceDirectory(), initParentDirs(makefile->GetCurrentSourceDirectory(),

View File

@ -13,10 +13,9 @@
#ifndef cmFilePathUuid_h #ifndef cmFilePathUuid_h
#define cmFilePathUuid_h #define cmFilePathUuid_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h"
#include <stddef.h>
#include <string> #include <string>
#include <utility> #include <utility>

View File

@ -11,6 +11,11 @@
============================================================================*/ ============================================================================*/
#include "cmFileTimeComparison.h" #include "cmFileTimeComparison.h"
#include <cmConfigure.h>
#include <string>
#include <time.h>
#include <utility>
// Use a hash table to avoid duplicate file time checks from disk. // Use a hash table to avoid duplicate file time checks from disk.
#if defined(CMAKE_BUILD_WITH_CMAKE) #if defined(CMAKE_BUILD_WITH_CMAKE)
#ifdef CMake_HAVE_CXX_UNORDERED_MAP #ifdef CMake_HAVE_CXX_UNORDERED_MAP
@ -20,16 +25,14 @@
#endif #endif
#endif #endif
#include <cmsys/Encoding.hxx>
// Use a platform-specific API to get file times efficiently. // Use a platform-specific API to get file times efficiently.
#if !defined(_WIN32) || defined(__CYGWIN__) #if !defined(_WIN32) || defined(__CYGWIN__)
#define cmFileTimeComparison_Type struct stat
#include <ctype.h>
#include <sys/stat.h> #include <sys/stat.h>
#define cmFileTimeComparison_Type struct stat
#else #else
#define cmFileTimeComparison_Type FILETIME #include <cmsys/Encoding.hxx>
#include <windows.h> #include <windows.h>
#define cmFileTimeComparison_Type FILETIME
#endif #endif
class cmFileTimeComparisonInternal class cmFileTimeComparisonInternal

View File

@ -12,9 +12,7 @@
#ifndef cmFileTimeComparison_h #ifndef cmFileTimeComparison_h
#define cmFileTimeComparison_h #define cmFileTimeComparison_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h"
class cmFileTimeComparisonInternal; class cmFileTimeComparisonInternal;

View File

@ -10,9 +10,16 @@
See the License for more information. See the License for more information.
============================================================================*/ ============================================================================*/
#include "cmFortranParser.h" #include "cmFortranParser.h"
#include "cmFortranLexer.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include <assert.h> #include <assert.h>
#include <cmConfigure.h>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
bool cmFortranParser_s::FindIncludeFile(const char* dir, bool cmFortranParser_s::FindIncludeFile(const char* dir,
const char* includeName, const char* includeName,

View File

@ -13,6 +13,8 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include <stdio.h>
#if defined(CMAKE_BUILD_WITH_CMAKE) #if defined(CMAKE_BUILD_WITH_CMAKE)
#include <cm_zlib.h> #include <cm_zlib.h>
#endif #endif

View File

@ -14,9 +14,8 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <string>
// This is the first base class of cmGeneratedFileStream. It will be // This is the first base class of cmGeneratedFileStream. It will be
// created before and destroyed after the ofstream portion and can // created before and destroyed after the ofstream portion and can

View File

@ -13,12 +13,14 @@
#include "assert.h" #include "assert.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmSystemTools.h" #include "cmGeneratorExpressionContext.h"
#include "cmGeneratorExpressionDAGChecker.h"
#include "cmGeneratorExpressionEvaluator.h" #include "cmGeneratorExpressionEvaluator.h"
#include "cmGeneratorExpressionLexer.h" #include "cmGeneratorExpressionLexer.h"
#include "cmGeneratorExpressionParser.h" #include "cmGeneratorExpressionParser.h"
#include "cmSystemTools.h"
#include <cmsys/RegularExpression.hxx>
#include <utility>
cmGeneratorExpression::cmGeneratorExpression( cmGeneratorExpression::cmGeneratorExpression(
const cmListFileBacktrace& backtrace) const cmListFileBacktrace& backtrace)

View File

@ -15,22 +15,20 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include "cmListFileCache.h" #include "cmListFileCache.h"
#include <cm_auto_ptr.hxx> #include <cm_auto_ptr.hxx>
#include <cmsys/RegularExpression.hxx> #include <map>
#include <set>
class cmGeneratorTarget; #include <string>
class cmLocalGenerator; #include <vector>
class cmListFileBacktrace;
struct cmGeneratorExpressionEvaluator;
struct cmGeneratorExpressionContext;
struct cmGeneratorExpressionDAGChecker;
class cmCompiledGeneratorExpression; class cmCompiledGeneratorExpression;
class cmGeneratorTarget;
class cmLocalGenerator;
struct cmGeneratorExpressionContext;
struct cmGeneratorExpressionDAGChecker;
struct cmGeneratorExpressionEvaluator;
/** \class cmGeneratorExpression /** \class cmGeneratorExpression
* \brief Evaluate generate-time query expression syntax. * \brief Evaluate generate-time query expression syntax.

View File

@ -12,8 +12,6 @@
#include "cmGeneratorExpressionContext.h" #include "cmGeneratorExpressionContext.h"
#include "cmGeneratorTarget.h"
cmGeneratorExpressionContext::cmGeneratorExpressionContext( cmGeneratorExpressionContext::cmGeneratorExpressionContext(
cmLocalGenerator* lg, std::string const& config, bool quiet, cmLocalGenerator* lg, std::string const& config, bool quiet,
cmGeneratorTarget const* headTarget, const cmGeneratorTarget* currentTarget, cmGeneratorTarget const* headTarget, const cmGeneratorTarget* currentTarget,

View File

@ -13,7 +13,15 @@
#include "cmGeneratorExpressionDAGChecker.h" #include "cmGeneratorExpressionDAGChecker.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmGeneratorExpressionContext.h"
#include "cmGeneratorExpressionEvaluator.h"
#include "cmGeneratorTarget.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmake.h"
#include <sstream>
#include <string.h>
#include <utility>
cmGeneratorExpressionDAGChecker::cmGeneratorExpressionDAGChecker( cmGeneratorExpressionDAGChecker::cmGeneratorExpressionDAGChecker(
const cmListFileBacktrace& backtrace, const std::string& target, const cmListFileBacktrace& backtrace, const std::string& target,

View File

@ -14,9 +14,14 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h" #include "cmListFileCache.h"
#include "cmGeneratorExpressionEvaluator.h" #include <map>
#include <set>
#include <string>
struct GeneratorExpressionContent;
struct cmGeneratorExpressionContext;
#define CM_SELECT_BOTH(F, A1, A2) F(A1, A2) #define CM_SELECT_BOTH(F, A1, A2) F(A1, A2)
#define CM_SELECT_FIRST(F, A1, A2) F(A1) #define CM_SELECT_FIRST(F, A1, A2) F(A1)

View File

@ -14,12 +14,17 @@
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
#include "cmListFileCache.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include <cmsys/FStream.hxx> #include "cmSystemTools.h"
#include "cmake.h"
#include <assert.h> #include <cmConfigure.h>
#include <cmsys/FStream.hxx>
#include <sstream>
#include <utility>
cmGeneratorExpressionEvaluationFile::cmGeneratorExpressionEvaluationFile( cmGeneratorExpressionEvaluationFile::cmGeneratorExpressionEvaluationFile(
const std::string& input, const std::string& input,

View File

@ -12,10 +12,15 @@
#ifndef cmGeneratorExpressionEvaluationFile_h #ifndef cmGeneratorExpressionEvaluationFile_h
#define cmGeneratorExpressionEvaluationFile_h #define cmGeneratorExpressionEvaluationFile_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmGeneratorExpression.h" #include "cmGeneratorExpression.h"
#include <cm_auto_ptr.hxx> #include <cm_auto_ptr.hxx>
#include <map>
#include <string>
#include <sys/types.h> #include <sys/types.h>
#include <vector>
class cmLocalGenerator; class cmLocalGenerator;

View File

@ -12,21 +12,12 @@
#include "cmGeneratorExpressionEvaluator.h" #include "cmGeneratorExpressionEvaluator.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmGeneratorExpression.h" #include "cmGeneratorExpressionContext.h"
#include "cmGeneratorExpressionDAGChecker.h"
#include "cmGeneratorExpressionParser.h"
#include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmSourceFile.h"
#include <cmsys/String.h>
#include <assert.h>
#include <errno.h>
#include "cmGeneratorExpressionNode.h" #include "cmGeneratorExpressionNode.h"
#include <algorithm>
#include <sstream>
GeneratorExpressionContent::GeneratorExpressionContent( GeneratorExpressionContent::GeneratorExpressionContent(
const char* startContent, size_t length) const char* startContent, size_t length)
: StartContent(startContent) : StartContent(startContent)

View File

@ -12,13 +12,13 @@
#ifndef cmGeneratorExpressionEvaluator_h #ifndef cmGeneratorExpressionEvaluator_h
#define cmGeneratorExpressionEvaluator_h #define cmGeneratorExpressionEvaluator_h
#include "cmGeneratorExpressionContext.h" #include <cmConfigure.h>
#include "cmListFileCache.h"
#include <stddef.h>
#include <string> #include <string>
#include <vector> #include <vector>
struct cmGeneratorExpressionContext;
struct cmGeneratorExpressionDAGChecker; struct cmGeneratorExpressionDAGChecker;
struct cmGeneratorExpressionNode; struct cmGeneratorExpressionNode;

View File

@ -12,10 +12,10 @@
#ifndef cmGeneratorExpressionLexer_h #ifndef cmGeneratorExpressionLexer_h
#define cmGeneratorExpressionLexer_h #define cmGeneratorExpressionLexer_h
#include <cmConfigure.h> #include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h"
#include <stddef.h>
#include <string>
#include <vector> #include <vector>
struct cmGeneratorExpressionToken struct cmGeneratorExpressionToken

View File

@ -13,9 +13,36 @@
#include "cmGeneratorExpressionNode.h" #include "cmGeneratorExpressionNode.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmGeneratorExpression.h"
#include "cmGeneratorExpressionContext.h"
#include "cmGeneratorExpressionDAGChecker.h"
#include "cmGeneratorExpressionEvaluator.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
#include "cmLinkItem.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmOutputConverter.h" #include "cmOutputConverter.h"
#include "cmPolicies.h"
#include "cmSourceFile.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cm_auto_ptr.hxx"
#include "cmake.h"
#include <algorithm>
#include <assert.h>
#include <cmConfigure.h>
#include <cmsys/RegularExpression.hxx>
#include <cmsys/String.h>
#include <errno.h>
#include <map>
#include <set>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <utility>
std::string cmGeneratorExpressionNode::EvaluateDependentExpression( std::string cmGeneratorExpressionNode::EvaluateDependentExpression(
std::string const& prop, cmLocalGenerator* lg, std::string const& prop, cmLocalGenerator* lg,
@ -1455,13 +1482,12 @@ static const struct InstallPrefixNode : public cmGeneratorExpressionNode
} installPrefixNode; } installPrefixNode;
class ArtifactNameTag;
class ArtifactLinkerTag;
class ArtifactSonameTag;
class ArtifactPdbTag;
class ArtifactPathTag;
class ArtifactDirTag; class ArtifactDirTag;
class ArtifactLinkerTag;
class ArtifactNameTag;
class ArtifactPathTag;
class ArtifactPdbTag;
class ArtifactSonameTag;
template <typename ArtifactT> template <typename ArtifactT>
struct TargetFilesystemArtifactResultCreator struct TargetFilesystemArtifactResultCreator

View File

@ -12,20 +12,16 @@
#ifndef cmGeneratorExpressionNode_h #ifndef cmGeneratorExpressionNode_h
#define cmGeneratorExpressionNode_h #define cmGeneratorExpressionNode_h
#include "cmGeneratorExpression.h" #include <cmConfigure.h> // IWYU pragma: keep
#include "cmGeneratorExpressionDAGChecker.h" #include <string>
#include "cmGeneratorExpressionEvaluator.h" #include <vector>
#include "cmGeneratorExpressionParser.h"
#include "cmLocalGenerator.h"
#include "cmSourceFile.h"
#include <cmsys/String.h> class cmGeneratorTarget;
class cmLocalGenerator;
#include <assert.h> struct GeneratorExpressionContent;
#include <errno.h> struct cmGeneratorExpressionContext;
struct cmGeneratorExpressionDAGChecker;
#include "cmListFileCache.h"
struct cmGeneratorExpressionNode struct cmGeneratorExpressionNode
{ {

View File

@ -14,7 +14,8 @@
#include "cmGeneratorExpressionEvaluator.h" #include "cmGeneratorExpressionEvaluator.h"
#include "assert.h" #include <assert.h>
#include <stddef.h>
cmGeneratorExpressionParser::cmGeneratorExpressionParser( cmGeneratorExpressionParser::cmGeneratorExpressionParser(
const std::vector<cmGeneratorExpressionToken>& tokens) const std::vector<cmGeneratorExpressionToken>& tokens)

View File

@ -12,12 +12,11 @@
#ifndef cmGeneratorExpressionParser_h #ifndef cmGeneratorExpressionParser_h
#define cmGeneratorExpressionParser_h #define cmGeneratorExpressionParser_h
#include "cmGeneratorExpressionLexer.h" #include <cmConfigure.h> // IWYU pragma: keep
#include <set>
#include <vector> #include <vector>
#include "cmListFileCache.h" #include "cmGeneratorExpressionLexer.h"
struct cmGeneratorExpressionEvaluator; struct cmGeneratorExpressionEvaluator;

View File

@ -13,19 +13,33 @@
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmComputeLinkInformation.h" #include "cmComputeLinkInformation.h"
#include "cmCustomCommand.h"
#include "cmCustomCommandGenerator.h" #include "cmCustomCommandGenerator.h"
#include "cmCustomCommandLines.h"
#include "cmGeneratorExpression.h" #include "cmGeneratorExpression.h"
#include "cmGeneratorExpressionDAGChecker.h" #include "cmGeneratorExpressionDAGChecker.h"
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmPropertyMap.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include "cmSourceFileLocation.h"
#include "cmSystemTools.h"
#include "cmTarget.h" #include "cmTarget.h"
#include "cmTargetLinkLibraryType.h"
#include "cm_auto_ptr.hxx"
#include "cmake.h"
#include <queue> #include <algorithm>
#include <assert.h>
#include "assert.h" #include <cmsys/RegularExpression.hxx>
#include <errno.h> #include <errno.h>
#include <iterator>
#include <queue>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(CMake_HAVE_CXX_UNORDERED_SET) #if defined(CMake_HAVE_CXX_UNORDERED_SET)
#include <unordered_set> #include <unordered_set>

View File

@ -12,15 +12,26 @@
#ifndef cmGeneratorTarget_h #ifndef cmGeneratorTarget_h
#define cmGeneratorTarget_h #define cmGeneratorTarget_h
#include "cmLinkItem.h" #include <cmConfigure.h>
#include "cmLinkItem.h"
#include "cmListFileCache.h"
#include "cmPolicies.h"
#include "cmState.h"
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
class cmComputeLinkInformation;
class cmCustomCommand; class cmCustomCommand;
class cmGlobalGenerator; class cmGlobalGenerator;
class cmLocalGenerator; class cmLocalGenerator;
class cmMakefile; class cmMakefile;
class cmSourceFile; class cmSourceFile;
class cmTarget; class cmTarget;
class cmComputeLinkInformation;
class cmGeneratorTarget class cmGeneratorTarget
{ {

View File

@ -12,6 +12,7 @@
#include "cmGhsMultiTargetGenerator.h" #include "cmGhsMultiTargetGenerator.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGhsMultiGenerator.h" #include "cmGlobalGhsMultiGenerator.h"
#include "cmLocalGhsMultiGenerator.h" #include "cmLocalGhsMultiGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"

View File

@ -11,6 +11,8 @@
============================================================================*/ ============================================================================*/
#include "cmGlobalCommonGenerator.h" #include "cmGlobalCommonGenerator.h"
class cmake;
cmGlobalCommonGenerator::cmGlobalCommonGenerator(cmake* cm) cmGlobalCommonGenerator::cmGlobalCommonGenerator(cmake* cm)
: cmGlobalGenerator(cm) : cmGlobalGenerator(cm)
{ {

View File

@ -12,8 +12,12 @@
#ifndef cmGlobalCommonGenerator_h #ifndef cmGlobalCommonGenerator_h
#define cmGlobalCommonGenerator_h #define cmGlobalCommonGenerator_h
#include <cmConfigure.h>
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
class cmake;
/** \class cmGlobalCommonGenerator /** \class cmGlobalCommonGenerator
* \brief Common infrastructure for Makefile and Ninja global generators. * \brief Common infrastructure for Makefile and Ninja global generators.
*/ */

View File

@ -21,6 +21,8 @@
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmCPackPropertiesGenerator.h" #include "cmCPackPropertiesGenerator.h"
#include "cmComputeTargetDepends.h" #include "cmComputeTargetDepends.h"
#include "cmCustomCommand.h"
#include "cmCustomCommandLines.h"
#include "cmExportBuildFileGenerator.h" #include "cmExportBuildFileGenerator.h"
#include "cmExternalMakefileProjectGenerator.h" #include "cmExternalMakefileProjectGenerator.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
@ -29,25 +31,31 @@
#include "cmInstallGenerator.h" #include "cmInstallGenerator.h"
#include "cmLocalGenerator.h" #include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmPolicies.h"
#include "cmQtAutoGeneratorInitializer.h" #include "cmQtAutoGeneratorInitializer.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include "cmState.h" #include "cmState.h"
#include "cmTargetExport.h"
#include "cmVersion.h" #include "cmVersion.h"
#include "cmake.h" #include "cmake.h"
#include <algorithm>
#include <assert.h>
#include <cmsys/Directory.hxx> #include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <iterator>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(CMAKE_BUILD_WITH_CMAKE) #if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cm_jsoncpp_value.h" #include <cm_jsoncpp_value.h>
#include "cm_jsoncpp_writer.h" #include <cm_jsoncpp_writer.h>
#include <cmsys/MD5.h> #include <cmsys/MD5.h>
#endif #endif
#include <stdlib.h> // required for atof class cmInstalledFile;
#include <assert.h>
bool cmTarget::StrictTargetComparison::operator()(cmTarget const* t1, bool cmTarget::StrictTargetComparison::operator()(cmTarget const* t1,
cmTarget const* t2) const cmTarget const* t2) const

View File

@ -15,15 +15,18 @@
#include <cmConfigure.h> #include <cmConfigure.h>
#include "cmStandardIncludes.h" #include "cmExportSetMap.h"
#include "cmExportSetMap.h" // For cmExportSetMap
#include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
#include "cmState.h" #include "cmState.h"
#include "cmSystemTools.h" // for cmSystemTools::OutputOption #include "cmSystemTools.h"
#include "cmTarget.h" // For cmTargets #include "cmTarget.h"
#include "cmTargetDepend.h" // For cmTargetDependSet #include "cmTargetDepend.h"
#include <iosfwd>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
#if defined(CMAKE_BUILD_WITH_CMAKE) #if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cmFileLockPool.h" #include "cmFileLockPool.h"
@ -34,15 +37,14 @@
#endif #endif
#endif #endif
class cmake; class cmCustomCommandLines;
class cmGeneratorTarget; class cmSourceFile;
class cmMakefile;
class cmLocalGenerator;
class cmExternalMakefileProjectGenerator;
class cmTarget;
class cmInstallTargetGenerator;
class cmInstallFilesGenerator;
class cmExportBuildFileGenerator; class cmExportBuildFileGenerator;
class cmExternalMakefileProjectGenerator;
class cmGeneratorTarget;
class cmLocalGenerator;
class cmMakefile;
class cmake;
/** \class cmGlobalGenerator /** \class cmGlobalGenerator
* \brief Responsible for overseeing the generation process for the entire tree * \brief Responsible for overseeing the generation process for the entire tree

View File

@ -12,6 +12,7 @@
#include "cmGlobalGhsMultiGenerator.h" #include "cmGlobalGhsMultiGenerator.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGeneratorTarget.h"
#include "cmGhsMultiTargetGenerator.h" #include "cmGhsMultiTargetGenerator.h"
#include "cmLocalGhsMultiGenerator.h" #include "cmLocalGhsMultiGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"

View File

@ -13,17 +13,23 @@
#include "cmGlobalKdevelopGenerator.h" #include "cmGlobalKdevelopGenerator.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGlobalUnixMakefileGenerator3.h" #include "cmGeneratorTarget.h"
#include "cmLocalUnixMakefileGenerator3.h" #include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"
#include "cmState.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include "cmake.h" #include "cmake.h"
#include <cmsys/Directory.hxx> #include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx> #include <cmsys/FStream.hxx>
#include <cmsys/SystemTools.hxx> #include <map>
#include <set>
#include <string.h>
#include <utility>
cmGlobalKdevelopGenerator::cmGlobalKdevelopGenerator() cmGlobalKdevelopGenerator::cmGlobalKdevelopGenerator()
: cmExternalMakefileProjectGenerator() : cmExternalMakefileProjectGenerator()

View File

@ -13,8 +13,13 @@
#ifndef cmGlobalKdevelopGenerator_h #ifndef cmGlobalKdevelopGenerator_h
#define cmGlobalKdevelopGenerator_h #define cmGlobalKdevelopGenerator_h
#include <cmConfigure.h>
#include "cmExternalMakefileProjectGenerator.h" #include "cmExternalMakefileProjectGenerator.h"
#include <string>
#include <vector>
class cmLocalGenerator; class cmLocalGenerator;
/** \class cmGlobalKdevelopGenerator /** \class cmGlobalKdevelopGenerator

View File

@ -13,16 +13,27 @@
#include "cmGlobalNinjaGenerator.h" #include "cmGlobalNinjaGenerator.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmDocumentationEntry.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGeneratorExpressionEvaluationFile.h" #include "cmGeneratorExpressionEvaluationFile.h"
#include "cmGeneratorTarget.h" #include "cmGeneratorTarget.h"
#include "cmLocalGenerator.h"
#include "cmLocalNinjaGenerator.h" #include "cmLocalNinjaGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmTargetDepend.h"
#include "cmVersion.h" #include "cmVersion.h"
#include "cmake.h"
#include <algorithm> #include <algorithm>
#include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <functional>
#include <iterator>
#include <sstream>
#include <stdio.h>
const char* cmGlobalNinjaGenerator::NINJA_BUILD_FILE = "build.ninja"; const char* cmGlobalNinjaGenerator::NINJA_BUILD_FILE = "build.ninja";
const char* cmGlobalNinjaGenerator::NINJA_RULES_FILE = "rules.ninja"; const char* cmGlobalNinjaGenerator::NINJA_RULES_FILE = "rules.ninja";

View File

@ -13,16 +13,28 @@
#ifndef cmGlobalNinjaGenerator_h #ifndef cmGlobalNinjaGenerator_h
#define cmGlobalNinjaGenerator_h #define cmGlobalNinjaGenerator_h
#include "cmGlobalCommonGenerator.h" #include <cmConfigure.h>
#include "cmGlobalCommonGenerator.h"
#include "cmGlobalGenerator.h"
#include "cmGlobalGeneratorFactory.h" #include "cmGlobalGeneratorFactory.h"
#include "cmNinjaTypes.h" #include "cmNinjaTypes.h"
#include "cmPolicies.h"
//#define NINJA_GEN_VERBOSE_FILES #include <iosfwd>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
class cmLocalGenerator; class cmCustomCommand;
class cmMakefile;
class cmake;
struct cmDocumentationEntry;
class cmGeneratedFileStream; class cmGeneratedFileStream;
class cmGeneratorTarget; class cmGeneratorTarget;
class cmLocalGenerator;
/** /**
* \class cmGlobalNinjaGenerator * \class cmGlobalNinjaGenerator

View File

@ -12,13 +12,25 @@
#include "cmGlobalUnixMakefileGenerator3.h" #include "cmGlobalUnixMakefileGenerator3.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmDocumentationEntry.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
#include "cmGeneratorTarget.h" #include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmLocalUnixMakefileGenerator3.h" #include "cmLocalUnixMakefileGenerator3.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmMakefileTargetGenerator.h" #include "cmMakefileTargetGenerator.h"
#include "cmOutputConverter.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmTargetDepend.h"
#include "cmake.h" #include "cmake.h"
#include <algorithm>
#include <functional>
#include <sstream>
#include <utility>
cmGlobalUnixMakefileGenerator3::cmGlobalUnixMakefileGenerator3(cmake* cm) cmGlobalUnixMakefileGenerator3::cmGlobalUnixMakefileGenerator3(cmake* cm)
: cmGlobalCommonGenerator(cm) : cmGlobalCommonGenerator(cm)
{ {

View File

@ -12,13 +12,27 @@
#ifndef cmGlobalUnixMakefileGenerator3_h #ifndef cmGlobalUnixMakefileGenerator3_h
#define cmGlobalUnixMakefileGenerator3_h #define cmGlobalUnixMakefileGenerator3_h
#include "cmGlobalCommonGenerator.h" #include <cmConfigure.h>
#include "cmGeneratorTarget.h"
#include "cmGlobalCommonGenerator.h"
#include "cmGlobalGeneratorFactory.h" #include "cmGlobalGeneratorFactory.h"
#include "cmState.h"
#include <iosfwd>
#include <map>
#include <set>
#include <stddef.h>
#include <string>
#include <vector>
class cmGeneratedFileStream; class cmGeneratedFileStream;
class cmMakefileTargetGenerator; class cmLocalGenerator;
class cmLocalUnixMakefileGenerator3; class cmLocalUnixMakefileGenerator3;
class cmMakefile;
class cmMakefileTargetGenerator;
class cmake;
struct cmDocumentationEntry;
/** \class cmGlobalUnixMakefileGenerator3 /** \class cmGlobalUnixMakefileGenerator3
* \brief Write a Unix makefiles. * \brief Write a Unix makefiles.

View File

@ -14,6 +14,7 @@
#include "cmGlobalVisualStudio10Generator.h" #include "cmGlobalVisualStudio10Generator.h"
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmGeneratorTarget.h"
#include "cmLocalVisualStudio10Generator.h" #include "cmLocalVisualStudio10Generator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSourceFile.h" #include "cmSourceFile.h"

Some files were not shown because too many files have changed in this diff Show More