Mark VanderVoord
f368744ca5
Updates for the new year
2026-01-23 11:19:02 -05:00
Mark VanderVoord
75c3f3c7b3
minor tweaks
2025-07-09 17:02:21 -04:00
Mark VanderVoord
2671ad7046
Merge pull request #504 from bal-stan/patch-1
...
Fix compiler error when compiling with `-Wcast-qual` and mocking const function arguments
2025-07-09 16:25:28 -04:00
Mark VanderVoord
bf9a13a8d4
Merge pull request #508 from rstahn/rstahn-patch-1
...
Add option 'create_error_stubs' (default is 'true')
2025-07-09 13:23:10 -04:00
ml-physec
2bb9086214
Unset argument detail before calling callback
2025-07-04 16:32:37 +02:00
Roland Stahn
3ba7de2cb7
Style fixes
2025-06-03 13:51:15 +02:00
Roland Stahn
f60fe4b808
Add option 'create_error_stubs'
...
Proposal for issue #507
2025-06-02 11:44:37 +02:00
bal-stan
076df6dd5c
Fix compiler error when compiling with -Wcast-qual and mocking const function arguments
2025-04-01 16:24:48 +00:00
bal-stan
2bcc723e10
Always cast memcpy dest pointers to const void
2025-02-13 18:06:27 +00:00
Mark VanderVoord
a60383ec34
Update licenses to new standards... plus New Years bump
2025-01-01 12:05:55 -05:00
Mark VanderVoord
d5e938e4b1
- refactor to match coding standards.
...
- test against Ruby 3.3 also.
2024-10-23 16:01:48 -04:00
Mark VanderVoord
7d6ec0354a
If a short-path cannot be created, fallback to absolute path, even though it's more verbose.
2024-10-23 15:35:37 -04:00
Mark VanderVoord
43618c8c78
🐛 Fix problem if unity helper path is specified as relative path starting with ..
2024-10-03 10:03:33 -04:00
Mark VanderVoord
6b0587fce5
Fixes to latest stylistic warnings.
2024-08-01 12:12:08 -04:00
Mark VanderVoord
c83f8bddf2
Working towards gemifying and automatically reporting version.
2024-08-01 11:47:58 -04:00
Mark VanderVoord
119f6607d9
Don't need to escape symbols in brackets
2024-04-02 19:28:29 -04:00
Mark VanderVoord
9cc8fb5302
Let's enable validation of examples. failures should trip errors.
...
Also make them verbose so we can see what is going on.
2024-04-02 18:44:35 -04:00
Mark VanderVoord
ecaccb428b
🪲 remove unused AbortFrame ( #316 )
2024-03-26 22:29:06 -04:00
Mark VanderVoord
714619eefb
🪲 protect against bad filenames with multiple .c instances in them ( #348 )
2024-03-22 22:04:30 -04:00
Mark VanderVoord
001bbeca51
🪲 :fail_on_unexpected_calls options now insists on required :ignore plugin ( #376 )
2024-03-22 21:41:45 -04:00
Mark VanderVoord
597a6d86eb
Finish giving clues when you've chosen the wrong AndReturn version.
...
ReturnArrayThruPtr (and others) now protect sizes in parenthesis #415
2024-03-21 11:35:21 -04:00
Mark VanderVoord
3a6f1f29a3
🪲 Fixed issue where -oblah.yml isn't parsed by powershell.
...
:fern: `-o blah.yml` also accepted as valid input now.
2024-03-20 15:55:59 -04:00
Mark VanderVoord
07a0e257b5
🪲 Added fail messages when using Expect for ExpectAndReturn or vice versa. (see issue #462 )
2024-03-14 08:59:31 -04:00
Mark VanderVoord
dddd01dfa7
copied change from pr 468
2024-03-09 19:08:11 -05:00
Mark VanderVoord
3232b72205
fixed wrong quote usage.
2024-02-21 14:58:23 -05:00
Mark VanderVoord
083bbd6a38
Add to verbosity of failures to find prototypes in headers.
2024-02-21 13:52:07 -05:00
Mark VanderVoord
b032cfa09b
Merge branch 'master' into cmock_2_6_rc
2023-11-22 19:58:51 -05:00
Mark VanderVoord
9192a95089
Merge pull request #453 from NovaNekmit/NovaNekmit-patch-1
...
Make ReturnMemThruPtr pointers const
2023-11-22 19:57:55 -05:00
Mark VanderVoord
a642b1fe49
Update to latest Unity and therefore newer Rubocop standards. Tweaked scripts to match latest standards.
2023-11-22 17:40:07 -05:00
Mark VanderVoord
161d58bf54
Merge branch 'master' into cmock_2_6_rc
2023-11-13 22:33:50 -05:00
Mark VanderVoord
6cf8fb9b71
Fix to incorrect handling of static inlines.
...
Fix to Ruby deprecated interfaces.
Fix to keep up with new C standards.
2023-11-13 22:33:16 -05:00
Hannes Bachl
5328a51508
add check to prevent sizeof(void) generation
2023-08-23 11:32:58 +02:00
NovaNekmit
65706fa6fb
Make ReturnMemThruPtr pointers const
2023-08-09 15:53:02 +02:00
Pascal J. Bourguignon
c05e08d99e
Added a user-friendly error message when processing bad :treat_as
...
When the indentation after :treat_as mappings is wrong, we may get a symbol as ctype.
The error signaled by gtype.gsub is not userfriendly, so instead, we test for symbols
and issue a user friend error message in that case.
2023-07-28 11:10:54 +02:00
alufers
3caf511b8f
fix: Don't smush macros which have an escaped empty line at the end
...
nanopb has a habit of generating macros which end with an escaped empty line (for example for messages which are empty). They look like this:
#define some_msg_t_FIELDLIST(X, a) \
#define some_msg_t_CALLBACK NULL
This caused CMock to strip all of the newlines after the backslash instead of only one, which the backslash was escaping.
This in turn caused both the macros to be in one line, causing a compile error in the generated mock.
2023-04-26 14:16:41 +02:00
Mark VanderVoord
bbfaf0425f
Handle yaml.load in a way that is ruby version agnostic.
2023-02-06 16:46:48 -05:00
Mark VanderVoord
a58808d424
Fixed bug #402 , getting confused with __attribute__ directives with spacing.
2023-01-11 15:43:48 -05:00
Mark VanderVoord
902b6c8b3d
Fix bug in parenthetical statements being misinterpreted as functions. (Issue #414 )
2023-01-10 15:35:54 -05:00
Mark VanderVoord
91bb49c4a8
Fix same bug as PR #354 , but as one line.
2023-01-09 14:50:56 -05:00
Mark VanderVoord
5838025996
rubocop fix.
2023-01-09 14:30:01 -05:00
Mark VanderVoord
16d12416fd
Force ourselves to test with Ruby 3.
...
Fix some issues that have been lurking.
2023-01-09 14:16:30 -05:00
Mark VanderVoord
db946f2239
Merge pull request #359 from lukzeg/feature/358_cmock_speed_up_generation
...
Switch places in the extern C regex to speed up mock generation
2023-01-05 15:53:48 -05:00
Mark VanderVoord
b3f78b4259
Merge pull request #374 from Melirius/Calling-conventions-in-function-pointers-fix
...
Fix parsing of calling conventions in function pointers
2023-01-05 15:52:13 -05:00
Mark VanderVoord
5551437ea8
Merge pull request #378 from danimartin82/master
...
Fix skeleton file creation
2023-01-05 15:50:32 -05:00
Yago Fontoura Do Rosario
5eebd713ba
Added extern "C" to cmock generated headers
2022-09-07 21:16:28 +02:00
Müller, Jan
bb85af5567
Fix runaway regex
...
Multiple nested greedy quantifiers can cause to increase complexity of
the regular expression so that the matching in the cmock_header_parser
would take multiple minutes.
Fixed by removing one of the quantifiers that seems not to be needed.
2022-02-21 13:47:09 +01:00
Dani Martin
202721e561
Fix skeleton file creation
2021-12-17 13:18:19 +01:00
Ivan Siutsou
8b2e897d35
The same output witout convention
2021-11-07 23:04:44 +02:00
Ivan Siutsou
7100ef0e62
Fix parsing of calling conventions in function pointers
2021-11-07 21:47:51 +02:00
Lukasz Zeglinski
50de50d239
Switch places in the extern C regex to speed up mock generation
2021-05-09 22:12:06 +02:00