Put bison/flex files in parsers dir, so scan-build --exclude can be used

The autogenerated files create warnings that we can't do much about, so
exclude them.
This commit is contained in:
ejurgensen
2022-01-11 18:54:47 +01:00
parent 397800c9cd
commit f36d1cce6d
11 changed files with 15 additions and 17 deletions

View File

@@ -32,11 +32,11 @@ If you modify any .gperf files, you will need to install it.]])],
])
AX_PROG_FLEX([AC_DEFINE([LEX], [flex], [flex found])],
[AS_IF([test ! -f "$srcdir/src/smartpl_lexer.c"],
[AS_IF([test ! -f "$srcdir/src/parsers/smartpl_lexer.c"],
[AC_MSG_ERROR([flex required, please install it])])
])
AX_PROG_BISON([AC_DEFINE([YACC], [bison], [GNU bison found])],
[AS_IF([test ! -f "$srcdir/src/smartpl_parser.c"],
[AS_IF([test ! -f "$srcdir/src/parsers/smartpl_parser.c"],
[AC_MSG_ERROR([GNU bison required, please install it])])
])