-
Notifications
You must be signed in to change notification settings - Fork 78
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
Support function void argument #102
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #102 +/- ##
==========================================
+ Coverage 98.83% 98.83% +<.01%
==========================================
Files 26 26
Lines 3850 3852 +2
==========================================
+ Hits 3805 3807 +2
Misses 45 45
Continue to review full report at Codecov.
|
shivyc/tree/nodes.py
Outdated
@@ -668,6 +668,10 @@ def extract_params(self, decl): | |||
|
|||
for param in func_decl.args: | |||
decl_info = self.get_decl_infos(param)[0] | |||
# check if void is the function argument,we skip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch (IMHO, as an outsider to the project) looks pretty clean, the only suggestion is with this code comment. Would be nice to reword/reformat it a bit, e.g. "check if "void" is the function argument, and skip it".
@ShivamSarodia: This seems to be more or less good patch, and definitely a needed feature, any response? |
Void argument is recommend to use inside the function which has no parameter.This commit can allow user define void during function declaration.
Void argument is recommend to use inside the function which has
no parameter.This commit can allow user define void during function
declaration.