mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
Merge topic 'iwyu'
48cfb295
cmFortranParser: remove unnecessary typedef90bb5f64
cmCommandArgumentParserHelper: remove unnecessary includeab5f4e81
cmFortranParserImpl: remove unnecessary includef8ed8bef
testEncoding: use cmsys::ifstream8647c6cd
testEncoding: include <cmsys/ConsoleBuf.hxx> on Windows only21a6ed49
cmFileCommand: add <cm_curl.h> includea2275bdd
cmFileCommand: remove unnecessary friend declaration Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !626
This commit is contained in:
commit
d66081b546
@ -2,8 +2,6 @@
|
||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||
#include "cmCommandArgumentParserHelper.h"
|
||||
|
||||
#include <cm_kwiml.h>
|
||||
|
||||
#include "cmCommandArgumentLexer.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmState.h"
|
||||
|
@ -37,6 +37,7 @@
|
||||
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||
#include "cmCurl.h"
|
||||
#include "cmFileLockResult.h"
|
||||
#include <cm_curl.h>
|
||||
#endif
|
||||
|
||||
#if defined(CMAKE_USE_ELF_PARSER)
|
||||
@ -1028,8 +1029,6 @@ protected:
|
||||
{
|
||||
}
|
||||
};
|
||||
struct MatchRule;
|
||||
friend struct MatchRule;
|
||||
struct MatchRule
|
||||
{
|
||||
cmsys::RegularExpression Regex;
|
||||
|
@ -54,8 +54,7 @@ void cmFortranParser_RuleElse(cmFortranParser* parser);
|
||||
void cmFortranParser_RuleEndif(cmFortranParser* parser);
|
||||
|
||||
/* Define the parser stack element type. */
|
||||
typedef union cmFortran_yystype_u cmFortran_yystype;
|
||||
union cmFortran_yystype_u
|
||||
struct cmFortran_yystype
|
||||
{
|
||||
char* string;
|
||||
};
|
||||
|
@ -1,7 +1,6 @@
|
||||
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||
#include "cmFortranParser.h"
|
||||
#include "cmFortranLexer.h"
|
||||
#include "cmSystemTools.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -1,8 +1,10 @@
|
||||
#include <fstream>
|
||||
#include <cmsys/FStream.hxx>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <cmsys/ConsoleBuf.hxx>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
void setEncoding(cmsys::ConsoleBuf::Manager& buf, UINT codepage)
|
||||
@ -37,7 +39,7 @@ int main(int argc, char* argv[])
|
||||
setEncoding(consoleOut, CP_OEMCP);
|
||||
} // else AUTO
|
||||
#endif
|
||||
std::ifstream file(argv[2]);
|
||||
cmsys::ifstream file(argv[2]);
|
||||
if (!file.is_open()) {
|
||||
std::cout << "Failed to open file: " << argv[2] << std::endl;
|
||||
return 2;
|
||||
|
Loading…
Reference in New Issue
Block a user