A security patch will be applied between 1pm - 1:30pm, (UTC-0400), today- Aug 5th. No downtime is expected, but the site could be slow during that time.

Commit 2e620f0b authored by Daniel Pfeifer's avatar Daniel Pfeifer Committed by Brad King
Browse files

Fix several include-what-you-use findings

parent f52bcc2a
......@@ -2,14 +2,6 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmDependsFortran.h"
#include "cmFortranParser.h" /* Interface to parser object. */
#include "cmGeneratedFileStream.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmStateDirectory.h"
#include "cmSystemTools.h"
#include <assert.h>
#include <cmsys/FStream.hxx>
#include <iostream>
......@@ -18,6 +10,15 @@
#include <string.h>
#include <utility>
#include "cmFortranParser.h" /* Interface to parser object. */
#include "cmGeneratedFileStream.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmStateDirectory.h"
#include "cmStateSnapshot.h"
#include "cmSystemTools.h"
// 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 the case from the source code.
......
......@@ -8,6 +8,8 @@
#include <string>
#include <vector>
class cmDependsJavaParserHelper;
#define YYSTYPE cmDependsJavaParserHelper::ParserType
#define YYSTYPE_IS_DECLARED
#define YY_EXTRA_TYPE cmDependsJavaParserHelper*
......
......@@ -3,10 +3,6 @@
#ifndef cmExecutionStatus_h
#define cmExecutionStatus_h
#include <cmConfigure.h>
#include "cmStandardIncludes.h"
/** \class cmExecutionStatus
* \brief Superclass for all command status classes
*
......
......@@ -3,9 +3,9 @@
#ifndef cmExpandedCommandArgument_h
#define cmExpandedCommandArgument_h
#include <cmConfigure.h>
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmStandardIncludes.h"
#include <string>
/** \class cmExpandedCommandArgument
* \brief Represents an expanded command argument
......
......@@ -2,14 +2,22 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmExportBuildAndroidMKGenerator.h"
#include "cmExportSet.h"
#include <algorithm>
#include <map>
#include <sstream>
#include <utility>
#include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
#include "cmLinkItem.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmTargetExport.h"
#include <algorithm>
#include "cmPolicies.h"
#include "cmStateTypes.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cm_auto_ptr.hxx"
#include "cmake.h"
cmExportBuildAndroidMKGenerator::cmExportBuildAndroidMKGenerator()
{
......
......@@ -3,10 +3,16 @@
#ifndef cmExportBuildAndroidMKGenerator_h
#define cmExportBuildAndroidMKGenerator_h
#include <cmConfigure.h>
#include <iosfwd>
#include <string>
#include <vector>
#include "cmExportBuildFileGenerator.h"
#include "cmListFileCache.h"
#include "cmExportFileGenerator.h"
class cmExportSet;
class cmGeneratorTarget;
/** \class cmExportBuildAndroidMKGenerator
* \brief Generate a file exporting targets from a build tree.
......
......@@ -2,16 +2,17 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmExportInstallAndroidMKGenerator.h"
#include "cmAlgorithms.h"
#include <ostream>
#include <stddef.h>
#include "cmExportBuildAndroidMKGenerator.h"
#include "cmExportSet.h"
#include "cmExportSetMap.h"
#include "cmGeneratedFileStream.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
#include "cmInstallExportGenerator.h"
#include "cmInstallTargetGenerator.h"
#include "cmLocalGenerator.h"
#include "cmStateTypes.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmTargetExport.h"
cmExportInstallAndroidMKGenerator::cmExportInstallAndroidMKGenerator(
......
......@@ -3,10 +3,18 @@
#ifndef cmExportInstallAndroidMKGenerator_h
#define cmExportInstallAndroidMKGenerator_h
#include <cmConfigure.h>
#include <iosfwd>
#include <set>
#include <string>
#include <vector>
#include "cmExportFileGenerator.h"
#include "cmExportInstallFileGenerator.h"
class cmGeneratorTarget;
class cmInstallExportGenerator;
class cmInstallTargetGenerator;
/** \class cmExportInstallAndroidMKGenerator
* \brief Generate a file exporting targets from an install tree.
......
......@@ -2,6 +2,11 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmExtraCodeBlocksGenerator.h"
#include <map>
#include <ostream>
#include <string.h>
#include <utility>
#include "cmAlgorithms.h"
#include "cmGeneratedFileStream.h"
#include "cmGeneratorTarget.h"
......@@ -14,12 +19,6 @@
#include "cmXMLWriter.h"
#include "cmake.h"
#include <algorithm>
#include <map>
#include <ostream>
#include <string.h>
#include <utility>
/* Some useful URLs:
Homepage:
http://www.codeblocks.org
......
......@@ -2,13 +2,20 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmExtraEclipseCDT4Generator.h"
#include <algorithm>
#include <assert.h>
#include <cmsys/RegularExpression.hxx>
#include <map>
#include <sstream>
#include <stdio.h>
#include <utility>
#include "cmGeneratedFileStream.h"
#include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmSourceFile.h"
#include "cmSourceGroup.h"
#include "cmState.h"
......@@ -17,14 +24,6 @@
#include "cmXMLWriter.h"
#include "cmake.h"
#include <algorithm>
#include <assert.h>
#include <cmsys/RegularExpression.hxx>
#include <map>
#include <sstream>
#include <stdio.h>
#include <utility>
static void AppendAttribute(cmXMLWriter& xml, const char* keyval)
{
xml.StartElement("attribute");
......
......@@ -2,7 +2,14 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmExtraSublimeTextGenerator.h"
#include <cmsys/RegularExpression.hxx>
#include <set>
#include <sstream>
#include <string.h>
#include <utility>
#include "cmGeneratedFileStream.h"
#include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
......@@ -10,12 +17,7 @@
#include "cmSourceFile.h"
#include "cmStateTypes.h"
#include "cmSystemTools.h"
#include <cmsys/RegularExpression.hxx>
#include <ostream>
#include <set>
#include <string.h>
#include <utility>
#include "cmake.h"
/*
Sublime Text 2 Generator
......
......@@ -20,6 +20,7 @@
#undef GetCurrentDirectory
#include <assert.h>
#include <stdlib.h>
#include <sys/types.h>
// include sys/stat.h after sys/types.h
......
......@@ -2,7 +2,6 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmFileTimeComparison.h"
#include <cmConfigure.h>
#include <string>
#include <time.h>
#include <utility>
......
......@@ -2,8 +2,14 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmFindBase.h"
#include <cmConfigure.h>
#include <iostream>
#include <map>
#include <stddef.h>
#include "cmAlgorithms.h"
#include "cmMakefile.h"
#include "cmSearchPath.h"
#include "cmState.h"
#include "cmStateTypes.h"
#include "cmSystemTools.h"
......
......@@ -3,6 +3,11 @@
#ifndef cmFindBase_h
#define cmFindBase_h
#include <cmConfigure.h> // IWYU pragma: keep
#include <string>
#include <vector>
#include "cmFindCommon.h"
/** \class cmFindBase
......
......@@ -2,12 +2,13 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmFindCommon.h"
#include <algorithm>
#include <string.h>
#include <utility>
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include <algorithm>
#include <functional>
cmFindCommon::PathGroup cmFindCommon::PathGroup::All("ALL");
cmFindCommon::PathLabel cmFindCommon::PathLabel::CMake("CMAKE");
cmFindCommon::PathLabel cmFindCommon::PathLabel::CMakeEnvironment(
......
......@@ -3,10 +3,19 @@
#ifndef cmFindCommon_h
#define cmFindCommon_h
#include <cmConfigure.h>
#include <map>
#include <set>
#include <string>
#include <vector>
#include "cmCommand.h"
#include "cmPathLabel.h"
#include "cmSearchPath.h"
class cmMakefile;
/** \class cmFindCommon
* \brief Base class for FIND_XXX implementations.
*
......
......@@ -3,12 +3,9 @@
#ifndef cmFunctionBlocker_h
#define cmFunctionBlocker_h
#include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include "cmExecutionStatus.h"
#include "cmListFileCache.h"
class cmExecutionStatus;
class cmMakefile;
class cmFunctionBlocker
......
......@@ -2,7 +2,6 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmFunctionCommand.h"
#include <algorithm>
#include <sstream>
#include "cmAlgorithms.h"
......
......@@ -2,11 +2,12 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmGeneratedFileStream.h"
#include "cmSystemTools.h"
#include <stdio.h>
#include "cmSystemTools.h"
#if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cm_codecvt.hxx"
#include <cm_zlib.h>
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment