-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Allow natspec documentation for non-public functions. #3097
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
Comments
This is basically about changing the loops in Natspec.cpp to go over all functions, and not just over the |
The problem is that we might not have an |
Interested to take this up, complete newbie so might take sometime to actually figure it out though |
@VarunWachaspati wonderful! Yes, this is not urgent, but please keep us posted. |
@chriseth Surely will do so. Kindly assign this issue to me. |
I want to do this as well. Potentially i could also develop natspec further after this issue is done, if the proposed issues are accepted. For example.
Eventually, function docs could have a more rich format where they can be formalized to some extent. Even though why3 support is gone, perhaps there could be something like a very simple assertion language that could be read and evaluated (maybe through Z3). Of course that would be in the future. |
@VarunWachaspati sorry, I cannot assign this to you because you are not part of the project, but please feel free to work on it. @androlo I think there are separate issues for most of the items you mention. An important aspect of natspec adoption is also to get it into further tools. Mist, metamask, etherscan, etc. should display them and also use the templating language. Perhaps you could connect to the relevant people and ask/help them implement it? |
@chriseth ok. |
i can hear what they think and then write up a number suggestions that seems to be popular. maybe check with the research/formal people as well (other then you i mean). I could start poking around after devcon, and see if it's possible to make a concerted effort. |
I don't think we will get very far with formalizing semantics, we tried that using why3 and failed due to various reasons. The plan is now to replace that with the much easier to use require/assert mechanism. |
ok, no problems. The focus will be mainly to see if existing docs and tags can be improved, then see what happens. |
Some questions about getting a list of functions. The Maybe have one function Otherwise there could just be something in natspec to get functions through Wat do. |
Edit AST.h/cpp feels too intrusive, but maybe complete function list is useful for other things. Happy to just build docs from natspec.cpp, and create any utility functions there as needed. |
Allow natspec documentation for non-public functions
This issue has been marked as stale due to inactivity for the last 90 days. |
This seems to be already implemented. Also, even if it weren't, we already have another issue covering this: #12295. |
Uh oh!
There was an error while loading. Please reload this page.
Issue created on @chriseth 's request.
The proposal is to allow contract writers to document non-public functions using natspec, and that those docs are included in the json output.
Additionally, there could be a compiler flag to ignore non-public function docs (which may or may not be enabled by default).
The text was updated successfully, but these errors were encountered: