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

Support function void argument #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

splasky
Copy link

@splasky splasky commented May 25, 2018

Void argument is recommend to use inside the function which has
no parameter.This commit can allow user define void during function
declaration.

@codecov-io
Copy link

codecov-io commented May 25, 2018

Codecov Report

Merging #102 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
+ Coverage   98.83%   98.83%   +<.01%     
==========================================
  Files          26       26              
  Lines        3850     3852       +2     
==========================================
+ Hits         3805     3807       +2     
  Misses         45       45
Impacted Files Coverage Δ
shivyc/tree/nodes.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d856a69...d58bf75. Read the comment docs.

@@ -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
Copy link

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".

@pfalcon
Copy link

pfalcon commented Aug 4, 2019

@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.
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.

3 participants