[riot-commits] [RIOT-OS/RIOT] c1d312: dist/tools: add Coccinelle check for ARRAYSIZE

benpicco noreply at github.com
Thu Aug 8 13:56:40 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: c1d3128be3148cf9c32696f697e7c8cf51595763
      https://github.com/RIOT-OS/RIOT/commit/c1d3128be3148cf9c32696f697e7c8cf51595763
  Author: Kees Bakker <kees at ijzerbout.nl>
  Date:   2019-08-07 (Wed, 07 Aug 2019)

  Changed paths:
    A dist/tools/coccinelle/warn/arraysize.cocci

  Log Message:
  -----------
  dist/tools: add Coccinelle check for ARRAYSIZE

This Coccinelle script will warn when new code has the potential to use
the macro ARRAYSIZE instead of something like this
     sizeof(some_array) / sizeof(some_array[0])


  Commit: dd48de9b3dd99a2a8e683c0599c46e824bea8f0a
      https://github.com/RIOT-OS/RIOT/commit/dd48de9b3dd99a2a8e683c0599c46e824bea8f0a
  Author: benpicco <benpicco at googlemail.com>
  Date:   2019-08-08 (Thu, 08 Aug 2019)

  Changed paths:
    A dist/tools/coccinelle/warn/arraysize.cocci

  Log Message:
  -----------
  Merge pull request #11973 from keestux/add-arraysize-cocci

dist/tools: add Coccinelle check for ARRAYSIZE


Compare: https://github.com/RIOT-OS/RIOT/compare/10a2794c8e17...dd48de9b3dd9


More information about the commits mailing list