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

Emit non-type template args as part of forward decls #66

Merged
merged 1 commit into from
Oct 29, 2020
Merged

Emit non-type template args as part of forward decls #66

merged 1 commit into from
Oct 29, 2020

Conversation

cblichmann
Copy link
Member

This change allows us to emit forward declarations to classes that are
templated. For headers generated by the proto compiler this is sometimes
necessary.

Note:

  • This will only emit types for a single level of template instatiations. That
    is, template template arguments are not supported.
  • Typedefs only occurring in template arguments will be fully desugared
    and thus will not be available under their aliased name in the generated
    API code. This is consistent with the Python based generator (which
    does not emit these at all and relies on text extraction).

Signed-off-by: Christian Blichmann [email protected]

@google-cla google-cla bot added the cla: yes CLA accepted label Oct 23, 2020
This change allows us to emit forward declarations to classes that are
templated. For headers generated by the proto compiler this is sometimes
necessary.

Note:
- This will only emit types for a single level of template instantiations.
  That is, template template arguments are not supported.
- Typedefs only occurring in template arguments will be fully desugared
  and thus will not be available under their aliased name in the generated
  API code. This is consistent with the Python based generator (which
  does not emit these at all and relies on text extraction).

Signed-off-by: Christian Blichmann <[email protected]>
Copy link
Collaborator

@happyCoder92 happyCoder92 left a comment

Choose a reason for hiding this comment

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

LGTM

@cblichmann cblichmann merged commit 8952d2c into google:master Oct 29, 2020
happyCoder92 pushed a commit that referenced this pull request May 4, 2022
PiperOrigin-RevId: 339616485
Change-Id: Iaa427e0aa5712f36ae1c176bffbaf00b2b342373
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants