[ci] Skip datarefs.inc with cppcheck

This commit is contained in:
Lars Toenning
2023-04-16 13:21:59 +02:00
parent 9437e9680e
commit a065c8e737
2 changed files with 6 additions and 2 deletions

View File

@@ -69,7 +69,8 @@ jobs:
sudo apt-get -y install cppcheck
sudo cpan Path::Class
cppcheck --template=gcc --inline-suppr --std=c++17 --enable=style,unusedFunction -i externals \
--suppressions-list=cppcheck.supp --library=qt.cfg --library=posix.cfg . 2> >(tee error.log >&2)
-DCPPCHECK --force --suppressions-list=cppcheck.supp \
--library=qt.cfg --library=posix.cfg . 2> >(tee error.log >&2)
perl scripts/warnings.pl error.log
buildLinux:

View File

@@ -17,7 +17,10 @@
#include <string>
#include <cassert>
#include "datarefs.inc"
// Avoid checking large auto-generated header with cppcheck
#ifndef CPPCHECK
# include "datarefs.inc"
#endif
namespace XSwiftBus
{