@@ -1188,7 +1188,9 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
11881188 }
11891189 if (projectType == ImportProject::Type::COMPILE_DB)
11901190 mSettings .maxConfigsProject = 1 ;
1191- if (projectType == ImportProject::Type::VS_SLN || projectType == ImportProject::Type::VS_VCXPROJ) {
1191+ if (projectType == ImportProject::Type::VS_SLN ||
1192+ projectType == ImportProject::Type::VS_SLNX ||
1193+ projectType == ImportProject::Type::VS_VCXPROJ) {
11921194 mSettings .libraries .emplace_back (" windows" );
11931195 }
11941196 for (const auto &error : project.errors )
@@ -1214,7 +1216,9 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
12141216 mLogger .printError (" --project-configuration parameter is empty." );
12151217 return Result::Fail;
12161218 }
1217- if (projectType != ImportProject::Type::VS_SLN && projectType != ImportProject::Type::VS_VCXPROJ) {
1219+ if (projectType != ImportProject::Type::VS_SLN &&
1220+ projectType != ImportProject::Type::VS_SLNX &&
1221+ projectType != ImportProject::Type::VS_VCXPROJ) {
12181222 mLogger .printError (" --project-configuration has no effect - no Visual Studio project provided." );
12191223 return Result::Fail;
12201224 }
@@ -1659,7 +1663,9 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
16591663 mSettings .platform .defaultSign = defaultSign;
16601664
16611665 if (!mSettings .analyzeAllVsConfigs ) {
1662- if (projectType != ImportProject::Type::VS_SLN && projectType != ImportProject::Type::VS_VCXPROJ) {
1666+ if (projectType != ImportProject::Type::VS_SLN &&
1667+ projectType != ImportProject::Type::VS_SLNX &&
1668+ projectType != ImportProject::Type::VS_VCXPROJ) {
16631669 if (mAnalyzeAllVsConfigsSetOnCmdLine ) {
16641670 mLogger .printError (" --no-analyze-all-vs-configs has no effect - no Visual Studio project provided." );
16651671 return Result::Fail;
@@ -1945,13 +1951,13 @@ void CmdLineParser::printHelp() const
19451951
19461952 oss <<
19471953 " --project=<file> Run Cppcheck on project. The <file> can be a Visual\n "
1948- " Studio Solution (*.sln), Visual Studio Project\n "
1954+ " Studio Solution (*.sln) or (*.slnx) , Visual Studio Project\n "
19491955 " (*.vcxproj), compile database (compile_commands.json),\n "
19501956 " or Borland C++ Builder 6 (*.bpr). The files to analyse,\n "
19511957 " include paths, defines, platform and undefines in\n "
19521958 " the specified file will be used.\n "
19531959 " --project-configuration=<config>\n "
1954- " If used together with a Visual Studio Solution (*.sln)\n "
1960+ " If used together with a Visual Studio Solution (*.sln) or (*.slnx) \n "
19551961 " or Visual Studio Project (*.vcxproj) you can limit\n "
19561962 " the configuration cppcheck should check.\n "
19571963 " For example: '--project-configuration=Release|Win32'\n "
0 commit comments