Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Removed including standard libraries from mock sources.#454

Open
informatimago wants to merge 19 commits intoThrowTheSwitch:master from
informatimago:804--remove-include-standard-libs-from-mock-sources
Open

Removed including standard libraries from mock sources. #454
informatimago wants to merge 19 commits intoThrowTheSwitch:master from
informatimago:804--remove-include-standard-libs-from-mock-sources

Conversation

@informatimago
Copy link
Contributor

@informatimago informatimago commented Aug 10, 2023

@informatimago informatimago force-pushed the 804--remove-include-standard-libs-from-mock-sources branch from 19c762e to 1b1218f Compare August 11, 2023 08:34
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
informatimago and others added 12 commits November 16, 2023 15:29
Related to: #783 cmock of the wrong file is generated.
Added --recursive to submodules update.
Co-authored-by: Crt Mori <crt.mori@gmail.com>
- Introduced CMock_memset and CMock_memcpy
- Updated tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Including "standard headers" in mock files.

1 participant

Comments

AltStyle によって変換されたページ (->オリジナル) /