You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!mSettings.platform.set(platform, errstr, paths, mSettings.debuglookup || mSettings.debuglookupPlatform)) {
1106
-
mLogger.printError(errstr);
1106
+
std::string p = 11 + argv[i];
1107
+
if (p.empty()) {
1108
+
mLogger.printError("empty platform specified.");
1107
1109
return Result::Fail;
1108
1110
}
1109
-
1110
-
// TODO: remove
1111
-
// these are loaded via external files and thus have Settings::PlatformFile set instead.
1112
-
// override the type so they behave like the regular platforms.
1113
-
if (platform == "unix32-unsigned") {
1114
-
mSettings.platform.type = Platform::Type::Unix32;
1115
-
mLogger.printMessage("The platform 'unix32-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix32 --funsigned-char' instead");
1116
-
}
1117
-
elseif (platform == "unix64-unsigned") {
1118
-
mSettings.platform.type = Platform::Type::Unix64;
1119
-
mLogger.printMessage("The platform 'unix64-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix64 --funsigned-char' instead");
if (!mSettings.platform.set(platform, errstr, lookupPaths, mSettings.debuglookup || mSettings.debuglookupPlatform)) {
1645
+
mLogger.printError(errstr);
1646
+
return Result::Fail;
1647
+
}
1648
+
1649
+
// TODO: remove
1650
+
// these are loaded via external files and thus have Settings::PlatformFile set instead.
1651
+
// override the type so they behave like the regular platforms.
1652
+
if (platform == "unix32-unsigned") {
1653
+
mSettings.platform.type = Platform::Type::Unix32;
1654
+
mLogger.printMessage("The platform 'unix32-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix32 --funsigned-char' instead");
1655
+
}
1656
+
elseif (platform == "unix64-unsigned") {
1657
+
mSettings.platform.type = Platform::Type::Unix64;
1658
+
mLogger.printMessage("The platform 'unix64-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix64 --funsigned-char' instead");
1659
+
}
1660
+
}
1661
+
1662
+
if (defaultSign != '\0')
1663
+
mSettings.platform.defaultSign = defaultSign;
1664
+
1656
1665
if (!mSettings.buildDir.empty() && !Path::isDirectory(mSettings.buildDir)) {
1657
1666
mLogger.printError("Directory '" + mSettings.buildDir + "' specified by --cppcheck-build-dir argument has to be existent.");
0 commit comments