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

Remove Slice-to-C++ code generation for local Slice #1619

Merged
merged 10 commits into from
Dec 26, 2023

Conversation

bernardnormier
Copy link
Member

@bernardnormier bernardnormier commented Dec 21, 2023

This PR removes the Slice-to-C++ code generated for local Slice definitions. With this update, slice2cpp no longer generates anything for local Slice.

This PR:

  • commits the generated code for local C++ definitions, usually as-is (to simplify reviews)

    • a follow-up PR should cleanup / simplify this generated code
  • split a few shared Slice files (in ice/slice) that included both local and non-local definitions

    • this required a few updates to source files and other language mappings

See #1620.

//
// Ice version 3.7.10
//
// <auto-generated>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is the old generated code. We need to clean it up in a follow-up PR.

Ordered
}
/// Uniquely identifies TCP endpoints.
const short TCPEndpointType = 1;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The EndpointSelectionType enum is now in the EndpointSelectionType.ice file - a more appropriate name!

@@ -20,7 +20,9 @@

#include <Ice/ObjectAdapterF.ice>
#include <Ice/ConnectionF.ice>
#include <Ice/Context.ice>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both Context and OperationMode are non-local so can't be in the same file as local struct Current.

// Copyright (c) ZeroC, Inc. All rights reserved.
//

#pragma once
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split IceBox.ice in Service.ice (local) and ServiceManager.ice (non-local).

@bernardnormier bernardnormier merged commit 6dfc860 into zeroc-ice:main Dec 26, 2023
2 checks passed
@bernardnormier bernardnormier deleted the xlocalgen-cpp branch May 10, 2024 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants