| 7012 | } |
| 7013 | |
| 7014 | static bool getMinMaxValues(const std::string& typestr, |
| 7015 | const Settings& settings, |
| 7016 | bool cpp, |
| 7017 | MathLib::bigint& minvalue, |
| 7018 | MathLib::bigint& maxvalue) |
| 7019 | { |
| 7020 | TokenList typeTokens(settings, cpp ? Standards::Language::CPP : Standards::Language::C); |
| 7021 | const std::string str(typestr + ";"); |
| 7022 | if (!typeTokens.createTokensFromBuffer(str.data(), str.size())) |
| 7023 | return false; |
| 7024 | typeTokens.simplifyPlatformTypes(); |
| 7025 | typeTokens.simplifyStdType(); |
| 7026 | const ValueType& vt = ValueType::parseDecl(typeTokens.front(), settings); |
| 7027 | return ValueFlow::getMinMaxValues(&vt, settings.platform, minvalue, maxvalue); |
| 7028 | } |
| 7029 | |
| 7030 | static void valueFlowSafeFunctions(const TokenList& tokenlist, const SymbolDatabase& symboldatabase, ErrorLogger& errorLogger, const Settings& settings) |
| 7031 | { |
no test coverage detected