Skip to content

Commit

Permalink
HEAD:(zeroc-ice/ice@b6d18ff9bb) Add [[nodiscard]] to cpp (zeroc-ice/i…
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier authored and temp committed Dec 17, 2024
1 parent 7778115 commit 6bfdac9
Show file tree
Hide file tree
Showing 1,511 changed files with 2,364 additions and 2,364 deletions.
12 changes: 6 additions & 6 deletions slice2cpp/cpp/src/IceGrid/Internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1474,11 +1474,11 @@ IceGrid::ReplicaSessionPrx::_iceI_setDatabaseObserver(const ::std::shared_ptr<::
{
ex.ice_throw();
}
catch(const DeploymentException&)
catch(const ObserverAlreadyRegisteredException&)
{
throw;
}
catch(const ObserverAlreadyRegisteredException&)
catch(const DeploymentException&)
{
throw;
}
Expand Down Expand Up @@ -1700,11 +1700,11 @@ IceGrid::InternalRegistryPrx::_iceI_registerNode(const ::std::shared_ptr<::IceIn
{
ex.ice_throw();
}
catch(const NodeActiveException&)
catch(const PermissionDeniedException&)
{
throw;
}
catch(const PermissionDeniedException&)
catch(const NodeActiveException&)
{
throw;
}
Expand Down Expand Up @@ -1750,11 +1750,11 @@ IceGrid::InternalRegistryPrx::_iceI_registerReplica(const ::std::shared_ptr<::Ic
{
ex.ice_throw();
}
catch(const ReplicaActiveException&)
catch(const PermissionDeniedException&)
{
throw;
}
catch(const PermissionDeniedException&)
catch(const ReplicaActiveException&)
{
throw;
}
Expand Down
8 changes: 4 additions & 4 deletions slice2cpp/slice/Glacier2/Router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ Glacier2::RouterPrx::_iceI_createSession(const ::std::shared_ptr<::IceInternal::
{
ex.ice_throw();
}
catch(const PermissionDeniedException&)
catch(const CannotCreateSessionException&)
{
throw;
}
catch(const CannotCreateSessionException&)
catch(const PermissionDeniedException&)
{
throw;
}
Expand Down Expand Up @@ -155,11 +155,11 @@ Glacier2::RouterPrx::_iceI_createSessionFromSecureConnection(const ::std::shared
{
ex.ice_throw();
}
catch(const PermissionDeniedException&)
catch(const CannotCreateSessionException&)
{
throw;
}
catch(const CannotCreateSessionException&)
catch(const PermissionDeniedException&)
{
throw;
}
Expand Down
12 changes: 6 additions & 6 deletions slice2cs/cpp/src/IceStorm/IceStormInternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,12 @@ public abstract class TopicInternalDisp_ : Ice.ObjectImpl, TopicInternal

public abstract void reap(global::Ice.Identity[] id, Ice.Current current);

public abstract string getName(Ice.Current current);

public abstract global::Ice.ObjectPrx? getPublisher(Ice.Current current);

public abstract global::Ice.ObjectPrx? getNonReplicatedPublisher(Ice.Current current);

public abstract global::Ice.ObjectPrx? subscribeAndGetPublisher(global::System.Collections.Generic.Dictionary<string, string> theQoS, global::Ice.ObjectPrx? subscriber, Ice.Current current);

public abstract void unsubscribe(global::Ice.ObjectPrx? subscriber, Ice.Current current);
Expand All @@ -1315,12 +1321,6 @@ public abstract class TopicInternalDisp_ : Ice.ObjectImpl, TopicInternal

public abstract void destroy(Ice.Current current);

public abstract string getName(Ice.Current current);

public abstract global::Ice.ObjectPrx? getPublisher(Ice.Current current);

public abstract global::Ice.ObjectPrx? getNonReplicatedPublisher(Ice.Current current);

public override string ice_id(Ice.Current current) => ice_staticId();

public static new string ice_staticId() => "::IceStorm::TopicInternal";
Expand Down
236 changes: 118 additions & 118 deletions slice2cs/cpp/test/Ice/operations/Test.cs

Large diffs are not rendered by default.

264 changes: 132 additions & 132 deletions slice2cs/csharp/test/Ice/operations/Test.cs

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions slice2cs/csharp/test/Ice/operations/TestAMD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9868,6 +9868,34 @@ public abstract class MyDerivedClassDisp_ : Ice.ObjectImpl, MyDerivedClass

public abstract global::System.Threading.Tasks.Task<MyStruct1> opMyStruct1Async(MyStruct1 opMyStruct1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task shutdownAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<bool> supportsCompressAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task opVoidAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpByteResult> opByteAsync(byte p1, byte p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpBoolResult> opBoolAsync(bool p1, bool p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpShortIntLongResult> opShortIntLongAsync(short p1, int p2, long p3, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpFloatDoubleResult> opFloatDoubleAsync(float p1, double p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStringResult> opStringAsync(string p1, string p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpMyEnumResult> opMyEnumAsync(MyEnum p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpMyClassResult> opMyClassAsync(MyClassPrx? p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStructResult> opStructAsync(Structure p1, Structure p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpByteSResult> opByteSAsync(byte[] p1, byte[] p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpBoolSResult> opBoolSAsync(bool[] p1, bool[] p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpShortIntLongSResult> opShortIntLongSAsync(short[] p1, int[] p2, long[] p3, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpFloatDoubleSResult> opFloatDoubleSAsync(float[] p1, double[] p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStringSResult> opStringSAsync(string[] p1, string[] p2, Ice.Current current);
Expand Down Expand Up @@ -9980,34 +10008,6 @@ public abstract class MyDerivedClassDisp_ : Ice.ObjectImpl, MyDerivedClass

public abstract global::System.Threading.Tasks.Task<MyClass_OpMDict2MarshaledResult> opMDict2Async(global::System.Collections.Generic.Dictionary<string, string> p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task shutdownAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<bool> supportsCompressAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task opVoidAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpByteResult> opByteAsync(byte p1, byte p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpBoolResult> opBoolAsync(bool p1, bool p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpShortIntLongResult> opShortIntLongAsync(short p1, int p2, long p3, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpFloatDoubleResult> opFloatDoubleAsync(float p1, double p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStringResult> opStringAsync(string p1, string p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpMyEnumResult> opMyEnumAsync(MyEnum p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpMyClassResult> opMyClassAsync(MyClassPrx? p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStructResult> opStructAsync(Structure p1, Structure p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpByteSResult> opByteSAsync(byte[] p1, byte[] p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpBoolSResult> opBoolSAsync(bool[] p1, bool[] p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpShortIntLongSResult> opShortIntLongSAsync(short[] p1, int[] p2, long[] p3, Ice.Current current);

public override string ice_id(Ice.Current current) => ice_staticId();

public static new string ice_staticId() => "::Test::MyDerivedClass";
Expand Down
4 changes: 2 additions & 2 deletions slice2cs/csharp/test/Slice/escape/Key.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1613,10 +1613,10 @@ public abstract class decimalDisp_ : Ice.ObjectImpl, @decimal

public abstract class explicitDisp_ : Ice.ObjectImpl, @explicit
{
public abstract global::System.Threading.Tasks.Task<int> catchAsync(int @checked, Ice.Current current);

public abstract void @default(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<int> catchAsync(int @checked, Ice.Current current);

public override string ice_id(Ice.Current current) => ice_staticId();

public static new string ice_staticId() => "::abstract::explicit";
Expand Down
4 changes: 2 additions & 2 deletions slice2cs/java/test/src/main/java/test/Ice/inheritance/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1128,12 +1128,12 @@ public abstract class ICDisp_ : Ice.ObjectImpl, IC
{
public abstract ICPrx? icop(ICPrx? p, Ice.Current current);

public abstract global::Test.MB.IB2Prx? ib2op(global::Test.MB.IB2Prx? p, Ice.Current current);

public abstract IAPrx? iaop(IAPrx? p, Ice.Current current);

public abstract global::Test.MB.IB1Prx? ib1op(global::Test.MB.IB1Prx? p, Ice.Current current);

public abstract global::Test.MB.IB2Prx? ib2op(global::Test.MB.IB2Prx? p, Ice.Current current);

public override string ice_id(Ice.Current current) => ice_staticId();

public static new string ice_staticId() => "::Test::MA::IC";
Expand Down
4 changes: 2 additions & 2 deletions slice2cs/java/test/src/main/java/test/Ice/location/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1089,12 +1089,12 @@ public abstract class TestLocatorRegistryDisp_ : Ice.ObjectImpl, TestLocatorRegi
{
public abstract void addObject(global::Ice.ObjectPrx? obj, Ice.Current current);

public abstract global::System.Threading.Tasks.Task setAdapterDirectProxyAsync(string id, global::Ice.ObjectPrx? proxy, Ice.Current current);

public abstract global::System.Threading.Tasks.Task setReplicatedAdapterDirectProxyAsync(string adapterId, string replicaGroupId, global::Ice.ObjectPrx? proxy, Ice.Current current);

public abstract global::System.Threading.Tasks.Task setServerProcessProxyAsync(string id, global::Ice.ProcessPrx? proxy, Ice.Current current);

public abstract global::System.Threading.Tasks.Task setAdapterDirectProxyAsync(string id, global::Ice.ObjectPrx? proxy, Ice.Current current);

public override string ice_id(Ice.Current current) => ice_staticId();

public static new string ice_staticId() => "::Test::TestLocatorRegistry";
Expand Down
Loading

0 comments on commit 6bfdac9

Please sign in to comment.