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)) {
1075
-
mLogger.printError(errstr);
1075
+
std::string p = 11 + argv[i];
1076
+
if (p.empty()) {
1077
+
mLogger.printError("empty platform specified.");
1076
1078
return Result::Fail;
1077
1079
}
1078
-
1079
-
// TODO: remove
1080
-
// these are loaded via external files and thus have Settings::PlatformFile set instead.
1081
-
// override the type so they behave like the regular platforms.
1082
-
if (platform == "unix32-unsigned") {
1083
-
mSettings.platform.type = Platform::Type::Unix32;
1084
-
mLogger.printMessage("The platform 'unix32-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix32 --funsigned-char' instead");
1085
-
}
1086
-
elseif (platform == "unix64-unsigned") {
1087
-
mSettings.platform.type = Platform::Type::Unix64;
1088
-
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)) {
1606
+
mLogger.printError(errstr);
1607
+
return Result::Fail;
1608
+
}
1609
+
1610
+
// TODO: remove
1611
+
// these are loaded via external files and thus have Settings::PlatformFile set instead.
1612
+
// override the type so they behave like the regular platforms.
1613
+
if (platform == "unix32-unsigned") {
1614
+
mSettings.platform.type = Platform::Type::Unix32;
1615
+
mLogger.printMessage("The platform 'unix32-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix32 --funsigned-char' instead");
1616
+
}
1617
+
elseif (platform == "unix64-unsigned") {
1618
+
mSettings.platform.type = Platform::Type::Unix64;
1619
+
mLogger.printMessage("The platform 'unix64-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix64 --funsigned-char' instead");
1620
+
}
1621
+
}
1622
+
1623
+
if (defaultSign != '\0')
1624
+
mSettings.platform.defaultSign = defaultSign;
1625
+
1617
1626
if (!mSettings.analyzeAllVsConfigs) {
1618
1627
if (projectType != ImportProject::Type::VS_SLN && projectType != ImportProject::Type::VS_VCXPROJ) {
0 commit comments