From 11cc12cce8e8a038d4e87743e1c6506d6bde4b17 Mon Sep 17 00:00:00 2001 From: Crt Mori Date: Mon, 18 Aug 2025 17:03:23 +0200 Subject: [PATCH] Add inline function patterns option for cmock 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. --- assets/project.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/project.yml b/assets/project.yml index caa2fdbd..3e14e79a 100644 --- a/assets/project.yml +++ b/assets/project.yml @@ -166,8 +166,10 @@ - __stdcall - __cdecl - __fastcall - :treat_externs: :exclude # the options being :include or :exclud - :treat_inlines: :exclude # the options being :include or :exclud + :treat_externs: :exclude # the options being :include or :exclude + :treat_inlines: :exclude # the options being :include or :exclude + #:inline_function_patterns: # When treat_inlines is include this setting overrides the default patterns: "static inline", "inline static", "inline" + # - INLINE # Indicates that the INLINE keyword should be used to detect inline functions # Type handling configuration #:unity_helper_path: '' # specify a string of where to find a unity_helper.h file to discover custom type assertions