mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
[ci] Skip datarefs.inc with cppcheck
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user