|
1 | 1 | /* |
2 | 2 | * Cppcheck - A tool for static C/C++ code analysis |
3 | | - * Copyright (C) 2007-2024 Cppcheck team. |
| 3 | + * Copyright (C) 2007-2025 Cppcheck team. |
4 | 4 | * |
5 | 5 | * This program is free software: you can redistribute it and/or modify |
6 | 6 | * it under the terms of the GNU General Public License as published by |
@@ -1168,6 +1168,10 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a |
1168 | 1168 | // read underlying project |
1169 | 1169 | projectFile = projectFileGui; |
1170 | 1170 | projType = project.import(projectFileGui, &mSettings, &mSuppressions); |
| 1171 | + if (projType == ImportProject::Type::CPPCHECK_GUI) { |
| 1172 | + mLogger.printError("nested Cppcheck GUI projects are not supported."); |
| 1173 | + return Result::Fail; |
| 1174 | + } |
1171 | 1175 | } |
1172 | 1176 | } |
1173 | 1177 | if (projType == ImportProject::Type::VS_SLN || projType == ImportProject::Type::VS_VCXPROJ) { |
@@ -1870,6 +1874,9 @@ void CmdLineParser::printHelp() const |
1870 | 1874 | " --rule=<rule> Match regular expression.\n" |
1871 | 1875 | " --rule-file=<file> Use given rule file. For more information, see:\n" |
1872 | 1876 | " http://sourceforge.net/projects/cppcheck/files/Articles/\n" |
| 1877 | + " --safety Enable safety-certified checking mode: display checker summary, enforce\n" |
| 1878 | + " stricter checks for critical errors, and return a non-zero exit code\n" |
| 1879 | + " if such errors occur.\n" |
1873 | 1880 | " --showtime=<mode> Show timing information.\n" |
1874 | 1881 | " The available modes are:\n" |
1875 | 1882 | " * none\n" |
|
0 commit comments