ThrowTheSwitch / CMock

CMock - Mock/stub generator for C
http://throwtheswitch.org
MIT License
684 stars 276 forks source link

[Proposal] Treat_inlines reuses previously mocked headers after disabling #487

Closed JuPrgn closed 1 month ago

JuPrgn commented 1 month ago

CMock 2.6.0

If you switch from :treat_inlines: :include to :exclude without cleaning the project, CMock reuse fictive headers in test/mocks that was created previously and do not delete it automatically.

I think this can be confusing and if possible these files should be automatically deleted or the documentation could indicate to clean the project after changing this parameter.

mvandervoord commented 1 month ago

CMock doesn't handle ANY build processing requirements... it just generates mocks when told to do so. Any changes to the CMock configuration should likely trigger a rebuild of all mocks, honestly.

Are you using Ceedling as a build system? If so, we should move this Issue over there. If not, you'll want to check into your current build system to find where the issue is.

JuPrgn commented 1 month ago

Sorry I posted on the wrong repo (was completing my previous issue) yes I am using Ceedling (latest pre release 1.0.0) I will move this issue there if you think this should be discussed ?