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

Add insertion points for plugins #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gregschlom
Copy link

This pull request adds two insertion points for plugins:

imports: #import directives
global_scope: Declarations that belong at the top level. Appears at the very end of the file.

Each insertion point appears in both the .pb.m file and the .pb.h.

I could have added other insertion points inside classes, but I do not need that feature for the moment, so I'd rather avoid coding something blindly.

As a comparison, here are the insertion points generated by the C++ protobuf compiler.

@epreston
Copy link

I've integrated this feature into the fork I'm maintaining. Did you find any need for other insertion points ?

Packetdancer pushed a commit to Packetdancer/protobuf-objc that referenced this pull request Feb 4, 2015
Packetdancer pushed a commit to Packetdancer/protobuf-objc that referenced this pull request Feb 4, 2015
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