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

Kees Bakker noreply at github.com
Wed Aug 7 21:25:14 CEST 2019


  Branch: refs/heads/add-arraysize-cocci
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 6ce55483490aac233e74b1bf2f5e6565199200db
      https://github.com/RIOT-OS/RIOT/commit/6ce55483490aac233e74b1bf2f5e6565199200db
  Author: Kees Bakker <kees at ijzerbout.nl>
  Date:   2019-08-06 (Tue, 06 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: cdf00c6d8104b3e6f30ca72043327b400611c57d
      https://github.com/RIOT-OS/RIOT/commit/cdf00c6d8104b3e6f30ca72043327b400611c57d
  Author: Kees Bakker <kees at ijzerbout.nl>
  Date:   2019-08-07 (Wed, 07 Aug 2019)

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

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


Compare: https://github.com/RIOT-OS/RIOT/compare/6ce55483490a%5E...cdf00c6d8104


More information about the commits mailing list