Skip to content

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