For testing purposes we need to be able to mock out the ArgList class.
This patch adds a mock version of that class as well as a flag to enable
it.
Details
- Reviewers
sivachandra - Commits
- rG47fb6d1c65ec: [libc] add mock arg list
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/__support/arg_list.h | ||
---|---|---|
36 | Add a comment explaining under what contexts this is useful. | |
42 | Remove the argname vlist here, then you shouldn't need the copy to suppress unused parameter warnings. | |
60 | Since we don't care about the return value, this can be just T(). | |
66 | I think this can be improved to make it cleaner but to keep the scope of this change small, let us just do one more thing here: Move this to parser.h so that only the class Parser has to worry about it. | |
libc/src/stdio/fprintf.cpp | ||
24 ↗ | (On Diff #497836) | Why should this and others outside of the class Parser change? |
libc/src/__support/arg_list.h | ||
---|---|---|
60 | We don't care right now, but in the future I plan to use the return values to help distinguish between blocks when fuzzing the printf parser. |
Add a comment explaining under what contexts this is useful.