tools/libxl: disable clang indentation check for the disk parser
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 5 May 2020 09:24:54 +0000 (11:24 +0200)
committerWei Liu <wl@xen.org>
Sun, 10 May 2020 12:02:18 +0000 (13:02 +0100)
commit190c60f12db469472476041ecd0e6c9a0d4b0f8a
tree57ef6840d1a408e3ce3eec9efb3660799bc5c892
parent4cefd87ed38822d6c53e81f1dfa552d5b4bf5940
tools/libxl: disable clang indentation check for the disk parser

Clang 10 complains with:

13: error: misleading indentation; statement is not part of the previous 'if'
      [-Werror,-Wmisleading-indentation]
            if ( ! yyg->yy_state_buf )
            ^
libxlu_disk_l.c:1259:9: note: previous statement is here
        if ( ! yyg->yy_state_buf )
        ^

Due to the missing braces in single line statements and the wrong
indentation. Fix this by disabling the warning for that specific file.
I haven't found a way to force flex to add braces around single line
statements in conditional blocks.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
[ wei: regenerate output files ]
Acked-by: Wei Liu <wl@xen.org>
tools/libxl/libxlu_disk_l.c
tools/libxl/libxlu_disk_l.h
tools/libxl/libxlu_disk_l.l