Skip to content

Commit 36708cf

Browse files
committed
s [skip ci]
1 parent 442b5cd commit 36708cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli/cmdlineparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
894894
return Result::Fail;
895895
}
896896

897-
else if (std::strcmp(argv[i], "--no-cpp-probe") == 0) {
897+
else if (std::strcmp(argv[i], "--no-cpp-header-probe") == 0) {
898898
mSettings.cppHeaderProbe = false;
899899
}
900900

test/testcmdlineparser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,14 +2623,14 @@ class TestCmdlineParser : public TestFixture {
26232623

26242624
void noCppHeaderProbe() {
26252625
REDIRECT;
2626-
const char * const argv[] = {"cppcheck", "--no-cpp-probe", "file.cpp"};
2626+
const char * const argv[] = {"cppcheck", "--no-cpp-header-probe", "file.cpp"};
26272627
ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parser->parseFromArgs(3, argv));
26282628
ASSERT_EQUALS(false, settings->cppHeaderProbe);
26292629
}
26302630

26312631
void noCppHeaderProbe2() {
26322632
REDIRECT;
2633-
const char * const argv[] = {"cppcheck", "--cpp-header-probe", "--no-cpp-probe", "file.cpp"};
2633+
const char * const argv[] = {"cppcheck", "--cpp-header-probe", "--no-cpp-header-probe", "file.cpp"};
26342634
ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parser->parseFromArgs(4, argv));
26352635
ASSERT_EQUALS(false, settings->cppHeaderProbe);
26362636
}

0 commit comments

Comments
 (0)