]> git.proxmox.com Git - ovs.git/commit
checkpatch: Fix regexp for if, while, etc inside macros.
authorIlya Maximets <i.maximets@samsung.com>
Fri, 9 Aug 2019 11:53:29 +0000 (14:53 +0300)
committerIlya Maximets <i.maximets@samsung.com>
Mon, 12 Aug 2019 07:56:35 +0000 (10:56 +0300)
commitaacad8685e3d873d15d7fc7974763655862477de
tree596b07561aa5f041a3093633dd20b814f55d9c24
parent05629ed271a67c737227a92f35bcff199648d604
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@samsung.com>
Acked-by: Aaron Conole <aconole@redhat.com>
tests/checkpatch.at
utilities/checkpatch.py