]> git.puffer.fish Git - matthieu/frr.git/commit
lib/clippy: error out on unsupported bits
authorDavid Lamparter <equinox@diac24.net>
Tue, 4 Jun 2019 15:07:57 +0000 (17:07 +0200)
committerDavid Lamparter <equinox@diac24.net>
Wed, 12 Jun 2019 17:22:59 +0000 (19:22 +0200)
commit3779776a39d81168b701b2cc2ce50a3b2331d3e8
tree57d3126699bf2e56509b085f370eee899cfe8ab5
parent72ad94d5482298a7bb8d099bee3b7bfeab2a222b
lib/clippy: error out on unsupported bits

clippy can't process #ifdef or similar bits inside of an argument list
(e.g. within the braces of a DEFUN or DEFPY statement.)  Improve error
reporting to catch these cases instead of generating broken C code.

Fixes: #3840
Signed-off-by: David Lamparter <equinox@diac24.net>
lib/clippy.c
lib/defun_lex.l
pimd/pim_cmd.c
python/clidef.py