-
Notifications
You must be signed in to change notification settings - Fork 256
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
Improve nargs #125
Merged
p-ranav
merged 23 commits into
p-ranav:master
from
hokacci:feature/variable-length-nargs
Jun 22, 2022
Merged
Improve nargs #125
Changes from 15 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c6c3be0
1st version of handling variable length nargs
hokacci 3d559d3
Revive remaining method
hokacci c99272b
Remove negative parameter test for now unsigned
hokacci 10ddd39
Fix tests for remaining
hokacci 2cfe115
Change test for remaining to test for * nargs
hokacci aae2e93
Add another test for remaining
hokacci bb115c0
Add test for variable nargs
hokacci 8845260
Add test for reversed order nargs
hokacci bec93ac
Avoid use ALL_CAPS for enumerators
hokacci 14abaa4
Use member initializer list to SizeRange ctor
hokacci 6dfaa1c
Restore a "remaining" test case for compat
hokacci 0195a50
Complete "remainig" backward compatibility
hokacci 12fcae6
Prefer pre-const to post-const
hokacci 3459eec
Make throw_* funcs and make validate() clearer
hokacci 08943f4
Merge branch 'master' into feature/variable-length-nargs
hokacci b869b5a
NArgsPattern -> nargs_pattern (to snake case)
hokacci 5d6544a
Retrieve changes on 37a1f3b9e6ddb27ad70fb3b52c83266066949488
hokacci df6e7de
Prefer empty() to size() == 0
hokacci 7b5084c
Fix a typo
hokacci e44023f
Explain variable-length arguments in README
hokacci acff046
Use optional instead of zero_or_one
hokacci 25d24c7
SizeRange -> NArgsRange
hokacci ed84d90
Move NArgsRange to private: because it is detail of implementation
hokacci File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For consistency, let's use lower_case underscore-separated field names for
enum class
es.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.
Fixed in b869b5a