"testcmdlineparser: comment out unused functions fileListStdin(), ignorepaths{1-4}(), ignorefilepaths{1,2}()"
instead suppress the files.
also suppress unused variable in test/testpreprocessor.cpp
This commit is contained in:
Matthias Krüger 2014-01-12 12:34:05 +01:00
parent e1a5487c70
commit 962018b722
2 changed files with 54 additions and 52 deletions

View File

@ -2,6 +2,8 @@ uselessAssignmentPtrArg:build/checkstl.cpp
assertWithSideEffect:build/checkuninitvar.cpp assertWithSideEffect:build/checkuninitvar.cpp
duplicateBranch:build/checkunusedvar.cpp duplicateBranch:build/checkunusedvar.cpp
duplicateBranch:lib/checkunusedvar.cpp duplicateBranch:lib/checkunusedvar.cpp
unusedPrivateFunction:test/testcmdlineparser.cpp
unreadVariable:test/testpreprocessor.cpp
*:gui/test* *:gui/test*
*:test/test.cxx *:test/test.cxx

View File

@ -925,7 +925,7 @@ private:
ASSERT_EQUALS(false, parser.ParseFromArgs(2, argv)); ASSERT_EQUALS(false, parser.ParseFromArgs(2, argv));
ASSERT_EQUALS(0, parser.GetIgnoredPaths().size()); ASSERT_EQUALS(0, parser.GetIgnoredPaths().size());
} }
/*
void ignorepaths1() { void ignorepaths1() {
REDIRECT; REDIRECT;
const char *argv[] = {"cppcheck", "-isrc", "file.cpp"}; const char *argv[] = {"cppcheck", "-isrc", "file.cpp"};
@ -981,7 +981,7 @@ private:
ASSERT_EQUALS(1, parser.GetIgnoredPaths().size()); ASSERT_EQUALS(1, parser.GetIgnoredPaths().size());
ASSERT_EQUALS("src/foo.cpp", parser.GetIgnoredPaths()[0]); ASSERT_EQUALS("src/foo.cpp", parser.GetIgnoredPaths()[0]);
} }
*/
void checkconfig() { void checkconfig() {
REDIRECT; REDIRECT;
const char *argv[] = {"cppcheck", "--check-config", "file.cpp"}; const char *argv[] = {"cppcheck", "--check-config", "file.cpp"};