mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-14 07:07:49 +00:00
Fix bug in parenthetical statements being misinterpreted as functions. (Issue #414)
This commit is contained in:
@@ -16,8 +16,8 @@ typedef struct _POINT_T
|
||||
int y;
|
||||
} POINT_T;
|
||||
|
||||
// typedef edge case;
|
||||
// not ANSI C but it has been done and will break cmock if not handled
|
||||
/* typedef edge case;
|
||||
not ANSI C but it has been done and will break cmock if not handled */
|
||||
typedef void VOID_TYPE_CRAZINESS;
|
||||
|
||||
/* fun parsing & mock generation cases */
|
||||
@@ -36,6 +36,9 @@ char
|
||||
int a,
|
||||
unsigned int b);
|
||||
|
||||
/* this isn't a function, despite the parenthesis */
|
||||
static const unsigned int foo = (1);
|
||||
|
||||
U16 *ptr_return1(int a);
|
||||
U16* ptr_return2(int a);
|
||||
U16 * ptr_return3(int a);
|
||||
|
||||
Reference in New Issue
Block a user