mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +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 apt-get -y install cppcheck
|
||||||
sudo cpan Path::Class
|
sudo cpan Path::Class
|
||||||
cppcheck --template=gcc --inline-suppr --std=c++17 --enable=style,unusedFunction -i externals \
|
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
|
perl scripts/warnings.pl error.log
|
||||||
|
|
||||||
buildLinux:
|
buildLinux:
|
||||||
|
|||||||
@@ -17,7 +17,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "datarefs.inc"
|
// Avoid checking large auto-generated header with cppcheck
|
||||||
|
#ifndef CPPCHECK
|
||||||
|
# include "datarefs.inc"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace XSwiftBus
|
namespace XSwiftBus
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user