Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
efed6468
Commit
efed6468
authored
Sep 01, 2016
by
Daniel Pfeifer
Committed by
Brad King
Sep 03, 2016
Browse files
fix a load of include-what-you-use violations
parent
bd3d0eaf
Changes
165
Hide whitespace changes
Inline
Side-by-side
Source/QtDialog/CMakeSetup.cxx
View file @
efed6468
...
...
@@ -27,6 +27,8 @@
#include <cmsys/Encoding.hxx>
#include <cmsys/SystemTools.hxx>
#include "cmSystemTools.h" // IWYU pragma: keep
static
const
char
*
cmDocumentationName
[][
2
]
=
{
{
0
,
" cmake-gui - CMake GUI."
},
{
0
,
0
}
};
...
...
Source/cmCTest.cxx
View file @
efed6468
...
...
@@ -9,52 +9,54 @@
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#include "cmCurl.h" // include before anything that includes windows.h
#include "cmCTest.h"
#include "cmAlgorithms.h"
#include "cmCTestCommand.h"
#include "cmCTestStartCommand.h"
#include "cmDynamicLoader.h"
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmState.h"
#include "cmVersionMacros.h"
#include "cmXMLWriter.h"
#include "cmake.h"
#include <cmsys/Base64.h>
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/SystemInformation.hxx>
#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 "cmCTestSubmitHandler.h"
#include "cmCTestTestHandler.h"
#include "cmCTestUpdateHandler.h"
#include "cmCTestUploadHandler.h"
#include "cmCurl.h"
#include "cmDynamicLoader.h"
#include "cmGeneratedFileStream.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmVersion.h"
#include "cmVersionConfig.h"
#include "cmXMLWriter.h"
#include "cmake.h"
#include <cm_auto_ptr.hxx>
#include <cm_curl.h>
#include <cm_zlib.h>
#include <cmsys/Base64.h>
#include <cmsys/Directory.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <cmsys/Process.h>
#include <cmsys/
RegularExpression
.hxx>
#include <cmsys/
String
.hxx>
#include <cmsys/SystemInformation.hxx>
#include <ctype.h>
#include <float.h>
#include <math.h>
#include <iostream>
#include <map>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <
cm_auto_ptr.hxx
>
#include <
cm_zlib.h
>
#include <
cmsys/Base64.h
>
#include <string.h>
#include <
string
>
#include <time.h>
#include <
utility
>
#include <
vector
>
#if defined(__BEOS__) || defined(__HAIKU__)
#include <be/kernel/OS.h>
/* disable_debugger() API. */
...
...
Source/cmCTest.h
View file @
efed6468
...
...
@@ -15,18 +15,18 @@
#include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include "cmListFileCache.h"
#include <cmsys/String.hxx>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <time.h>
#include <vector>
class
cmake
;
class
cmMakefile
;
class
cmCTestGenericHandler
;
class
cmGeneratedFileStream
;
class
cmCTestCommand
;
class
cmCTestScriptHandler
;
class
cmCTestStartCommand
;
class
cmGeneratedFileStream
;
class
cmMakefile
;
class
cmXMLWriter
;
#define cmCTestLog(ctSelf, logType, msg) \
...
...
Source/cmCommandArgumentParserHelper.cxx
View file @
efed6468
...
...
@@ -11,12 +11,18 @@
============================================================================*/
#include "cmCommandArgumentParserHelper.h"
#include <cm_kwiml.h>
#include "cmCommandArgumentLexer.h"
#include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include "cmCommandArgumentLexer.h"
#include <cmConfigure.h>
#include <iostream>
#include <sstream>
#include <string.h>
int
cmCommandArgument_yyparse
(
yyscan_t
yyscanner
);
//
...
...
Source/cmCommandArgumentParserHelper.h
View file @
efed6468
...
...
@@ -12,9 +12,10 @@
#ifndef 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_IS_DECLARED
...
...
Source/cmConditionEvaluator.cxx
View file @
efed6468
...
...
@@ -14,6 +14,7 @@
#include "cmAlgorithms.h"
#include "cmOutputConverter.h"
#include "cmSystemTools.h"
static
std
::
string
const
keyAND
=
"AND"
;
static
std
::
string
const
keyCOMMAND
=
"COMMAND"
;
...
...
Source/cmCryptoHash.cxx
View file @
efed6468
...
...
@@ -12,8 +12,10 @@
#include "cmCryptoHash.h"
#include "cm_sha2.h"
#include <cmsys/FStream.hxx>
#include <cmsys/MD5.h>
#include <string.h>
CM_AUTO_PTR
<
cmCryptoHash
>
cmCryptoHash
::
New
(
const
char
*
algo
)
{
...
...
Source/cmCryptoHash.h
View file @
efed6468
...
...
@@ -14,9 +14,9 @@
#include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include <cm_auto_ptr.hxx>
#include <string>
#include <vector>
/**
* @brief Abstract base class for cryptographic hash generators
...
...
Source/cmCurl.cxx
View file @
efed6468
...
...
@@ -11,7 +11,13 @@
============================================================================*/
#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"
#endif
// curl versions before 7.21.5 did not provide this error code
#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
);
check_curl_result
(
res
,
"Unable to set TLS/SSL Verify CAINFO: "
);
}
#if !defined(CMAKE_USE_SYSTEM_CURL) && !defined(_WIN32) && \
!defined(__APPLE__) && !defined(CURL_CA_BUNDLE) && !defined(CURL_CA_PATH)
#ifdef CMAKE_FIND_CAFILE
#define CMAKE_CAFILE_FEDORA "/etc/pki/tls/certs/ca-bundle.crt"
else
if
(
cmSystemTools
::
FileExists
(
CMAKE_CAFILE_FEDORA
,
true
))
{
::
CURLcode
res
=
...
...
Source/cmCurl.h
View file @
efed6468
...
...
@@ -14,9 +14,8 @@
#include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include "cm_curl.h"
#include <cm_curl.h>
#include <string>
std
::
string
cmCurlSetCAInfo
(
::
CURL
*
curl
,
const
char
*
cafile
=
CM_NULLPTR
);
...
...
Source/cmCustomCommand.cxx
View file @
efed6468
...
...
@@ -13,7 +13,7 @@
#include "cmMakefile.h"
#include <cm
_auto_ptr.hxx
>
#include <cm
Configure.h
>
cmCustomCommand
::
cmCustomCommand
()
:
Backtrace
()
...
...
Source/cmCustomCommand.h
View file @
efed6468
...
...
@@ -12,11 +12,15 @@
#ifndef cmCustomCommand_h
#define cmCustomCommand_h
#include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmCustomCommandLines.h"
#include "cmListFileCache.h"
#include <string>
#include <utility>
#include <vector>
class
cmMakefile
;
/** \class cmCustomCommand
...
...
Source/cmCustomCommandGenerator.cxx
View file @
efed6468
...
...
@@ -12,10 +12,17 @@
#include "cmCustomCommandGenerator.h"
#include "cmCustomCommand.h"
#include "cmCustomCommandLines.h"
#include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cm_auto_ptr.hxx"
#include <cmConfigure.h>
cmCustomCommandGenerator
::
cmCustomCommandGenerator
(
cmCustomCommand
const
&
cc
,
const
std
::
string
&
config
,
...
...
Source/cmCustomCommandGenerator.h
View file @
efed6468
...
...
@@ -12,13 +12,14 @@
#ifndef cmCustomCommandGenerator_h
#define cmCustomCommandGenerator_h
#include <cmConfigure.h>
#include <cmConfigure.h>
// IWYU pragma: keep
#include "cmStandardIncludes.h"
#include <string>
#include <vector>
class
cmCustomCommand
;
class
cmLocalGenerator
;
class
cmGeneratorExpression
;
class
cmLocalGenerator
;
class
cmCustomCommandGenerator
{
...
...
Source/cmDefinitions.cxx
View file @
efed6468
...
...
@@ -12,6 +12,8 @@
#include "cmDefinitions.h"
#include <assert.h>
#include <set>
#include <utility>
cmDefinitions
::
Def
cmDefinitions
::
NoDef
;
...
...
Source/cmDefinitions.h
View file @
efed6468
...
...
@@ -14,20 +14,21 @@
#include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include "cmLinkedTree.h"
#include <string>
#include <vector>
#if defined(CMAKE_BUILD_WITH_CMAKE)
#ifdef CMake_HAVE_CXX_UNORDERED_MAP
#include <unordered_map>
#else
#include "cmsys/hash_map.hxx"
#endif
#else
#include <map>
#endif
#include <list>
/** \class cmDefinitions
* \brief Store a scope of variable definitions for CMake language.
*
...
...
Source/cmDepends.cxx
View file @
efed6468
...
...
@@ -16,8 +16,11 @@
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include <cmsys/FStream.hxx>
#include <sstream>
#include <string.h>
#include <utility>
cmDepends
::
cmDepends
(
cmLocalGenerator
*
lg
,
const
char
*
targetDir
)
:
CompileDirectory
()
...
...
Source/cmDepends.h
View file @
efed6468
...
...
@@ -14,7 +14,12 @@
#include <cmConfigure.h>
#include "cmStandardIncludes.h"
#include <iosfwd>
#include <map>
#include <set>
#include <stddef.h>
#include <string>
#include <vector>
class
cmFileTimeComparison
;
class
cmLocalGenerator
;
...
...
Source/cmDependsC.cxx
View file @
efed6468
...
...
@@ -15,10 +15,11 @@
#include "cmFileTimeComparison.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmOutputConverter.h"
#include "cmSystemTools.h"
#include <cmsys/FStream.hxx>
#include <ctype.h> // isspace
#include <cmsys/FStream.hxx>
#include <utility>
#define INCLUDE_REGEX_LINE \
"^[ \t]*#[ \t]*(include|import)[ \t]*[<\"]([^\">]+)([\">])"
...
...
Source/cmDependsC.h
View file @
efed6468
...
...
@@ -12,10 +12,19 @@
#ifndef cmDependsC_h
#define cmDependsC_h
#include <cmConfigure.h>
#include "cmDepends.h"
#include <cmsys/RegularExpression.hxx>
#include <iosfwd>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
class
cmLocalGenerator
;
/** \class cmDependsC
* \brief Dependency scanner for C and C++ object files.
...
...
Prev
1
2
3
4
5
…
9
Next
Brad King
@brad.king
mentioned in commit
bfdf1322
·
Sep 03, 2016
mentioned in commit
bfdf1322
mentioned in commit bfdf1322e7638687c96b323b1df20fd9c08b3044
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment