-
Notifications
You must be signed in to change notification settings - Fork 220
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
Adding support of +define+ in FileList. #1421
Conversation
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.
Nice!
'ParseSourceFileListFromCommandline()': - Fix parsing issue. - Add better error messages. - Add more tests. The preprocessor tool: - Use 'ParseSourceFileListFromCommandline()' in subcommands.
7250f04
to
b1dcd93
Compare
There was an issue reported by @mglb in the original first PR, if the argument is |
did you also add a test to confirm that |
Yup, I added a test for that. |
Codecov Report
@@ Coverage Diff @@
## master #1421 +/- ##
==========================================
- Coverage 92.94% 92.92% -0.02%
==========================================
Files 342 342
Lines 24105 24158 +53
==========================================
+ Hits 22404 22450 +46
- Misses 1701 1708 +7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
LGTM.
Do you want to add anything here, or want the TODO 'send defines to preprocessor' in follow-up changes ?
I've already done the 'send defines to preprocessor' in the the remaining PRs. |
Alright, so ready to merge ? |
Yes, ready to merge. |
Alright, it's in! |
I will close PR #1373 then. |
To link this up: the corresponding issue is #1358 |
This PR implements:
ParseSourceFileListFromCommandline(const std::vector<absl::string_view>& cmdline_args)
Which parses the command line arguments into a
FileList
that now contains a vector holding the definitions passed through+define+
.Note:
ParseSourceFileListFromCommandline
is not yet used in the preprocessor tool.