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

Removed including standard libraries from mock sources. #454

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

informatimago
Copy link
Contributor

@informatimago informatimago force-pushed the 804--remove-include-standard-libs-from-mock-sources branch from 19c762e to 1b1218f Compare August 11, 2023 08:34
@informatimago
Copy link
Contributor Author

I've added CMock_memcpy (it wasn't used for my mocks), and updated tests.

Factorized out the generation of returns with noreturn exits in
generate_return and generate_template_return methods.
Added parsing of noreturn attributes in various syntaxes
(C syntax, C++ syntax, GNU gcc syntax).

To do so safely, added a C lexer, and a quick-and-dirty parenthesis parser
(including brackets, braces and angle-brackets for C++).  Using the
scanned list of tokens, processing parenthesised source code is easier
and safer than with regular expressions.
@informatimago informatimago force-pushed the 804--remove-include-standard-libs-from-mock-sources branch from 97aa0cd to 6e4c79a Compare November 16, 2023 14:28
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.

Including "standard headers" in mock files.
1 participant