Commit Graph

  • 1639e2f49f - updated cmock to use unity's understanding of pointer size (why double configure?) - small tweaks to cmock docs mvandervoord 2010-07-29 02:39:57 +00:00
  • 35c59f1c38 - multi-dimensional arrays now get pointer comparisons (which is better than crashing, right?) - the pointer size can now be specified (particularly for systems which need 64 bit pointers) - removed a redundant parsing step mvandervoord 2010-07-20 02:28:48 +00:00
  • 840e38998b - support typedefs of pointer types in treat_as - fixed multi-line typedef declaration rejection mvandervoord 2010-07-19 14:02:42 +00:00
  • 7e0c3907b8 - updated docs to have latest config options - allow function pointers to have an implied void like bleh() mvandervoord 2010-07-02 20:00:39 +00:00
  • f3e8ae7487 prettified debug output produced for function prototype parsing that fails mkarlesky 2010-06-30 14:53:11 +00:00
  • 420b17239b moved insertion of extra includes from mock source file generation to mock header file generation mkarlesky 2010-06-28 17:17:12 +00:00
  • 07cbedc462 - fixed error when using 'signed' or 'unsigned' as the complete type. - fixed a couple of errors directly using function pointers as arguments or return values - beefed up testing on the parser! mvandervoord 2010-06-28 02:04:27 +00:00
  • 4a0df26994 - drop cexception_include which is no longer needed - correct which define needed to be long in cmock.c - beefed up testing of unity TEST_IGNORE in relation to mocking mvandervoord 2010-06-27 19:02:07 +00:00
  • 1f1c2a9ccf - Fixed ignore plugin when called multiple times back to back with different settings mvandervoord 2010-06-26 14:40:31 +00:00
  • df253ed22e - make config from yaml equally happy with symbols or strings (particularly for plugins) mvandervoord 2010-06-25 00:55:24 +00:00
  • 15efce2860 added messages to asserts to prevent test assert failures with no explanations mkarlesky 2010-06-24 05:05:30 +00:00
  • 4de681db99 - tweaked regex for searching includes (thanks mjaygo!) mvandervoord 2010-06-23 14:17:55 +00:00
  • e91f739e43 - updated default to internal temp type mvandervoord 2010-06-21 12:57:32 +00:00
  • 8c03f7b200 - Got examples project working again mvandervoord 2010-06-21 12:53:28 +00:00
  • f201cf2903 - Fixed callback-after-arg-check so that it actually checks args - Fixed ignore-when-ignoring-args-only - Fixed error in memory comparisons when pointers used - Fixed system testing of CMock(!) mvandervoord 2010-06-19 20:11:13 +00:00
  • 2bf2364b82 - make the ptr size more flexible mvandervoord 2010-06-18 18:32:32 +00:00
  • c4b30f25ed - default treat_as updated to take advantage of unity's new array size options mvandervoord 2010-06-09 02:00:21 +00:00
  • 8cb956367d - added ability to use callbacks with or without argument checking - added ability to use callbacks with or without the extra count argument - updated docs mvandervoord 2010-06-08 00:46:50 +00:00
  • 3779a76069 - fixed error in docs - make unity optional (even though we don't fully support any other framework yet) mvandervoord 2010-06-06 17:00:30 +00:00
  • af9d83d181 - 'extern' function stripping is now optional - ignores can be configured to ignore args only or args and callcount mvandervoord 2010-05-05 01:58:58 +00:00
  • 36de9c6fc4 - added copyright notices to code (oops) - protected against people using extern "C" mvandervoord 2010-04-27 02:14:44 +00:00
  • 89737d59fe - beefed up unit tests for function pointers - added module name to reduce chance of typedef name collisions. mvandervoord 2010-04-27 01:40:34 +00:00
  • 436ffe0fee - cleaned up an error or two when using memory compares - can use array assertions for non-arrays - can sometimes get away with normal assertions for arrays (doesn't yet go through array, just first element) - made parsing_challenges test better mvandervoord 2010-03-30 03:36:08 +00:00
  • 14d639bbd8 - made index follow alignment rules too - added support to track line numbers - tweaked color support mvandervoord 2010-03-24 01:06:51 +00:00
  • b2241274e4 - rolled in color coding changes from Martyn - cleaned up utils to make faster and clearer - corrected mistake in system test helper mvandervoord 2010-03-13 04:53:12 +00:00
  • 1ff34b5c04 - updating to handle new standard unity output mvandervoord 2010-03-10 03:09:49 +00:00
  • e79a5f13d1 - added cmock.c file for handling generic parts - switched to better memory management technique mvandervoord 2010-03-08 13:32:31 +00:00
  • f4c5f17b7b added release dir mkarlesky 2010-02-03 23:51:26 +00:00
  • 99422cddb1 * added tests for single bracket arrays as pointers (need to think of desired way to handle mulitdimensional arrays) * rolled unity float support in as default. user can still overload with :treat_as mvandervoord 2010-01-11 12:46:43 +00:00
  • f6ebb9de6a * updated CMock internal variable and function names to avoid naming conflicts. mvandervoord 2010-01-10 02:24:59 +00:00
  • ece9f0dc89 * smarter stripping of typedef lines * better error reporting when config file requires an array but didn't get one mvandervoord 2009-12-29 20:56:31 +00:00
  • 4a1a7bdb4d - CMock verbosity control mvandervoord 2009-12-06 19:20:53 +00:00
  • e72fb66e12 - updated to support latest cexception changes mvandervoord 2009-12-05 00:39:07 +00:00
  • 06ef8bb221 * added callback plugin * cleaned up plugin prioritization * updated plain docs mvandervoord 2009-12-04 18:52:59 +00:00
  • eee379f611 - added array/pointer "smart" mode support - removed differentiation between array and pointer (since it doesn't exist at this point anyway) mvandervoord 2009-11-28 01:44:38 +00:00
  • dbb397adbe - better array and pointer support mvandervoord 2009-11-27 03:40:48 +00:00
  • 0f857f24ec - foundation work towards more awesome pointer/array handling. not there yet, so don't try this at home kids. mvandervoord 2009-11-26 00:55:02 +00:00
  • f63d8d7813 Friendler failure message if a mock is unable to allocate memory for itself (which is likely to happen if your production environment has no heap and you neglect to define one for your test environment) ajwitte 2009-11-04 16:51:31 +00:00
  • 81d94eeca9 now ignoring contents of #pragma asm sections in header files, which were previously erroneously treated as C tokens ajwitte 2009-10-27 21:08:34 +00:00
  • a875949914 - fixed an error in pointer handling. beefed up tests mvandervoord 2009-08-27 23:07:07 +00:00
  • 1ed579f206 - updated cmock scripts to use the new generator (duh) mvandervoord 2009-08-24 14:09:37 +00:00
  • c524ae7c9d - faster, stronger and lighter parser - more robust comment removal - disable plugins by default mvandervoord 2009-08-24 13:57:11 +00:00
  • 6bb989a3c0 - lots of optimization (except in parsing... we've left that for another day!) mvandervoord 2009-07-10 20:46:27 +00:00
  • c9fdbe29fd - removed configurable tabs because they aren't valuable compared to their hit on performance * WARNING: This change will very likely break your calling of generate_version_runner in unity * mvandervoord 2009-06-25 19:24:40 +00:00
  • f1ee6295d3 - beefed up system tests to handle cases where users run multiple expect setup and consume loops within a test - fixed bugs related to those behaviors - standardized messages a bit mvandervoord 2009-06-25 18:08:58 +00:00
  • d37f46ffbd - updated tests (unit and system) to prove strict ordering is happy mvandervoord 2009-06-24 12:09:43 +00:00
  • ffbb92854f - finished strict ordering mvandervoord 2009-06-24 02:27:32 +00:00
  • e19e1fdd46 - added config option :when_no_prototypes which takes options :ignore, :warn, or :error, controlling how it will react to being asked to process headers with no prototypes (defaults to :warn) mvandervoord 2009-06-21 01:30:56 +00:00
  • 5843b7e518 more type unit tests mkarlesky 2009-06-20 02:57:16 +00:00
  • d6d1757172 comment edits only mkarlesky 2009-06-19 22:45:56 +00:00
  • f06f500dab fixed up parser to handle custom types whose names begin with primitive types; fixed holes in handling of spaces mkarlesky 2009-06-19 21:35:06 +00:00
  • 3e1651c937 * updated for better compatibility (now works with 1.8.6, 1.8.7, 1.9.0, 1.9.1) * fixed bugs and cleaned up strict global ordering support (and added system test to prove it) mvandervoord 2009-06-19 02:05:46 +00:00
  • bdfa059832 updated header parser comments and tests to capture new beahvior of extracting removing structs, unions, & enums including any modifiers at beginning of line. mkarlesky 2009-06-07 21:57:14 +00:00
  • 8683a6b3ff made struct, union, and enum handling more robust to remove up to beginning of line containing them (helpful when 'extern' is only word left) mkarlesky 2009-06-03 21:30:20 +00:00
  • 82eb878cf6 added parsing handling to smartly handle forward declared structs mkarlesky 2009-06-03 21:11:30 +00:00
  • dcccac54ce fixed oversight on removing named structs, unions, and enums mkarlesky 2009-06-03 16:20:27 +00:00
  • afd08adb8c fixed system test execution to use modified interface of UnityTestRunnerGenerator mkarlesky 2009-06-03 15:57:58 +00:00
  • 8d625b8b31 added the removal of structures from header files; they can include function pointers which will throw off prototype parsing mkarlesky 2009-06-03 15:56:00 +00:00
  • 136993c73e updated type qualifier and attribute handling to strip out all type qualifiers from prototypes (except const) and pull out user-defined function attributes before parsing but preserved for later use mkarlesky 2009-05-28 18:24:58 +00:00
  • 40a80e0a0e - suppress a couple of warnings so we can test these weird cases. mvandervoord 2009-05-28 16:02:09 +00:00
  • 016cd32b1f - added some system tests for custom types and treat_as - added some system tests for cexception support - fixed some minor issues with cexception plugin mvandervoord 2009-05-28 15:39:41 +00:00
  • 7a146f0786 file rename mkarlesky 2009-05-28 04:37:52 +00:00
  • 204e94fb59 added more tests mkarlesky 2009-05-28 04:18:48 +00:00
  • e8f7468cd2 tweak to give parser proper header name for error reporting mkarlesky 2009-05-28 04:08:01 +00:00
  • aab0724859 moved removal of 'const' to prototype parser handling from mock generation to control format (whitespace) of type strings mkarlesky 2009-05-28 04:02:20 +00:00
  • 6f7542e7aa added handling to explicitly ignore externed functions in header file to be mocked mkarlesky 2009-05-27 21:54:49 +00:00
  • 040aaf75dd made const handling more better to accept crazy magic fairy dust use of 'const' sprinkled about in argument lists mkarlesky 2009-05-27 20:37:06 +00:00
  • e56e2a4acd added more system tests; refined existing mkarlesky 2009-05-27 18:43:49 +00:00
  • f2786f116a corrected parsing oversight related to 'const' trailing a type specifier mkarlesky 2009-05-27 18:06:48 +00:00
  • 9afe7bfa13 - removed root-path dependencies - cleaned up support for multiple target compilers mvandervoord 2009-05-27 12:48:39 +00:00
  • b8bc19e131 final changes to allow new parser to successfully process/mock osek.h stress test file mkarlesky 2009-05-26 21:16:55 +00:00
  • c4fb5fceb6 added handling to ignore prototypes defined multiple times, to remove unions from header files, remove enums from header files, to ignore function pointer arrays rather than falsely recognize as function prototypes mkarlesky 2009-05-26 17:16:32 +00:00
  • 0bef802fc1 first stab at compilation stress tests added to system tests; modified attributes handling to remove attributes (e.g. 'register') from argument list during header parsing mkarlesky 2009-05-26 02:34:56 +00:00
  • c0779d1604 fixed oopsie in directory rename mkarlesky 2009-05-25 23:47:15 +00:00
  • a111c32b95 git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@107 bf332499-1b4d-0410-844d-d2d48d5cc64c mkarlesky 2009-05-25 23:45:18 +00:00
  • 4bfa5881ae renamed system test cases directory to match new compilation directory name mkarlesky 2009-05-25 23:32:43 +00:00
  • 268ba11d49 added handling for array index operators in argument lists mkarlesky 2009-05-25 23:28:46 +00:00
  • 9d608d61d3 added enum handling to parser; updated comments in test files produced in system test file generation mkarlesky 2009-05-22 21:50:00 +00:00
  • 461f0d3fb9 removed commented out unity helper sections now that struct_and_union serves as working example mkarlesky 2009-05-22 04:39:36 +00:00
  • 07938ab2de corrected struct argument handling; added union argument handling mkarlesky 2009-05-22 04:37:06 +00:00
  • e48df8ba14 first feature complete version of new function prototype parser - including robust function pointer handling mkarlesky 2009-05-21 23:50:35 +00:00
  • 62f543667f reorganized system tests; correct problem wherein argument list parameters containing names of primitive types would cause bad parsing results mkarlesky 2009-05-19 04:34:17 +00:00
  • bac4c93be8 const handling system tests mkarlesky 2009-05-16 02:15:41 +00:00
  • 4ca4d175cf first pass at integrating function pointer handling mkarlesky 2009-05-15 06:00:47 +00:00
  • 153b8b9000 added support: 'struct' qualifiers for pointers in argument lists, const function pointers, added more type tests mkarlesky 2009-05-15 00:57:26 +00:00
  • f63c2b4fc8 first stab at prettying up load_paths and require handling b/c of vendor/gems mkarlesky 2009-05-14 19:33:26 +00:00
  • e6c84d9e07 completed first pass at testing slimmed down cmock_header_parser using new function prototype parser; added functionality to raise exception upon failed parsing or no prototypes in file to be parsed mkarlesky 2009-05-14 19:10:42 +00:00
  • 17631c66f8 another intermediate check-in while tying together new function prototype parser with header_parser mkarlesky 2009-05-14 13:47:56 +00:00
  • 500c30a5ce intermediate check in; integrating new parser and tests thereof yet in progress mkarlesky 2009-05-14 05:18:45 +00:00
  • 71729e1b65 - changed 'parameter' to 'argument' in text because it's more accurate. mvandervoord 2009-05-13 23:15:01 +00:00
  • 49d8d32ef5 added new function prototype parser and treetop gem (not yet folded into cmock proper) and tests; cleaned up file paths in test require statements mkarlesky 2009-05-11 02:15:51 +00:00
  • 8229ec8448 made new typedef void handling more better to ignore function pointer typedefs with void return type mkarlesky 2009-04-23 17:27:44 +00:00
  • 637dd73d4d added handling of odd typedef edge case for void type mkarlesky 2009-04-23 15:00:35 +00:00
  • 14ce655a91 added couple function parsing test cases; inserted comments mkarlesky 2009-04-22 12:57:06 +00:00
  • 733d463d4f tightened up function recognition to ignore array declarations; reordered commentprocessing to take out block comments before line comments (in case line comments are embedded in block comments) mkarlesky 2009-04-21 18:08:10 +00:00
  • 9088e2038d undid include processing in mock header & source generation mkarlesky 2009-04-20 23:34:07 +00:00
  • 6a5f4d4cdf made header parsing marginally better until we handle function declarations in an awesome way; removed filewriter system test from unit test (tested thoroughly by system tests); pushed all auxilliary includes into mock header file instead of source mkarlesky 2009-04-20 22:20:39 +00:00
  • c62a709092 fixed multiline handling; removed several bits of vestigial code from old cmock versions; made parsing much more readable mkarlesky 2009-04-20 17:34:16 +00:00
  • 98658b5fb6 removed automatic extern instance handling wonkiness (possibly leftover from previous cmock mechanisms) mkarlesky 2009-04-19 01:04:17 +00:00
  • e149f7b235 made argument parsing a bit more forgiving for crazy argument lists mkarlesky 2009-04-17 23:40:30 +00:00