Travis: Enable missingOverride checker
This commit is contained in:
parent
1d2fd29c9d
commit
0c08503b00
|
@ -177,7 +177,7 @@ script:
|
|||
- cd ../
|
||||
# use same hack as for clang to work around cppchecks broken exit status with -j 2 ; create file, tee everything to the file and stdout, grep for errors in the file
|
||||
- touch /tmp/cppcheck.cppcheck
|
||||
- ${CPPCHECK} --error-exitcode=1 --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling --inline-suppr --suppressions-list=.travis_suppressions -itest/synthetic -iaddons -igui . -j 2 |& tee /tmp/cppcheck.cppcheck
|
||||
- ${CPPCHECK} -D__CPPCHECK__ -f --error-exitcode=1 --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling --inline-suppr --suppressions-list=.travis_suppressions -itest/synthetic -iaddons -igui . -j 2 |& tee /tmp/cppcheck.cppcheck
|
||||
# check gui with qt settings
|
||||
- ${CPPCHECK} --library=qt --error-exitcode=1 -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling -j 2 gui --suppressions-list=.travis_suppressions -igui/test |& tee --append /tmp/cppcheck.cppcheck
|
||||
- sh -c "! grep '^\[' /tmp/cppcheck.cppcheck"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
unusedPrivateFunction:test/testcmdlineparser.cpp
|
||||
redundantNextPrevious:test/testtoken.cpp
|
||||
simplePatternError:test/testtoken.cpp
|
||||
missingOverride
|
||||
noValidConfiguration
|
||||
useStlAlgorithm
|
||||
shadowFunction
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#endif
|
||||
|
||||
// C++11 override
|
||||
#if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC >= 5))
|
||||
#if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC >= 5)) || defined(__CPPCHECK__)
|
||||
# define OVERRIDE override
|
||||
#else
|
||||
# define OVERRIDE
|
||||
|
|
Loading…
Reference in New Issue