1. 15 10月, 2015 2 次提交
    • M
      Merge pull request #139 from jeremyhannon/master · e8968304
      Mark VanderVoord 提交于
      MISRA rule 19.10: parentheses around macro params
      e8968304
    • J
      MISRA rule 19.10: parentheses around macro params · 1273112a
      Jeremy Hannon 提交于
      Added parentheses around all macro parameters to resolve MISRA 2004
      rule 19.10, "in the definition of a function-like macro, each instance
      of a parameter shall be enclosed in parenthesis" as tested with the
      IAR EW for 8051 compiler, version 9.20.2.
      
      The only questionable change is in "unity_fixture.h" where the nested
      macro DECLARE_TEST_CASE in RUN_TEST_CASE prevents surrounding params
      "group" and "name" with parentheses.
      However, it appears that macro DECLARE_TEST_CASE isn't used elsewhere,
      so I eliminated DECLARE_TEST_CASE and put its expansion directly in
      RUN_TEST_CASE.  Now the following header files pass rule 19.10:
      * unity.h
      * unity_internals.h
      * unity_fixture.h
      
      For my own project, this change to the Unity test framework allows me
      to include my unit test code to be tested against MISRA rules as well,
      instead of just production code, to help enforce style and team
      guidelines.
      1273112a
  2. 06 10月, 2015 2 次提交
  3. 18 9月, 2015 2 次提交
  4. 18 8月, 2015 2 次提交
  5. 03 8月, 2015 2 次提交
  6. 29 7月, 2015 1 次提交
  7. 27 7月, 2015 1 次提交
  8. 22 7月, 2015 1 次提交
  9. 21 7月, 2015 4 次提交
  10. 15 7月, 2015 8 次提交
  11. 12 7月, 2015 1 次提交
  12. 02 7月, 2015 1 次提交
  13. 01 7月, 2015 3 次提交
  14. 20 6月, 2015 5 次提交
  15. 19 6月, 2015 2 次提交
  16. 18 6月, 2015 1 次提交
  17. 23 5月, 2015 1 次提交
    • S
      Reverting of redundant casting from 89b003ed · 59aed006
      Sergey Gusarov 提交于
      Double castings look ugly. And if Unity is compiled with -Wcast-qual flag these type castings produce a lot of warnings:
      unity/src/unity.c:490:80: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
                           UnityPrintNumberByStyle(*(UNITY_PTR_ATTRIBUTE const _US16*)(void*)ptr_exp, style);
                                                                                      ^
      59aed006
  18. 24 4月, 2015 1 次提交