[ovs-git] [openvswitch/ovs] aacad8: checkpatch: Fix regexp for if, while, etc inside m...

Ilya Maximets noreply at github.com
Mon Aug 12 08:28:17 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: aacad8685e3d873d15d7fc7974763655862477de
      https://github.com/openvswitch/ovs/commit/aacad8685e3d873d15d7fc7974763655862477de
  Author: Ilya Maximets <i.maximets at samsung.com>
  Date:   2019-08-12 (Mon, 12 Aug 2019)

  Changed paths:
    M tests/checkpatch.at
    M utilities/checkpatch.py

  Log Message:
  -----------
  checkpatch: Fix regexp for if, while, etc inside macros.

This allows to use a one-character expression inside the 'if'
statement and multiple spaces before the line continuation character.

Fixes false positive in case like this:

  #define MACRO(ARG)     \
      if (a) {           \
          do_work(ARG);  \
      }

Fixes: 16770c6d9179 ("checkpatch: support macro continuation")
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Acked-by: Aaron Conole <aconole at redhat.com>




More information about the git mailing list