fix a batch of include-what-you-use violations
This commit is contained in:
parent
373b2e483d
commit
f29d184773
|
@ -16,7 +16,11 @@
|
|||
#include "cm_get_date.h"
|
||||
#include <cm_libarchive.h>
|
||||
#include <cmsys/Directory.hxx>
|
||||
#include <cmsys/Encoding.hxx>
|
||||
#include <cmsys/FStream.hxx>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef __LA_SSIZE_T
|
||||
#define __LA_SSIZE_T la_ssize_t
|
||||
|
|
|
@ -12,7 +12,11 @@
|
|||
#ifndef cmArchiveWrite_h
|
||||
#define cmArchiveWrite_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include <iosfwd>
|
||||
#include <stddef.h>
|
||||
#include <string>
|
||||
|
||||
#if !defined(CMAKE_BUILD_WITH_CMAKE)
|
||||
#error "cmArchiveWrite not allowed during bootstrap build!"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "cmSystemTools.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
cmCLocaleEnvironmentScope::cmCLocaleEnvironmentScope()
|
||||
{
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
#ifndef cmCLocaleEnvironmentScope_h
|
||||
#define cmCLocaleEnvironmentScope_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
class cmCLocaleEnvironmentScope
|
||||
{
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
#include "cmCPackPropertiesGenerator.h"
|
||||
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmGeneratorExpression.h"
|
||||
#include "cmInstalledFile.h"
|
||||
#include "cmOutputConverter.h"
|
||||
|
||||
#include <map>
|
||||
#include <ostream>
|
||||
#include <utility>
|
||||
|
||||
cmCPackPropertiesGenerator::cmCPackPropertiesGenerator(
|
||||
cmLocalGenerator* lg, cmInstalledFile const& installedFile,
|
||||
std::vector<std::string> const& configurations)
|
||||
|
|
|
@ -12,9 +12,15 @@
|
|||
#ifndef cmCPackPropertiesGenerator_h
|
||||
#define cmCPackPropertiesGenerator_h
|
||||
|
||||
#include "cmInstalledFile.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include "cmScriptGenerator.h"
|
||||
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class cmInstalledFile;
|
||||
class cmLocalGenerator;
|
||||
|
||||
/** \class cmCPackPropertiesGenerator
|
||||
|
|
|
@ -16,10 +16,12 @@
|
|||
#include "cmVersion.h"
|
||||
#include "cmake.h"
|
||||
|
||||
#include <cmsys/Directory.hxx>
|
||||
#include <algorithm>
|
||||
#include <cmsys/FStream.hxx>
|
||||
#include <cmsys/Glob.hxx>
|
||||
#include <cmsys/RegularExpression.hxx>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
cmCacheManager::cmCacheManager()
|
||||
{
|
||||
|
|
|
@ -12,13 +12,19 @@
|
|||
#ifndef cmCacheManager_h
|
||||
#define cmCacheManager_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include "cmPropertyMap.h"
|
||||
#include "cmState.h"
|
||||
|
||||
#include <iosfwd>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class cmake;
|
||||
class cmMarkAsAdvancedCommand;
|
||||
|
||||
/** \class cmCacheManager
|
||||
* \brief Control class for cmake's cache
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#ifndef cmCommands_h
|
||||
#define cmCommands_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -11,13 +11,21 @@
|
|||
============================================================================*/
|
||||
#include "cmCommonTargetGenerator.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmConfigure.h>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
#include "cmAlgorithms.h"
|
||||
#include "cmComputeLinkInformation.h"
|
||||
#include "cmGeneratorTarget.h"
|
||||
#include "cmGlobalCommonGenerator.h"
|
||||
#include "cmLocalCommonGenerator.h"
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmSourceFile.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmState.h"
|
||||
|
||||
cmCommonTargetGenerator::cmCommonTargetGenerator(cmGeneratorTarget* gt)
|
||||
: GeneratorTarget(gt)
|
||||
|
|
|
@ -12,9 +12,13 @@
|
|||
#ifndef cmCommonTargetGenerator_h
|
||||
#define cmCommonTargetGenerator_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmOutputConverter.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class cmGeneratorTarget;
|
||||
class cmGlobalCommonGenerator;
|
||||
|
|
|
@ -12,11 +12,12 @@
|
|||
#ifndef cmComputeComponentGraph_h
|
||||
#define cmComputeComponentGraph_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include "cmGraphAdjacencyList.h"
|
||||
|
||||
#include <stack>
|
||||
#include <vector>
|
||||
|
||||
/** \class cmComputeComponentGraph
|
||||
* \brief Analyze a graph to determine strongly connected components.
|
||||
|
|
|
@ -13,13 +13,22 @@
|
|||
|
||||
#include "cmAlgorithms.h"
|
||||
#include "cmComputeComponentGraph.h"
|
||||
#include "cmGeneratorTarget.h"
|
||||
#include "cmGlobalGenerator.h"
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmState.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmTarget.h"
|
||||
#include "cmake.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
#include <iterator>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <utility>
|
||||
|
||||
/*
|
||||
|
||||
|
|
|
@ -12,17 +12,22 @@
|
|||
#ifndef cmComputeLinkDepends_h
|
||||
#define cmComputeLinkDepends_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include "cmGraphAdjacencyList.h"
|
||||
#include "cmLinkItem.h"
|
||||
#include "cmTargetLinkLibraryType.h"
|
||||
|
||||
#include <map>
|
||||
#include <queue>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class cmComputeComponentGraph;
|
||||
class cmGeneratorTarget;
|
||||
class cmGlobalGenerator;
|
||||
class cmMakefile;
|
||||
class cmGeneratorTarget;
|
||||
class cmake;
|
||||
|
||||
/** \class cmComputeLinkDepends
|
||||
|
|
|
@ -11,19 +11,25 @@
|
|||
============================================================================*/
|
||||
#include "cmComputeLinkInformation.h"
|
||||
|
||||
#include "cmComputeLinkDepends.h"
|
||||
#include "cmOrderDirectories.h"
|
||||
|
||||
#include "cmAlgorithms.h"
|
||||
#include "cmComputeLinkDepends.h"
|
||||
#include "cmGeneratorTarget.h"
|
||||
#include "cmGlobalGenerator.h"
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmOrderDirectories.h"
|
||||
#include "cmOutputConverter.h"
|
||||
#include "cmPolicies.h"
|
||||
#include "cmState.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmTarget.h"
|
||||
#include "cmake.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <ctype.h>
|
||||
#include <sstream>
|
||||
#include <string.h>
|
||||
#include <utility>
|
||||
|
||||
//#define CM_COMPUTE_LINK_INFO_DEBUG
|
||||
|
||||
|
|
|
@ -12,15 +12,19 @@
|
|||
#ifndef cmComputeLinkInformation_h
|
||||
#define cmComputeLinkInformation_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include <cmsys/RegularExpression.hxx>
|
||||
#include <iosfwd>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class cmake;
|
||||
class cmGeneratorTarget;
|
||||
class cmGlobalGenerator;
|
||||
class cmMakefile;
|
||||
class cmGeneratorTarget;
|
||||
class cmOrderDirectories;
|
||||
class cmake;
|
||||
|
||||
/** \class cmComputeLinkInformation
|
||||
* \brief Compute link information for a target in one configuration.
|
||||
|
|
|
@ -12,18 +12,25 @@
|
|||
#include "cmComputeTargetDepends.h"
|
||||
|
||||
#include "cmComputeComponentGraph.h"
|
||||
#include "cmGeneratorTarget.h"
|
||||
#include "cmGlobalGenerator.h"
|
||||
#include "cmLinkItem.h"
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmPolicies.h"
|
||||
#include "cmSourceFile.h"
|
||||
#include "cmState.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmTarget.h"
|
||||
#include "cmTargetDepend.h"
|
||||
#include "cmake.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <assert.h>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <utility>
|
||||
|
||||
class cmListFileBacktrace;
|
||||
|
||||
/*
|
||||
|
||||
|
|
|
@ -12,16 +12,19 @@
|
|||
#ifndef cmComputeTargetDepends_h
|
||||
#define cmComputeTargetDepends_h
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
#include <cmConfigure.h> // IWYU pragma: keep
|
||||
|
||||
#include "cmGraphAdjacencyList.h"
|
||||
|
||||
#include <stack>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class cmComputeComponentGraph;
|
||||
class cmGeneratorTarget;
|
||||
class cmGlobalGenerator;
|
||||
class cmLinkItem;
|
||||
class cmGeneratorTarget;
|
||||
class cmTargetDependSet;
|
||||
|
||||
/** \class cmComputeTargetDepends
|
||||
|
|
Loading…
Reference in New Issue