Skip to content

Conversation

@Letme
Copy link
Contributor

@Letme Letme commented Aug 18, 2025

In default project.yml file we were missing the inline_function_patterns, which is usually crucial for when you have a custom inline function definition or macro. Since that is in CMock documentation and treat_inlines is by default to exclude I made sure I commented out the rest.

While at it I also fixed the typo in treat_externs and treat_inlines few lines above.

Closes #1092

In default project.yml file we were missing the inline_function_patterns, which is usually crucial for when you have a custom inline function definition or macro. Since that is in CMock documentation and treat_inlines is by default to exclude I made sure I commented out the rest.

While at it I also fixed the typo in treat_externs and treat_inlines few lines above.
@Letme Letme changed the title Add inline function patterns option for cmock Add documentation for inline function patterns option for cmock Aug 18, 2025
@Letme
Copy link
Contributor Author

Letme commented Aug 18, 2025

I am not sure this is the only spot that needs fixing to allow changes to default project.yml generation, but it should provide a hint. I like most the tools that generate all available options with default values configuration to make it explicit which features are available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready

Development

Successfully merging this pull request may close these issues.

[BUG] Mocking fails when a macro precedes a function definition

1 participant