Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More C++ include cleanup #3344

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cpp/include/Ice/FactoryTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <mutex>
#include <string>
#include <string_view>
#include <utility>

namespace IceInternal
{
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/Ice/ConnectionI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "BatchRequestQueue.h"
#include "CheckIdentity.h"
#include "DefaultsAndOverrides.h"
#include "DisableWarnings.h"
#include "Endian.h"
#include "EndpointI.h"
#include "Ice/IncomingRequest.h"
Expand All @@ -24,6 +23,8 @@
#include "TraceUtil.h"
#include "Transceiver.h"

#include "DisableWarnings.h"

#include <iomanip>
#include <stdexcept>

Expand Down
4 changes: 3 additions & 1 deletion cpp/src/Ice/FileUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
//

#include "FileUtil.h"
#include "DisableWarnings.h"
#include "Ice/StringConverter.h"
#include "Ice/StringUtil.h"

#include "DisableWarnings.h"

#include <cassert>
#include <climits>
#include <sstream>
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/Ice/InputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "Ice/InputStream.h"
#include "DefaultsAndOverrides.h"
#include "DisableWarnings.h"
#include "Endian.h"
#include "Ice/FactoryTable.h"
#include "Ice/LocalExceptions.h"
Expand All @@ -20,6 +19,8 @@
#include "TraceLevels.h"
#include "TraceUtil.h"

#include "DisableWarnings.h"

#include <iterator>

using namespace std;
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/Ice/Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "ConnectionFactory.h"
#include "ConsoleUtil.h"
#include "DefaultsAndOverrides.h"
#include "DisableWarnings.h"
#include "EndpointFactoryManager.h"
#include "FileUtil.h"
#include "IPEndpointI.h" // For EndpointHostResolver
Expand Down Expand Up @@ -42,6 +41,8 @@
#include "ValueFactoryManagerI.h"
#include "WSEndpoint.h"

#include "DisableWarnings.h"

#include <list>
#include <mutex>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion cpp/src/Ice/InstrumentationI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//

#include "InstrumentationI.h"

#include "Ice/Communicator.h"
#include "Ice/Connection.h"
#include "Ice/Endpoint.h"
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/Ice/LocatorInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//

#include "LocatorInfo.h"
#include "DisableWarnings.h"
#include "EndpointI.h"
#include "Ice/Comparable.h"
#include "Ice/LocalExceptions.h"
Expand All @@ -15,6 +14,8 @@
#include "Reference.h"
#include "TraceLevels.h"

#include "DisableWarnings.h"

#include <iterator>

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "SecureTransportUtil.h"

#include <sstream>
#include <utility>

// Disable deprecation warnings from SecureTransport APIs
#include "../DisableWarnings.h"
Expand Down
1 change: 0 additions & 1 deletion cpp/src/IceGrid/AllocatableObjectCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//

#include "AllocatableObjectCache.h"

#include "../Ice/Random.h"
#include "Ice/Communicator.h"
#include "Ice/LocalExceptions.h"
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/IceGrid/Database.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define ICEGRID_DATABASE_H

#include "../Ice/FileUtil.h"
#include "../IceDB/IceDB.h"
#include "AdapterCache.h"
#include "AllocatableObjectCache.h"
#include "Ice/CommunicatorF.h"
Expand All @@ -18,8 +19,6 @@
#include "ServerCache.h"
#include "Topics.h"

#include "../IceDB/IceDB.h"

namespace IceGrid
{
class AdminSessionI;
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/IceGrid/LocatorI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
#include "Database.h"
#include "Ice/Ice.h"
#include "SessionI.h"
#include "SynchronizationException.h"
#include "Util.h"
#include "WellKnownObjectsManager.h"

#include "SynchronizationException.h"

using namespace std;
using namespace std::chrono;
using namespace IceGrid;
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/IceGrid/LocatorRegistryI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
#include "Database.h"
#include "Ice/Ice.h"
#include "ReplicaSessionManager.h"
#include "Util.h"

#include "SynchronizationException.h"
#include "Util.h"

using namespace std;
using namespace IceGrid;
Expand Down
1 change: 0 additions & 1 deletion cpp/src/IceGrid/NodeI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//

#include "NodeI.h"

#include "../Ice/FileUtil.h"
#include "Activator.h"
#include "Ice/Ice.h"
Expand Down
1 change: 0 additions & 1 deletion cpp/src/IceGrid/RegistryAdminRouter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "RegistryAdminRouter.h"
#include "Ice/Ice.h"

#include "SynchronizationException.h"

using namespace IceGrid;
Expand Down
5 changes: 2 additions & 3 deletions cpp/src/IceGrid/ReplicaSessionI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#include "Ice/Ice.h"

#include "ReplicaSessionI.h"
#include "Database.h"
#include "Ice/Ice.h"
#include "PlatformInfo.h"
#include "ReplicaSessionI.h"
#include "WellKnownObjectsManager.h"

using namespace std;
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/IceGrid/ServerCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//

#include "ServerCache.h"
#include "../Ice/DisableWarnings.h"
#include "AdapterCache.h"
#include "AllocatableObjectCache.h"
#include "DescriptorHelper.h"
Expand All @@ -13,9 +12,10 @@
#include "NodeCache.h"
#include "ObjectCache.h"
#include "SessionI.h"
#include "SynchronizationException.h"
#include "Topics.h"

#include "SynchronizationException.h"
#include "../Ice/DisableWarnings.h"

using namespace std;
using namespace IceGrid;
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/IceGrid/ServerI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//

#include "ServerI.h"
#include "../Ice/DisableWarnings.h"
#include "../Ice/FileUtil.h"
#include "../Ice/TimeUtil.h"
#include "Activator.h"
Expand All @@ -14,6 +13,8 @@
#include "TraceLevels.h"
#include "Util.h"

#include "../Ice/DisableWarnings.h"

#include <fstream>
#include <sys/types.h>

Expand Down
1 change: 0 additions & 1 deletion cpp/src/Slice/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <cstring>
#include <iterator>
#include <limits>
#include <utility>

// TODO: fix this warning once we no longer support VS2013 and earlier
#if defined(_MSC_VER)
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/Slice/StringLiteralUtil.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (c) ZeroC, Inc.

#include "Util.h"

#include "Ice/StringConverter.h"
#include "Util.h"

#include <cassert>
#include <iomanip>
Expand Down
1 change: 0 additions & 1 deletion cpp/test/DataStorm/api/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//

#include "DataStorm/DataStorm.h"

#include "Test.h"
#include "TestHelper.h"

Expand Down
1 change: 0 additions & 1 deletion cpp/test/Ice/background/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define TEST_CONFIGURATION_H

#include "Ice/Ice.h"

#include "Ice/LocalExceptions.h"
#include "Ice/Selector.h"

Expand Down
1 change: 0 additions & 1 deletion cpp/test/Ice/background/EndpointI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#endif

#include "EndpointI.h"

#include "Acceptor.h"
#include "Connector.h"
#include "Transceiver.h"
Expand Down
5 changes: 2 additions & 3 deletions cpp/test/Ice/background/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@

#include "Configuration.h"
#include "Ice/Ice.h"
#include "Ice/Locator.h"
#include "Ice/Router.h"
#include "PluginI.h"
#include "TestHelper.h"
#include "TestI.h"

#include "Ice/Locator.h"
#include "Ice/Router.h"

#ifdef _MSC_VER
# pragma comment(lib, ICE_LIBNAME("testtransport"))
#endif
Expand Down
1 change: 0 additions & 1 deletion cpp/test/Ice/echo/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "BlobjectI.h"
#include "Ice/Ice.h"
#include "Test.h"

#include "TestHelper.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cpp/test/Ice/operations/Twoways.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "Test.h"
#include "TestHelper.h"
#include <limits>
#include <utility>

//
// Visual C++ defines min and max as macros
Expand Down
2 changes: 0 additions & 2 deletions cpp/test/Ice/operations/TwowaysAMI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

#include "Ice/Ice.h"
#include "Test.h"

#include "TestHelper.h"
#include <utility>

//
// Work-around for GCC warning bug
Expand Down
1 change: 0 additions & 1 deletion cpp/test/IceGrid/deployer/TestI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "TestI.h"
#include "Ice/Ice.h"
#include <utility>

TestI::TestI(Ice::PropertiesPtr properties) : _properties(std::move(properties)) {}

Expand Down
1 change: 0 additions & 1 deletion cpp/test/IceGrid/replicaGroup/TestI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "TestI.h"
#include "Ice/Ice.h"
#include <utility>

TestI::TestI(Ice::PropertiesPtr properties) : _properties(std::move(properties)) {}

Expand Down
Loading